Opa,
Sir Avatar, criei um sistema vip no meu server, com itens vip e criei tambem as Coin Vip.
To tentando criar um npc, que só aceite os vip coins, mais ta complicado.. hehe.
Não sei se pode me ajudar, já tentei com 'A Sweaty Cyclops' de um outro post com script diferente, e os dois nao deram certo, nem o seu nem o dele.
Não estou dizendo que seu npc está errado, nem o dele, pois estou modificando ele, portanto o erro deve estar na hora que eu edito. ^^
O que posso fazer ?
Será que é a minha versão? [8.50] Styller Yourots.
Te adicionei no msn.
Valeeu!.
Arthur.


info
Grupo: Campones
Registrado: 20/07/09
Posts: 29
Reputação: +3
Char no Tibia: Excluí
Bom vocês sabem que a cada dia eu trago coisas novas, então hoje eu tou trazendo o npc "A Sweaty Cyclops" vamo lá:
Pimeiro abra: data\npc copie qualquer arquivo xml, renomeie para A Sweaty Cyclops, abra em bloco de notas, apague tudo que tem la dentro, e bote isso:
2°: Abra: data\npc\scripts, copie qualquer arquivo, mude o nome para echanger, abra, retire o que tem dentro e bote:
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end if msgcontains(msg, 'help') then selfSay('You can here change some items for "spider silk yarn", "chunk of crude iron", "draconian steel", "warrior sweat", "magic sulpher", "enchanted chicken wing", "royal steel", "hell steel", "engraved crossbow", "fighting spirit", "infernal bolt", "blue piece of cloth", "green piece of cloth", "red piece of cloth", "lottery ticket".', cid) elseif msgcontains(msg, 'spider silk yarn') then if getPlayerItemCount(cid,5879) >= 10 then selfSay('Did you bring me the 10 Giant Silks ?', cid) talk_state = 1 else selfSay('I need a 10 Giant Spider Silks, to give you the spider silk yarn. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 1 then talk_state = 0 if getPlayerItemCount(cid,5879) >= 10 then if doPlayerRemoveItem(cid,5879, 10) == TRUE then selfSay(done, cid) doPlayerAddItem(cid, 5886, 1) end else selfSay(item, cid) end elseif msgcontains(msg, 'chunk of crude iron') then if getPlayerItemCount(cid,2393) >= 1 thenTCHAU GENTE, E LEMBREM-SE DOS CRÉDITOS!.!.!