Ir para conteúdo

Por Favor Me Ajude Neste Script


ahmedell

Posts Recomendados

Sorry but i am not br .. so i will use a translator instead :)

 

 

por favor me diga o que está errado com o seguinte scipt

 

 

Its a repair sooftboots and fwb script --- roteiro de reparação botas

 

function Load (cid, item)

== 10021 then if item.itemid
getPlayerLevel if (cid)> 80 then - Level order Reload
doPlayerRemoveMoney if (cid, 20000) then - money needed to reload
doRemoveItem (item.uid, 1)
doPlayerAddItem (cid, 2640.1) - Item to be added
doSendMagicEffect (getCreaturePosition (cid), 12) - the magical effect Reload
doPlayerSendTextMessage (cid, 22, "You renewed your Soft Boots.") - Message to Reload
else
doPlayerSendCancel (cid, "You do not have enough money.") - Post if the player does not have money
end
else
doPlayerSendCancel (cid, "You do not have enough level.") - if the message has not player level
end
end

== 10022 then if item.itemid
getPlayerLevel if (cid)> 130 then - Level order Reload
doPlayerRemoveMoney if (cid, 20000) then - money needed to reload
doRemoveItem (item.uid, 1)
doPlayerAddItem (cid, 9932.1) - Item to be added
doSendMagicEffect (getCreaturePosition (cid), 13) - the magical effect Reload
doPlayerSendTextMessage (cid, 22, "You renewed his Firewalker Boots.") - Message to Reload
else
doPlayerSendCancel (cid, "You do not have enough money.") - Post if the player has no money
end
else
doPlayerSendCancel (cid, "You do not have enough level.") - if the message has not player level
end
end

end 

Editado por Ahmed11
Link para o comentário
Compartilhar em outros sites

Edited By mulizeu

 

 

--------By Mulizeu----------

function Load (cid,fromposition, item, toposition)

if item.itemid == 10021 and item.type == 1  then
if getPlayerLevel  (cid)> 80 then 
if doPlayerRemoveMoney  (cid, 20000) then 
doRemoveItem (item.uid, 1)
doPlayerAddItem (cid, 2640.1) 
doSendMagicEffect (getCreaturePosition (cid), 12) 
doPlayerSendTextMessage (cid, 22, "You renewed your Soft Boots.") 
else
doPlayerSendCancel (cid, "You do not have enough money.") 
end
else
doPlayerSendCancel (cid, "You do not have enough level.") 
end
end

if item.itemid == 10022 and item.type == 1 then 
if getPlayerLevel  (cid)> 130 then 
if doPlayerRemoveMoney  (cid, 20000) then 
doRemoveItem (item.uid, 1)
doPlayerAddItem (cid, 9932.1)
doSendMagicEffect (getCreaturePosition (cid), 13)
doPlayerSendTextMessage (cid, 22, "You renewed his Firewalker Boots.")
else
doPlayerSendCancel (cid, "You do not have enough money.")
end
else
doPlayerSendCancel (cid, "You do not have enough level.")
end
end
end  

 

Rep +++

Editado por mulizeu
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...