Cara, script muito bom, é bom para um evento que tem de prêmio xx item e o GOD simplesmente faz o comando e o jogador ganha o item
- Forums
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- [Talkaction] Give Item
[Talkaction] Give Item
By joaohd, 22 de jun. de 2010 in Actions e Talkactions
info
Group: Marquês
Joined: 08/05/08
Posts: 1.3k
Reputation: +168

Puts cara esse é o melhor script que você criou nos últimos tempos cara, ta de parabéns.
REP+
info
Group: Conde
Joined: 31/10/08
Posts: 871
Reputation: +199
Tibia Character: Luis Felipe Knight

Caramba, que script perfeito e útil,
parabens apocarai.
Abraços.
info
Group: Conde
Joined: 30/01/10
Posts: 706
Reputation: +125
Gender: Masculino
Tibia Character: Bakwin

Cara Muinto Bom , Bom Mesmo!
Muinto Bom o Script!! Parabéns!
Abraços
Edited Julho 11 by DevilMoon
info
Group: Herói
Joined: 17/02/08
Posts: 2.5k
Reputation: +193

#Won helder
Não foi o melhor script dele, mas sim o mais funcional.
#Apocarai
Estava procurando isso, mas nunca tive saco pra fazer. Muito obrigado.
#DevilMoon
Trouxidos? Tenta falar certo e acaba errando, pois isso não existe. É Trazidos.
Com atenção,
Henrique.
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

o script é muito fera
mais tem um Bug (eu acho)
tipo eu tentei enviar 2 golden armor e não foi...
assim:
!giveitem vodkart, golden armor, 2
talz e não consegui :X
Script mt bom! ![]()
Me ajudou bastante em relação a eventos...
Rep ++ :button_ok:
info
Group: Campones
Joined: 03/11/10
Posts: 47
Reputation: +7
Tibia Character: Victor Dracul

@GlobalRefi Revivendo topicos...




info
Group: Visconde
Joined: 03/02/09
Posts: 361
Reputation: +200
Tibia Character: Fearless Man
Este script foi uma sugestão do usuário Guilhermee56. Você pode dar suas idéias aqui.
O que faz: Adiciona um item para um usuário, retirando este item do jogador que mandou.
Vá até data/talkactions/scripts e crie um arquivo chamado giveitem.lua, contendo:
function onSay(cid, words, param) if(param == "") then doPlayerSendTextMessage(cid, 25, "Name, item name and quantity are required.\nE.g.: !giveitem ".. getCreatureName(cid) ..",Crown armor,1") return TRUE end local t = string.explode(param, ",") local player = getPlayerByNameWildcard(t[1]) local item = getItemIdByName(t[2]) local quant = tonumber(t[3]) if(not player) then doPlayerSendCancel(cid, "You must fill with player name.") return TRUE end if(not item) then doPlayerSendCancel(cid, "You must fill with a item name.") return TRUE end if(not quant) then doPlayerSendCancel(cid, "You must fill with a quantity.") return TRUE end if(quant <= 0) then doPlayerSendCancel(cid, "You must add the quantity.") return TRUE end if getPlayerGroupId(cid) >= 4 then doPlayerAddItem(player,item, quant) doPlayerSendTextMessage(cid, 25, "You gave ".. t[2] .." to " .. getCreatureName(player) .. ".") doPlayerSendTextMessage(player, 25, "You got ".. t[2] .." from " .. getCreatureName(cid) .. ".") elseif getPlayerGroupId(cid) < 4 then if getPlayerItemCount(cid, item) >= quant then doPlayerAddItem(player,item, quant) doPlayerSendTextMessage(cid, 25, "You gave ".. t[2] .." to " .. getCreatureName(player) .. ".") doPlayerSendTextMessage(player, 25, "You got ".. t[2] .." from " .. getCreatureName(cid) .. ".") doPlayerRemoveItem(cid, item, quant) else doPlayerSendTextMessage(cid, 25, "You don't have that item!.") end end return TRUE endSalve e feche. Abra o seu talkactions.xml e adicione:
Salve e feche.
Modo de usar: !giveitem apocarai, golden armor, 1
Nota: Usuários com acesso acima de 4 não precisam ter o item para envio.
flw