The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






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)