Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spell and Run
Author Message
Mimosa
Apprentice
*

Posts: 6
Likes Given: 5
Likes Received: 0 in 0 posts
Joined: Aug 2018
Reputation: 0



Post: #1
Spell and Run
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.

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.
08-29-2018 11:53 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Spell and Run - Mimosa - 08-29-2018 11:53 PM
RE: Spell and Run - Coruja - 09-03-2018, 09:16 AM

Forum Jump:


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