Ir para conteúdo

Featured Replies

  • Respostas 10
  • Visualizações 792
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Ta usando qual servidor?   actions.xml <action itemid="10021" script="softboots.lua" /> scripts/softboots.lua function onUse(cid, item, fromPosition, itemEx, toPosition)     local new, co

Postado

Crie um Arquivo Chamado Soft.lua Em Actions/Scripts


function onUse(cid, item, fromPosition, itemEx, toPosition)

-- Itens configuravéis.
local t = {money = 10000, item = 10021, newitem = 2640}

if getPlayerItemCount(cid,t.item,1) then
if PlayerRemoveMoney(cid,t.money) then
doPlayerRemoveItem(cid,t.item,1)
doPlayerAddItem(cid,t.newitem,1)
doSendMagicEffect(fromPosition, CONST_ME_POFF)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You got a brand new pair of soft boots.")
else
doPlayerSendCancel(cid, "Sorry, is not possible.")
end
else
doPlayerSendCancel(cid, "Sorry, you need a " .. t.money .. " gold pieces.")
end
end
return true
end

Crie um Arquivo CHamado firewalker.lua Em Actions/Scripts/other

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
Em Actions .XML Coloque AS Linhas

<action itemid="10021" script="other/soft.lua" />
<action itemid="10022" script="other/firewalker.lua"/>

 

credito leandrovp


Ajudei? REP + 

 
 
se te ajudei mi ajude com um like
 
post-154810-0-74779100-1428114524_thumb.        post-154810-0-22067300-1428114531_thumb.          post-154810-0-83198200-1427326965.gif
post-154810-0-48855100-1429834735.gif
 
 
 
 
0 comentários:

 

Postado
  • Autor

Crie um Arquivo Chamado Soft.lua Em Actions/Scripts

function onUse(cid, item, fromPosition, itemEx, toPosition)

-- Itens configuravéis.

local t = {money = 10000, item = 10021, newitem = 2640}

if getPlayerItemCount(cid,t.item,1) then

if PlayerRemoveMoney(cid,t.money) then

doPlayerRemoveItem(cid,t.item,1)

doPlayerAddItem(cid,t.newitem,1)

doSendMagicEffect(fromPosition, CONST_ME_POFF)

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You got a brand new pair of soft boots.")

else

doPlayerSendCancel(cid, "Sorry, is not possible.")

end

else

doPlayerSendCancel(cid, "Sorry, you need a " .. t.money .. " gold pieces.")

end

end

return true

end

Crie um Arquivo CHamado firewalker.lua Em Actions/Scripts/other

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

Em Actions .XML Coloque AS Linhas

<action itemid="10021" script="other/soft.lua" />

<action itemid="10022" script="other/firewalker.lua"/>

 

credito leandrovp

Ajudei? REP + 

Nao funcionou brother =S

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo