Well i need help i sux in LUA, and i really need help whit this action, i try to make it but have some problems.
Well it consists of an item (claw of the noxious spawn/10309), to the moment to use it change form to (10311) and also removes poison and paralysis condition
i use Mystic Spirit
Thas my action:
Errors:
Also i need other action, this one consists on wen u equip the item (funcion onEquip)it changes form (claw of the~/ 10310 to 10309) and if you don't be in protection zone you lose 100-200 hit points.
well, i hope u can help me
(sorry if you don't understand one part for my english tell me )
Well it consists of an item (claw of the noxious spawn/10309), to the moment to use it change form to (10311) and also removes poison and paralysis condition
i use Mystic Spirit
Thas my action:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 10309 then
setConditionParam(PARALYZE, 32, 1)
doTransformItem(item.itemid, 10311)
doSendMagicEffect(cid, CONST_ME_MAGIC_RED)
end
end
Errors:
Code:
[16/10/2009 16:23:20] Lua Script Error: [Action Interface]
[16/10/2009 16:23:20] data/actions/scripts/tools/clawofthenoxious.lua:onUse
[16/10/2009 16:23:20] luaSetConditionParam(). This function can only be used while loading the script.
[16/10/2009 16:23:20] Lua Script Error: [Action Interface]
[16/10/2009 16:23:20] data/actions/scripts/tools/clawofthenoxious.lua:onUse
[16/10/2009 16:23:20] luaDoTransformItem(). Item not found
[16/10/2009 16:23:20] Lua Script Error: [Action Interface]
[16/10/2009 16:23:20] data/actions/scripts/tools/clawofthenoxious.lua:onUse
[16/10/2009 16:23:21] attempt to index a number value
[16/10/2009 16:23:21] stack traceback:
[16/10/2009 16:23:21] [C]: in function 'doSendMagicEffect'
[16/10/2009 16:23:21] data/actions/scripts/tools/clawofthenoxious.lua:5: in function <data/actions/scripts/tools/clawofthenoxious.lua:1>
Also i need other action, this one consists on wen u equip the item (funcion onEquip)it changes form (claw of the~/ 10310 to 10309) and if you don't be in protection zone you lose 100-200 hit points.
well, i hope u can help me
(sorry if you don't understand one part for my english tell me )