Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Help Attaching Effect To Item Instead Of Player
Author Message
Admin Drew
Apprentice
*

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



Post: #1
Need Help Attaching Effect To Item Instead Of Player
Hi all, I made a ressurection ankh that makes a small visual effect when you dclick on it.. The problem is the graphic effect appears on the player clicking on the Ankh, and I want the effect to appear on the Ankh itself instead. If someone could help me out with the script and let me know how to attach the effect to the Ankh instead of the player I would really appreciate it!
Thanks all & here is the script-

[XXXX]
ID=1d97
TYPE=18
NAME=Ressurection Ankh
COLOR=00
ONTRIGGER=DCLICK
SRC.EFFECT=3,03728,6,15,1
if <SRC.Hitpoints> < 1
src.sysmessage Live Again Mortale!
SRC.RESURRECT
else
src.sysmessage You Still Have Life In You! Continue On Warrior..
endif

//I tried this second way also which in theory should work but it produces no effect in this second version if you use the DClick trigger. What's weird is if I use this second style with no SRC. before the word effect it will produce the effect on a weapon if I use the ONTrigger=Damage tag, but If I try to use ONtrigger=DClick with just Effect= under it it won't give me the effect on an item that you Dclick on at all //

[XXXX]
ID=1d97
TYPE=18
NAME=Ressurection Ankh
COLOR=00
ONTRIGGER=DCLICK
EFFECT=3,03728,6,15,1
if <SRC.Hitpoints> < 1
src.sysmessage Live Again Mortale!
SRC.RESURRECT
else
src.sysmessage You Still Have Life In You! Continue On Warrior..
endif


*Just want the effect to appear on ankh instead of player*
(This post was last modified: 06-25-2013 10:22 AM by Admin Drew.)
06-25-2013 08:09 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: #2
RE: Need Help Attaching Effect To Item Instead Of Player
EFFECT 3 doesn't run on items... Try 2 instead. If that doesn't work, create the item (in your example it is 03728), set its location in the world, set its attributes so it will decay (and not be picked up etc), then set its timer...
(This post was last modified: 06-25-2013 10:33 AM by RanXerox.)
06-25-2013 10:27 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: Need Help Attaching Effect To Item Instead Of Player
Yah changing the 3 doesn't work.. Do you have an example of what it would look like added onto mine? If I use the SRC.NEW.ITEM= the item will appear on the player once again.
Thanks
06-25-2013 11:51 AM
Find all posts by this user Like Post Quote this message in a reply
Mulambo
Apprentice
*

Posts: 22
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 0

Dark Paradise

Post: #4
RE: Need Help Attaching Effect To Item Instead Of Player
try
Code:
CONT.EFFECT

Wars come and go, but my soldiers stay ethernal.

I broke the dam

Czech Shard Dark Paradise
(This post was last modified: 06-25-2013 08:31 PM by Mulambo.)
06-25-2013 08:30 PM
Visit this user's website 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: Need Help Attaching Effect To Item Instead Of Player
Got it working another way thanks guys!
06-26-2013 06: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)