Eu Tentei Fazer Uma Action Aki =D Sistema De Forja!
Mih Ajuda Ah Veh Aonde Tah o ErrO??
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2555
chaopos = {x=topos.x, y=topos.y, z=topos.z}
msg = ""
rand = math.random(100)
-- Golden Armor ---
if rand == 1 then
doPlayerRemoveMoney (cid,100) - Dinheiro
doPlayerRemoveItem (cid,5880,100) - 100 Iron Ore
doPlayerAddItem (cid,2466,1) - Golden Armor
-- Full Helmet Of Anchient --
id rand == 2 then
doPlayerRemoveMoney (cid,100) - Dinheiro
doPlayerRemoveItem (cid,2337,1) - 1 right horn
doPlayerRemoveItem (cid,2338,1) - 1 left horn
doPlayerRemoveItem (cid,2339,1) - 1 Damaged Helmet
doPlayerRemoveItem (cid,2151,50) - 1 Talon
doPlayerAddItem (cid,2347,1) - FuLL Helmet Of Anchient
end
end
return 1
end
info
Grupo: Campones
Registrado: 23/06/07
Posts: 56
Reputação: 0
Char no Tibia: Knight'GuzinhO
Eu Tentei Fazer Uma Action Aki =D Sistema De Forja!
Mih Ajuda Ah Veh Aonde Tah o ErrO??
function onUse(cid, item, frompos, item2, topos) if item.itemid == 2555 chaopos = {x=topos.x, y=topos.y, z=topos.z} msg = "" rand = math.random(100) -- Golden Armor --- if rand == 1 then doPlayerRemoveMoney (cid,100) - Dinheiro doPlayerRemoveItem (cid,5880,100) - 100 Iron Ore doPlayerAddItem (cid,2466,1) - Golden Armor -- Full Helmet Of Anchient -- id rand == 2 then doPlayerRemoveMoney (cid,100) - Dinheiro doPlayerRemoveItem (cid,2337,1) - 1 right horn doPlayerRemoveItem (cid,2338,1) - 1 left horn doPlayerRemoveItem (cid,2339,1) - 1 Damaged Helmet doPlayerRemoveItem (cid,2151,50) - 1 Talon doPlayerAddItem (cid,2347,1) - FuLL Helmet Of Anchient end end return 1 end