Postado Maio 10, 2015 10 anos Opa Boa tarde... Tenho uma Script de Reparar soft Boots, mais Ela Não Cobra nada do Player pra Recarregar... Eu queria que alguem me ajuda-se a Modificar essa Script pra Poder Cobrar uma Quantia pela Reparação dela! Script: function onSay(cid, words, param) if doPlayerRemoveItem(cid, 10021, 1) == TRUE then doPlayerGiveItem(cid, 6132, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Reparou um Par de Botas!") doSendMagicEffect(getPlayerPosition(cid), 40) doSendAnimatedText(getPlayerPosition(cid), "*Soft Boots*", TEXTCOLOR_LIGHTBLUE) else doPlayerSendCancel(cid, "Voce Precisa de uma Worn Soft Boots Para Poder Recarega-la!") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Precisa de uma Worn Soft Boots Para Poder Recarega-la!") doSendMagicEffect(getPlayerPosition(cid), 2) end end "Ainda que eu ande pelo vale da sombra da morte, não temerei mal algum, pois tu estás comigo. Salmos 23:4"
Postado Maio 10, 2015 10 anos doPlayerRemoveMoney(cid, 10000) tenta por essa linha pra vê se da D: ficando assim olha. function onSay(cid, words, param)if doPlayerRemoveItem(cid, 10021, 1) == TRUE then doPlayerRemoveMoney(cid, 10000)doPlayerGiveItem(cid, 6132, 1)doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Reparou um Par de Botas!")doSendMagicEffect(getPlayerPosition(cid), 40)doSendAnimatedText(getPlayerPosition(cid), "*Soft Boots*", TEXTCOLOR_LIGHTBLUE)elsedoPlayerSendCancel(cid, "Voce Precisa de uma Worn Soft Boots Para Poder Recarega-la!")doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Precisa de uma Worn Soft Boots Para Poder Recarega-la!")doSendMagicEffect(getPlayerPosition(cid), 2)endend Editado Maio 10, 2015 10 anos por wil (veja o histórico de edições)
Postado Maio 10, 2015 10 anos Solução @wil, seria bom colocar a condição: SE TIVER X DINHEIRO ENTÃO, ai executa. function onSay(cid, words, param) local money = 10000 if doPlayerRemoveMoney(cid, money) then if doPlayerRemoveItem(cid, 10021, 1) then doPlayerGiveItem(cid, 6132, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce reparou um par de botas!") doSendMagicEffect(getPlayerPosition(cid), 40) else doPlayerSendCancel(cid, "Voce Precisa de uma Worn Soft Boots Para Poder Recarega-la!") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Precisa de uma Worn Soft Boots Para Poder Recarega-la!") doSendMagicEffect(getPlayerPosition(cid), 2) end else doPlayerSendCancel(cid, "Voce nao tem "..money.." golds para poder recarrega-la.!") end return true end STYLLER OT 2022
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.