É um Vial encantado, que serve para pegar magic sulphur de corpos mortos de humanos, sei lá se isso é util, depende de cada um. Mas espero que gostem pois estou tentando melhorar em scripting e criatividade.
Entre na pasta data\actions\scripts Copie e Cole qualquer arquivo renomeiando-o para enchanted vial.lua
Agora abra-o, apague tudo que tem dentro com: Ctrl + A e Del.
Cole isto:
---- Enchanted vial ---- -- by Ciao -- 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
Agora abra o arquivo data\actions\actions.xml e adicione isto:
<action itemid="7488" script="enchanted vial.lua" />
Obrigado, comentem, espero que gostem, pois sou novo e espero desenvolver muitos Scripts excelentes ainda! Este foi meu segundo para o fórum :positive:/