troca
if msgcontains(msg, 'yes') and getPlayerItemCount(cid,2197) >= 1 then
por
if msgcontains(msg, 'yes') and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2197 then
By FelipeXT, 03 de mai. de 2015 in Scripts
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

if msgcontains(msg, 'yes') and getPlayerItemCount(cid,2197) >= 1 then
if msgcontains(msg, 'yes') and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2197 then
info
Group: Artesão
Joined: 23/04/15
Posts: 126
Reputation: +19
Gender: Masculino
Tibia Character: Tider Hunter

info
Group: Artesão
Joined: 23/04/15
Posts: 126
Reputation: +19
Gender: Masculino
Tibia Character: Tider Hunter
Olá galera do Xt
Vim pedir uma ajudinha en um script de um npc meu aki!
e o seguinte este npc ele energyza aol so que eu gostaria que ele so energyzase o aol si estivesse equipado no slot de cordao necklace Versao do meu Otserver 7.92
elseif msgcontains(msg, 'energyze') then
selfSay('I can energyze your necklace for 50k, amulet for 100k or your magic amulet for 150k, do you want energyze?')
talk_state = 4
elseif talk_state == 4 then
if msgcontains(msg, 'yes') and getPlayerItemCount(cid,2197) >= 1 then
if pay(cid,50000) then
selfSay('Its all yours!')
doPlayerSendTextMessage(cid,22,"Voce recebeu Energizou seu Elemental necklace.")
doSendMagicEffect(getPlayerPosition(cid),12)
doPlayerRemoveItem(cid,2197,1)
doPlayerAddItem(cid,13682,1)
talk_state = 0
else
selfSay('You dont have this money!')
talk_state = 0
end
Energyzado
Desenergyzado