SphereCommunity
@SPELLSELECT ARGO not work - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: @SPELLSELECT ARGO not work (/Thread-SPELLSELECT-ARGO-not-work)



@SPELLSELECT ARGO not work - WRWR - 08-30-2012 09:41 PM

Code:
ON=@SPELLSELECT
   IF <ARGO.TYPE>==t_scroll
      ARGN2 /=2   //REDUCE MANA
   ENDIF

get me an error : Can't resolve ARGO.TYPE

http://wiki.sphere.torfo.org/index.php/@SpellSelect

How to make mana REDUCE when cast from scrolls?


RE: @SPELLSELECT ARGO not work - darksun84 - 08-30-2012 10:58 PM

Try with

PHP Code:
IF <UID.<argo>.type>==t_scroll
      ARGN2 
/=2   //REDUCE MANA
   
ENDIF 



RE: @SPELLSELECT ARGO not work - WRWR - 08-30-2012 11:46 PM

19:45:ERROR:Can't resolve <UID.07b6.type>
19:45:ERROR:Undefined symbol ''


RE: @SPELLSELECT ARGO not work - darksun84 - 08-30-2012 11:59 PM

(08-30-2012 11:46 PM)WRWR Wrote:  19:45:ERROR:Can't resolve <UID.07b6.type>
19:45:ERROR:Undefined symbol ''

Try this , with or without "" Big Grin

PHP Code:
IF !(STRCMP("<argo.type>","t_scroll"))
     
ARGN2 /=2   //REDUCE MANA
ENDIF 



RE: @SPELLSELECT ARGO not work - Shaklaban - 08-31-2012 12:08 AM

When spells casted from scrolls, spells already uses half of mana and no reagents.


RE: @SPELLSELECT ARGO not work - Terrikate - 08-31-2012 12:48 AM

The inicial script is correct but the trigger only works on characters, not spells. Here works.

Anyway, as said Shaklaban scrolls work like default.


RE: @SPELLSELECT ARGO not work - RanXerox - 08-31-2012 01:22 AM

ARGO is sometimes the player - who has no "type"... Maybe something like this:

Code:
ON=@SPELLSELECT
   IF <ARGO.ISITEM>
      IF <ARGO.TYPE>==t_scroll
         ARGN2 /=2   //REDUCE MANA
      ENDIF
   ENDIF



RE: @SPELLSELECT ARGO not work - admin phoenix - 08-31-2012 02:49 AM

yes, that´s the way you have to do.