08-29-2018, 11:53 PM
Hello Guys, How are you?
I'm trying to make my pet use spell and walk at the same time. Someone know how to do that?
The script i'm using to make the spell and the go function is down there, but when i use magic and try to make the pet walk the magic is cancelled.
Thanks for the support.
I'm trying to make my pet use spell and walk at the same time. Someone know how to do that?
The script i'm using to make the spell and the go function is down there, but when i use magic and try to make the pet walk the magic is cancelled.
PHP Code:
[SPEECH fala_galinha]
// the speech to make it use spell
ON=*use bola de fogo*
IF (<ISMYPET>)
IF (<MAGIAFOGO> >=100 )
SRC.CTAG.NPCCast.Src=<UID>
SRC.TARGETF f_npc_boladefogo
Return 1
ENDIF
ENDIF
// the speech to make pet go where i want
ON=*VAI PARA LA*
IF (<ISMYPET>)
SRC.CTAG.VAI.Src=<UID>
SRC.TARGETFG f_npc_vaiparala
return 1
ENDIF
// the function to use the fireball magic
[FUNCTION f_npc_boladefogo]
IF (<ARGO.ISCHAR>)
REF1=<CTAG0.NPCCast.Src>
IF (<REF1.ISMYPET>)
REF1.TAG.ELEMENTOFOGO = 1
REF1.TAG.DIFICULDADE = 100
REF1.NPCCAST <DEF0.s_boladefogo>,<ARGO>
ENDIF
ENDIF
CTAG.NPCCast.Src=
// the function to pet go where i want
[FUNCTION f_npc_vaiparala]
REF1=<CTAG0.VAI.Src>
REF1.GOTO <TARGP>
Thanks for the support.