Rayvolution
Journeyman
Posts: 135
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 1
Aetharia
|
Odd issue with my potion drinking EVENT.
I'm trying to get my potion drinking script to work, and the only way I can is with a little work around. But, the work around should *not* be required. I'm totally puzzled why it's acting the way it is.
The "Working" script with the work around, you'll notice I had to create a new potion, have the NPC drink that, then consume the original one:
Code:
ON=@GetHit
IF (<RESTEST 1 i_potion_regeneration_health>) && (<HITPOINTS> < <STR>) && (<EVAL RAND(5)> == 1)
SERV.NEWITEM i_potion_regeneration_health
EMOTE drink a <NEW.NAME>!
NEW.CONT=<findlayer.21.uid>
USEITEM <NEW>
return 1
ENDIF
What SHOULD work, but isn't. It's actually making the NPC's target attempt to drink the potion in the NPC's backpack.
Code:
ON=@GetHit
IF (<RESTEST 1 i_potion_regeneration_health>) && (<HITPOINTS> < <STR>) && (<EVAL RAND(5)> == 1)
EMOTE drink a <NEW.NAME>!
findid.i_potion_regeneration_health.useitem
return 1
ENDIF
Any advice?
An MMORPG based on the Ultima Online engine.
Completely Custom Map, GUI, AI, Combat, Skills, Crafts, Art, Music and so much more.
http://aetharia.com - Home of Ambition!
(This post was last modified: 09-18-2012 11:15 PM by Rayvolution.)
|
|
09-18-2012 11:14 PM |
|
|