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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Do I Get Effect To Remove After Made??
Author Message
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #1
How Do I Get Effect To Remove After Made??
Ok so here's my problem.. I have a script where where you attack something you get a graphic effect that you custom make. The effect I make and add to the item appears fine when you attack something or set it for dclick but the problem is the effect it adds is permanent and never goes away. I have tried using REMOVE but doesn't seem to work.. If you could help me out I'd appreciate it. I just want my own custom effect to appear from a few seconds then disappear. Here is the ways I've tried.
//The effect works on attack but the effect never disappears
ONTRIGGER=DAMAGE
SRC.NEWITEM=XXXX //My Effect Number
SRC.ACT.P=<P>
SRC.ACT.TIMER=1
SRC.RESEND
SRC.DAMAGE=10-20
RETURN 0
///////////////////////////////////////////////////////////////////////////////
Tried it this next way also with entering my own item number for the effect but the item/number I put in for the effect doesn't ever show up right and I always get the wrong graphic instead of the number I put in.

EFFECT=3,0XXXX,6,15,1 //I put my effect number I made where the x's are and always get the wrong item showing up and not the item with the number I put in.. why? This seems like it would work if it would actually ready my item number correctly for the effect.
////////////////////////////////////////////////////////////////////////////////

//This way works for attack but the effect never disappears again.. Just tried adding remove & End and both won't remove the graphic.. tried src.remove too. What am I doing wrong? Just want my custom effect to disappear after a few secs..

ONTRIGGER=DAMAGE
SRC.NEWITEM=XXXX //My Effect Number
SRC.ACT.P=<P>
SRC.ACT.TIMER=1
SRC.RESEND
SRC.DAMAGE=10-20
REMOVE
RETURN 0
END
(This post was last modified: 07-02-2013 07:45 PM by Admin Drew.)
07-02-2013 07:44 PM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: How Do I Get Effect To Remove After Made??
You need to set the ATTR of the NEWITEM so that it can decay... setting the timer starts the countdown, but the item itself has to decay when the timer reaches zero.
07-03-2013 04:03 AM
Find all posts by this user Like Post Quote this message in a reply
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #3
RE: How Do I Get Effect To Remove After Made??
I changed to ATTR=02 which is decay on the effect item but it still is sticking around after it appears and not decaying.. Can you please show me an example of how I would get it to remove the effect with this script.. Not sure what to do different but change the Item Att to 02 for decay and it's not working)=
(This post was last modified: 07-03-2013 05:40 AM by Admin Drew.)
07-03-2013 05:39 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #4
RE: How Do I Get Effect To Remove After Made??
Post the entire item script
07-03-2013 05:54 AM
Find all posts by this user Like Post Quote this message in a reply
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #5
RE: How Do I Get Effect To Remove After Made??
Sent it to ya..
07-03-2013 09:07 AM
Find all posts by this user Like Post Quote this message in a reply
sus
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2013
Reputation: 0



Post: #6
RE: How Do I Get Effect To Remove After Made??
Script this item (effect) to remove after timer goes to 0
[XXXX]

ONTRIGGER=TIMER
TIMER=-1
remove
Return 1

SRC.NEWITEM=XXXX //My Effect Number
SRC.ACT.P=<P>
SRC.ACT.TIMER=1 // Here you make how many seconds it will stay in world. For now its 1
10-02-2013 09:09 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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