Dankoo
Active Member
- Joined
- Sep 4, 2010
- Messages
- 1,007
- Reaction score
- 27
I'm doing inquisition quest, and there's a part where player must use holy water flask in a caldron, so it get's purified.
Flask ID: 7494
Caldron Action ID: 6645
Also, a storage must set when player use it.
So, I've been playing around with this script
I think it does not work lol, is itemex.actionid the correct parameter to define the caldron's action id? What should I change in it for it to work?
Thanks!!
eace:
Flask ID: 7494
Caldron Action ID: 6645
Also, a storage must set when player use it.
So, I've been playing around with this script
LUA:
local EMPTY_POTION = 7636
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemex.actionid = 6455 then
doRemoveItem(7494, 1)
doPlayerAddItem(cid, EMPTY_POTION, 1)
doSendMagicEffect(fromPosition, 45)
setPlayerStorageValue(cid,9999,1)
return true
end
I think it does not work lol, is itemex.actionid the correct parameter to define the caldron's action id? What should I change in it for it to work?
Thanks!!