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
Por FelipeXT, 03 de mai. de 2015 em Scripts
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: 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
Grupo: Artesão
Registrado: 23/04/15
Posts: 126
Reputação: +19
Gênero: Masculino
Char no Tibia: Tider Hunter

info
Grupo: Artesão
Registrado: 23/04/15
Posts: 126
Reputação: +19
Gênero: Masculino
Char no Tibia: 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