Olha,eu fiz essa action para ajudar em algns ots cujo o npc cobra magic sulphur (id 5904) para um determinado addon,acho q e o summoner,+ nao e possivel arruma-lo e nem dropa-lo so se o gm pos quest,mudou o npc ou distribui alguns pra players mas assim fica mais interessante,o player usa o enchanted vial (id 7488) em corpos de humanos mortos como se fosse tirar coro de mino,mas entao vamos bota a mao na massa,crie um arquio em actions/scripts e renomeie para enchanted vial e coloque la dentro:
---- Enchanted vial ---- -- Mokerhamer -- function onUse(cid, item, frompos, item2, topos) if item2.itemid == 0 then return 0 end random = math.random(1,15) if getPlayerLevel(cid) >= 1 then if item2.itemid == 3128 and random == 1 then doTransformItem(item2.uid,3130) doPlayerAddItem(cid,5904,1) doSendMagicEffect(getThingPos(item.uid), 7) doSendAnimatedText(frompos,"Concluded Alchemy",18); elseif item2.itemid == 3128 and random >= 2 then doSendMagicEffect(topos, 8) doTransformItem(item2.uid,3130) end end random = math.random(1,15) if getPlayerLevel(cid) >= 1 then if item2.itemid == 3065 and random == 1 then doTransformItem(item2.uid,3066) doPlayerAddItem(cid,5904,1) doSendMagicEffect(getThingPos(item.uid), 7) doSendAnimatedText(frompos,"Concluded Alchemy",18); elseif item2.itemid == 3065 and random >= 2 then doSendMagicEffect(topos, 8) doTransformItem(item2.uid,3066) end end doPlayerSendCancel(cid,"There is not a human skin to be removed.") return 1 end
e depois em actions.xml:
<action itemid="7488" script="enchanted vial.lua" />
OBSERVACAO:
geralmente,no ot o id 7488 ja estara sendo usado no script fluids mais nao tem utilidade,entao e so apaga-lo ou substituiulo
----procuro ter ajudado-----
~~~~Tulio AC~~~~