View Single Post
06-28-10, 06:37 PM   #20
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
Originally Posted by b3vad View Post
well i think repeating my question will get some attention again

1- what do you suggest for saving checkboxes status (i think of making some viable and saving them but maybe someone wanna say some tips about it)
2- (if its possible) anyone knows how to automatic accept arena enter / leave massages ?
3- (if its possible) how to Resurrect from crops ?
1) The only way to save checkbox status is by saved variables. Here's and example of the check to use for it:

lua Code:
  1. if var then -- is var true?
  2.         checkButton:SetChecked() -- check the button
  3.     else
  4.         checkButton:SetChecked(false) -- var is false, uncheck button
  5.     end

2) Try this, since a lot of the battleground API is shared with arena API:
lua Code:
  1. AcceptBattlefieldPort(1,1)

If that doesn't work, let me know and I'll see what I can dig up.

3) I'm not sure what you're asking here. Are you looking to automatically accept player rezzes or corpse release?

As far as .lua vs .xml, I find lua to be easier to manage and work with. I used to use xml, but the problem came in when I realized that a simple mistake would not let the addon load at all, which is hardly useful when looking to squash bugs. If using lua, the addon will always load and errors will pop telling you where your errors are.

Last edited by Sythalin : 06-28-10 at 06:40 PM.
  Reply With Quote