Passa o script do npc intero ai, e me explica direito que eu te ajudo.
Testa esse
elseif(msgcontains(msg, 'energyze elemental necklace') or msgcontains(msg, 'Energyze Elemental Necklace')) then
selfSay('I can energyze your elemental necklace for 50k, would you like to energyza?', cid)
talkState[talkUser] = 3
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then
if doPlayerRemoveItem(cid, 2197, 1) == true and doPlayerRemoveMoney(cid, 50000) == true then
selfSay('Thanks!', cid)
doPlayerAddItem(cid, 11962, 1)
talkState[talkUser] = 0
else
selfSay('You do not have enough diamonds.', cid)
talkState[talkUser] = 0
end
elseif(msgcontains(msg, 'elemental necklace') or msgcontains(msg, 'Elemental Necklace')) then
selfSay('You change a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth,change all for a Elemental necklace?', cid)
talkState[talkUser] = 4
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 4) then
if doPlayerRemoveItem(cid,2201,1) and doPlayerRemoveItem(cid,2198,1) and doPlayerRemoveItem(cid,2170,1) and doPlayerRemoveItem(cid,2171,1) and doPlayerRemoveItem(cid,2172,1) and doPlayerRemoveItem(cid,2161,1) then
doPlayerAddItem(cid,2197,1)
selfSay('change the amulet\'s for one elemental necklace sucessfull.')
else
selfSay('change the amulet\'s for one elemental necklace sucessfull.')
end









info
Grupo: Campones
Registrado: 27/06/10
Posts: 61
Reputação: 0
Char no Tibia: Jean Dappg
Tipo acabei de cria um npc tudo certo ele tira os itens e poem o item que eu quero mas ha um porem ele não ta pedindo todos os items por exemplo eu tiro um item e falo yes ele troca do mesmo jeito :S
ae o script do npc
elseif(msgcontains(msg, 'elemental necklace') or msgcontains(msg, 'Elemental Necklace')) then selfSay('You change a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth,change all for a Elemental necklace?', cid) talkState[talkUser] = 4 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 4) then if doPlayerRemoveItem(cid,2201,1) == 0 then elseif doPlayerRemoveItem(cid,2198,1) == 0 then elseif doPlayerRemoveItem(cid,2170,1) == 0 then elseif doPlayerRemoveItem(cid,2171,1) == 0 then elseif doPlayerRemoveItem(cid,2172,1) == 0 then elseif doPlayerRemoveItem(cid,2161,1) == 0 then elseif doPlayerAddItem(cid,2197,1) == 0 then selfSay('change the amulet\'s for one elemental necklace sucessfull.') else selfSay('change the amulet\'s for one elemental necklace sucessfull.') endE tambem outro script tipo se vc não tiver o dinheiro ele retira o item poem outro e retira o outro e vc fica com nada:@
elseif(msgcontains(msg, 'energyze elemental necklace') or msgcontains(msg, 'Energyze Elemental Necklace')) then selfSay('I can energyze your elemental necklace for 50k, would you like to energyza?', cid) talkState[talkUser] = 3 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then if(doPlayerRemoveItem(cid, 2197, 1) == true) then if(doPlayerRemoveMoney(cid, 50000) == true) then selfSay('Thanks!', cid) doPlayerAddItem(cid, 11962, 1) talkState[talkUser] = 0 else selfSay('You do not have enough diamonds.', cid) talkState[talkUser] = 0 end endEditado Maio 21 por GodJean