local itens = {
["staff fire"] = {staff = 2334}, ------ Primeiro e o nome da nova staff e depois o id da staff que ele precisa
["staff ice"] = {staff = 2336},
}
function onSay(cid, words, param, channel)
if param == " " or param == "" then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Diga o nome da staff que você quer") and false
end
local item = itens[param]
if not item then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Não existe esta staff") and false
end
local item = getItemIdByName(item)
if getPlayerItemCount(cid, itens[param].staff) < 1 then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem "..getItemNameById(itens[param].staff).."") and false
end
doPlayerRemoveItem(cid, item.staff)
doPlayerAddItem(cid, item)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você obteve a nova staff")
return true
end
6
1.1k
info
Group: Infante
Joined: 04/03/11
Posts: 1.6k
Reputation: +393
Tibia Character: No Have

03 de fevereiro de 2013 às 10:12
Edited Fevereiro 3 by caotic
info
Group: Artesão
Joined: 20/11/12
Posts: 142
Reputation: +19
Tibia Character: Deleted

03 de fevereiro de 2013 às 11:50
info
Group: Campones
Joined: 26/01/13
Posts: 34
Reputation: 0
Tibia Character: Kawokuman

03 de fevereiro de 2013 às 12:31
Muito obrigado! Já implantei e já funcionou!
info
Group: Artesão
Joined: 20/11/12
Posts: 142
Reputation: +19
Tibia Character: Deleted

03 de fevereiro de 2013 às 12:32
Sanado Reportado !




info
Group: Campones
Joined: 26/01/13
Posts: 34
Reputation: 0
Tibia Character: Kawokuman
Gostaria de um script que o player, após obter uma Staff, pudesse ecolher o elemento que a staff ficaria e pudesse trocar também a hora que quisesse.
Por exemplo:
A staff é de fire. O player iria no default e digitaria !staffholy aí o tipo do ataque mudaria para holy. Depois ele iria digitar !staffice, a staff iria mudar para ice.
Estou no aguardo!
Abraços.