Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with @Spellselect trigger
Author Message
Kyrbis
Journeyman
*

Posts: 54
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #1
Problem with @Spellselect trigger
Hi. I've made a mall event with the @spellselect trigger, to check if the user casts from a wand , and to check if he casts specific spells.

here's the trigger event


ON=@SpellSelect

IF <SRC.ISGM>
RETURN 0
ELIF (<ARGO.TYPE> ==t_wand) && (<ARGN1> <=70)
RETURN 0
ELIF (<ARGN1> <=70) && (<ARGN1> != 32) && (<ARGN1> != 45)
MESSAGE You can't cast this spell.
RETURN 1
ENDIF


it works, but my console gives me an error when casting a spell from the spellbook. Error message is "Can't resolve <ARGO.TYPE>"

So it seems, as I get it right, when casting a spell from a wand, everything's ok, and when casting from spellbook the script does not know what to do with the section checking for the ARGO.TYPE.

Since it works its okay, but any idead how i can make it better? I don't want this error message ^^
07-26-2013 07:50 PM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #2
RE: Problem with @Spellselect trigger
if (<argo.isitem>)
if (argo.type>
.
.
.
endif
endif
07-26-2013 08:01 PM
Find all posts by this user Like Post Quote this message in a reply
Kyrbis
Journeyman
*

Posts: 54
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #3
RE: Problem with @Spellselect trigger
seems legit. thanks Smile
07-26-2013 08:06 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)