SphereCommunity
SRC.ACT.DCLICK - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: SRC.ACT.DCLICK (/Thread-SRC-ACT-DCLICK)



SRC.ACT.DCLICK - Dullais - 05-07-2013 04:53 AM

Hello guys. i can't make this script work. Its simple command for using heal potions but my src.act dclick dont work Sad

Code:
[FUNCTION check]
DB.CONNECT

[FUNCTION dheal]
LOCAL.FOUND=0
FORCONTID i_potion_Heal 10
IF (<EVAL.<LOCAL.FOUND>> == 0)
SRC.ACT.CLICK
LOCAL.FOUND=1
ENDIF
ENDFOR

IF (<EVAL.<LOCAL.FOUND>> == 0)
SRC.SYSMESSAGE You dont have heal potion in your backpack.
ENDIF
Can someone help me please ?


RE: SRC.ACT.DCLICK - darksun84 - 05-07-2013 05:27 AM

you are using src.act.click not dclick sisi


RE: SRC.ACT.DCLICK - RanXerox - 05-07-2013 05:32 AM

SRC is a reference, and ACT is a reference... using SRC.ACT.FUNCTION doesn't make sense. In any case, try this:

Code:
[FUNCTION dheal]
REF1=<SRC.FINDID.i_potion_heal.UID>
IF (<REF1>)
   REF1.USEITEM
ELSE
   SRC.SYSMESSAGE You don't have heal potion in your backpack.
ENDIF



RE: SRC.ACT.DCLICK - Dullais - 05-07-2013 08:31 AM

(05-07-2013 05:27 AM)darksun84 Wrote:  you are using src.act.click not dclick sisi

Iam sorry, i just made a mistake becouse i tryed everything and this one stayd in script, my mistake, Dclick stil dont work Smile

(05-07-2013 05:32 AM)RanXerox Wrote:  SRC is a reference, and ACT is a reference... using SRC.ACT.FUNCTION doesn't make sense. In any case, try this:

Code:
[FUNCTION dheal]
REF1=<SRC.FINDID.i_potion_heal.UID>
IF (<REF1>)
   REF1.USEITEM
ELSE
   SRC.SYSMESSAGE You don't have heal potion in your backpack.
ENDIF

thanks, i will try it as soon as i can Smile