07-02-2013, 07:44 PM
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
//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