View Single Post
11-01-10, 04:37 PM   #8
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
I may be showing my noviceness, and or lack of understanding of the OP point but. Also incoming text crit =P

Err brain fart. but something like....
lua Code:
  1. If Nobgul = isin $1 then
  2. function Send_hello()
  3. ------stuff here.
  4. else do
  5. function You_Are_Not_The_One()
  6. ------stuff here.
  7.  
  8. end
  9. end


I could have swore the "do" was just there to tell the command to fire. I am pretty sure that is the way it is in C++ anyway. meaning that the do command will always fire and the rest of the function will continue to work its self out. where if you used just a else then only 1 or the other would fire.

lua Code:
  1. if Nobgul == isin $1 then do
  2.  
  3. function savename() then
  4. -----something here
  5.  
  6. function ParseNameAndIssueCommand
  7. -------- suff here

Basically what i am getting at is using the statment to
grab a name in chat
make sure the name matches a specific name, either way save the name
then if the name does match then issue the command or w/e
otherwise take the saved name and pass a diff command

else do
then do
etc..

Because there is also
do while


Anyway I think there may not be a need for it.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote