Problem with @Spellselect trigger - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Problem with @Spellselect trigger (/Thread-Problem-with-Spellselect-trigger) |
Problem with @Spellselect trigger - Kyrbis - 07-26-2013 07:50 PM 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 ^^ RE: Problem with @Spellselect trigger - admin phoenix - 07-26-2013 08:01 PM if (<argo.isitem>) if (argo.type> . . . endif endif RE: Problem with @Spellselect trigger - Kyrbis - 07-26-2013 08:06 PM seems legit. thanks |