Signup Now
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by Leitsha View Post
    if spellType == 'spell' and cancastspell(spellToUseInfo) and not paround(rangeSpell) then

    paround(s) returns amount of ppl in s range, so your check will do for eg.
    1. Is it a spell?
    2. Can cast it?
    3. Not 4?

    L.
    Well, 'not 4' actually evaluates to false in Lua. But the problem is that so does 'not 0'.

    PS: That's a nice [LUA][/LUA] tag!

  2. #12
    Free User Leitsha's Avatar
    Join Date
    Dec 2014
    Posts
    39
    Reputation
    17
    Rep Power
    0
    Quote Originally Posted by Raphael View Post
    Well, 'not 4' actually evaluates to false in Lua. But the problem is that so does 'not 0'.

    PS: That's a nice [LUA][/LUA] tag!
    Yea, thats what I meant by that.
    But I'm glad that you enjoy this tag so much, I will try to remember to use it in all my posts now.

    L.
    No progress comes from pleasure
    We smile in ignorance and learn in pain

  3. #13
    Free User ash katchup's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    144
    Reputation
    15
    Rep Power
    21
    Quote Originally Posted by Leitsha View Post
    if spellType == 'spell' and cancastspell(spellToUseInfo) and not paround(rangeSpell) then

    paround(s) returns amount of ppl in s range, so your check will do for eg.
    1. Is it a spell?
    2. Can cast it?
    3. Not 4?

    L.
    My bad. I thought paround returned if there is 1+ players inside the range. My bad again.

    Thanks for the explanation!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •