Postado Março 2, 2015 10 anos Não esse, o script que faz você trocar ao usar, vai até a sua pasta actions e abre os scripts e procura lá, o nome deve ser algo como firewalker ou parecido. ➥ Regras | Seções OTServ | Seções BOT
Postado Março 2, 2015 10 anos Autor Achei esse aqui: function onUse(cid, item, fromPosition, itemEx, toPosition) local moneyneed = 20000 -- price to get new fire boots local playermoney = getPlayerMoney(cid) if playermoney >= moneyneed then if doPlayerTakeItem(cid, 10022, 1) then doRemoveItem(item.uid,1) doPlayerAddItem(cid, 9933, 1) doPlayerRemoveMoney(cid, moneyneed) doSendMagicEffect(fromPosition,12) else doPlayerSendTextMessage(cid,20, "You don't have worn firewalker boots.") end else doPlayerSendTextMessage(cid,20, "Sorry, but you need ".. moneyneed .." gold coins to get a new firewalker boots.") end end
Postado Março 2, 2015 10 anos Olha eu não manjo muito de scripts, estou começando agora então pode ter algo errado mais testa ai: Crie 1 arquivo chamado hota.lua em Actions>Scripts>Others e adicione: function onUse(cid, item, fromPosition, itemEx, toPosition) if doPlayerTakeItem(cid, 2147, 1) then if doPlayerTakeItem(cid, 2342, 1) then doRemoveItem(item.uid,1) doPlayerAddItem(cid, 2343, 1) doSendMagicEffect(fromPosition,12) else doPlayerSendTextMessage(cid,20, "Voce nao tem 1 helmet of the ancients.") end else doPlayerSendTextMessage(cid,20, "Desculpe, voce precisa de 1 small ruby para reparar seu helmet.") end end Agora abra o Actions.xml e adicione está linha: <action itemid="2342" script="other/hota.lua"/> Editado Março 2, 2015 10 anos por Wakon (veja o histórico de edições) ➥ Regras | Seções OTServ | Seções BOT
Postado Março 4, 2015 10 anos function onUse(cid, item, fromPosition, itemEx, toPosition) local cost = 20000 -- Preço... if doPlayerRemoveMoney(cid, cost) then doRemoveItem(item.uid, 1) doPlayerAddItem(cid, 2343, 1) doSendMagicEffect(getThingPos(cid), 12) else doPlayerSendTextMessage(cid, 20, "Sorry, but you need ".. cost .." gold coins to get a new helmet of the ancients.") end return true end <action itemid="2342" script="ARQUIVO.lua"/>
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.