Gente eu fix um local VIP, e para chegar la precisa d 1 chave,e para conceguir essa chave o cara teria q pega otras 4 chaves e trocar com o npc pela chave vip
ID chave vip :2090
outras chaves :2086,2092,2091,2089.
abraçs,flw
Gente eu fix um local VIP, e para chegar la precisa d 1 chave,e para conceguir essa chave o cara teria q pega otras 4 chaves e trocar com o npc pela chave vip
ID chave vip :2090
outras chaves :2086,2092,2091,2089.
abraçs,flw
aff ninguem vai responde,eu axei um topico com npc de troca, so q eu coloco ele pelo rme e na hora q eu vo joga ele n aparece, ai u script dele,me ajudem a arrumalo(e vaze-lo trocar as chaves)
NPC Texijab:
<?xml version="1.0"?> <npc name="Taxijab" script="data/npc/scripts/Cheese.lua" access="3" lookdir="1" walkinterval="2000> <health now="1" max="1"/> <look type="120" head="38" body="79" legs="107" feet="114"/> </npc>
Script:
-- NPC de troca - By Conde Sapo local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false local addon_state = 0 function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Olá ' .. getCreatureName(cid) .. '... Eu troco as 4 Chaves pela chave vip!') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'chaves') or msgcontains(msg, 'vip') then if doPlayerRemoveItem(cid,2086, 1) == 0 or doPlayerRemoveItem(cid,2092, 1) == 0 or doPlayerRemoveItem(cid,2091,1) == 0 or doPlayerRemoveItem(cid,2089,1) == 0 then selfSay('Eu disse as 4 chaves!') addon_state = 0 else selfSay('Pegue e aproveite bravo guerreiro!') doPlayerAddItem(cid, 2090, 1) talk_start = 0 end elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. getCreatureName(cid) .. '! Come back soon..') focus = 0 talk_start = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end
Amigo você criou seu tópico no local incorreto, temos um local mais adequado para
pedidos de Scripting..
Movido, tenha mais atenção
Atenciosamente, Vilden.
e Cuidado com Os Double posts