Woooow!
A Amber *----*
Nossa man, valeu.. me será muito útil rsrs'
Abração!
REP+
Por Nottinghster, 12 de mai. de 2010 em NPCs, monsters e raids
info
Grupo: Herói
Registrado: 07/01/08
Posts: 2.3k
Reputação: +514
Gênero: Masculino
Char no Tibia: Tonynh

Woooow!
A Amber *----*
Nossa man, valeu.. me será muito útil rsrs'
Abração!
REP+
info
Grupo: Cavaleiro
Registrado: 02/09/06
Posts: 186
Reputação: +16

Disponha brother!
Agora aproveite bem o NPC ![]()
Explendido, ajudará muitos que estão levantando algun projeto. Em fim aguardo pelo "The Queen of the Banshee NPC"
haha.
info
Grupo: Cavaleiro
Registrado: 02/09/06
Posts: 186
Reputação: +16

Ih brother, então ficará no aguardo pelo The Queen of the Banshee NPC porque esse eu não irei postar de jeito nenhum, até hoje não vi nenhum OTServ que tenha esse NPC que seja idêntico ao Global, se quiser somente o XML dele, sem problemas, mas agora o arquivo LUA dele de jeito nenhum, lá está o código inteiro ![]()
Ai o XML do NPC se quiser:
The Queen of the Banshee.xml
<?xml version="1.0" encoding="UTF-8"?>
<npc name="The Queen of the Banshee" script="banshee_queen.lua" walkinterval="1000" access="3" floorchange="0">
<health now="100" max="100"/>
<look type="78" head="0" body="0" legs="0" feet="0"/>
<parameters>
<parameter key="message_greet" value="Be greeted, dear visitor. Come and stay ... a while."/>
<parameter key="message_farewell" value="We will meet again."/>
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="name;job;place;race;seed;destruction;complex;ghostlands;banshee;seal;guardian;" />
<parameter key="keyword_reply1" value="It hurts me to even think about my mortal past. Its long lost and forgotten. So don't ask me about it!" />
<parameter key="keyword_reply2" value="It is my curse to be the eternal guardian of this ancient place." />
<parameter key="keyword_reply3" value="It served as a temple, a source of power and ... as a sender for an ancient race in time long gone by and forgotten." />
<parameter key="keyword_reply4" value="The race that built this edifice came to this place from the stars. They ran from an enemy even more horrible than even themselves. But they carried the seed of their own destruction in them." />
<parameter key="keyword_reply5" value="This ancient race was annihilated by its own doings, that's all I know. Aeons have passed since then, but the sheer presence of this complex is still defiling and desecrating this area." />
<parameter key="keyword_reply6" value="This ancient race was annihilated by its own doings, that's all I know. Aeons have passed since then, but the sheer presence of this complex is still defiling and desecrating this area." />
<parameter key="keyword_reply7" value="Its constructors were too strange for you or even me to understand. We cannot know what this ... thing they have built was supposed to be good for. All I can feel is a constant twisting and binding of souls, though that is probably only a side-effect." />
<parameter key="keyword_reply8" value="The place you know as the Ghostlands had a different name once ... and many names thereafter. Too many for me to remember them all." />
<parameter key="keyword_reply9" value="They are my maidens. They give me comfort in my eternal vigil over the last seal." />
<parameter key="keyword_reply10" value="I am the guardian of the SEVENTH and final seal. The seal to open the last door before ... but perhaps it is better you see it with your own eyes." />
<parameter key="keyword_reply11" value="I am the guardian of the SEVENTH and final seal. The seal to open the last door before ... but perhaps it is better you see it with your own eyes." />
</parameters>
</npc>
info
Grupo: Herói
Registrado: 07/01/08
Posts: 2.3k
Reputação: +514
Gênero: Masculino
Char no Tibia: Tonynh

Vou pegar a do Banshee também.. rsrs'
Quem sabe eu não façou algo legal com ele (y'
Valeu brother ![]()
info
Grupo: Artesão
Registrado: 13/05/10
Posts: 114
Reputação: +11

Ótimo NPC,
já botei aqui no meu Ot.
Testado e Aprovado :button_ok:
info
Grupo: Campones
Registrado: 27/02/09
Posts: 1
Reputação: 0
Char no Tibia: JakeJammerr

acho que nao foi baseado no arquivo da cip eim, porque cade o citizen addon? OO pessoa mentirosa
info
Grupo: Cavaleiro
Registrado: 02/09/06
Posts: 186
Reputação: +16
Fala ae galera XTibiana!
Alguns de vocês devem saber que eu sou o criador do Tibia World RPG OldSchool Server e como eu ando fazendo MUITOS NPCs para o meu Servidor, resolvi liberar alguns dos meus NPCs mais fáceis de fazer e é claro que não vou postar um dificil como a The Queen of the Banshee NPC até porque não sou nenhum idiota
Só para lembrar que todos os meus NPCs são baseados nos arquivos originais de NPC da Cipsoft!
Vamos parar de conversa e vamos aos Scripts:
Amber.xml (Rookgaard)
Amber.lua
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(npcHandler.focus ~= cid) then return false end -- NPC Amber feito por Rodrigo (Nottinghster) -- Inicio Amber NPC if msgcontains(msg, 'book') or msgcontains(msg, 'notebook') then selfSay('Do you bring me my notebook?') talk_state = 1 elseif msgcontains(msg, 'yes') and talk_state == 1 and getPlayerItemCount(cid,1950) >= 1 then selfSay('Excellent. Here, take this short sword, that might serve you well.') doPlayerAddItem(cid, 2406) doPlayerRemoveItem(cid,1950, 1) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 1 and getPlayerItemCount(cid,1950) == 0 then selfSay('Hm, you don\'t have it.') talk_state = 0 elseif msgcontains(msg, 'no') and talk_state == 1 then selfSay('Too bad.') talk_state = 0 elseif msgcontains(msg, 'orcish') or msgcontains(msg, 'language') or msgcontains(msg, 'prisoner') then selfSay('I speak some orcish words, not much though, just \'yes\' and \'no\' and such basic.') talk_state = 2 elseif msgcontains(msg, 'yes') and talk_state == 2 then selfSay('It\'s \'mok\' in orcish. I help you more about that if you have some food.') elseif msgcontains(msg, 'no') and talk_state == 2 then selfSay('In orcish that\'s \'burp\'. I help you more about that if you have some food.') elseif msgcontains(msg, 'food') then selfSay('My favorite dish is salmon. Oh please, bring me some of it.') elseif msgcontains(msg, 'salmon') then selfSay('Yeah! If you give me some salmon I will tell you more about the orcish language.') talk_state = 3 elseif msgcontains(msg, 'yes') and talk_state == 3 and getPlayerItemCount(cid,2668) >= 1 then selfSay('Thank you. Orcs call arrows \'pixo\'.') doPlayerRemoveItem(cid,2668,1) elseif msgcontains(msg, 'yes') and talk_state == 3 and getPlayerItemCount(cid,2668) == 0 then selfSay('You don\'t have one!') talk_state = 0 elseif msgcontains(msg, 'bye') and (talk_state >= 1 and talk_state <= 3) then selfSay('See you later.') talk_state = 0 end -- Final Amber NPC -- NPC Amber feito por Rodrigo (Nottinghster) return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())Simon the Beggar.xml (Deeper Fibula Quest)
Simon.lua
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(npcHandler.focus ~= cid) then return false end -- NPC Simon (Deeper Fibula Quest) feito por Rodrigo (Nottinghster) -- Inicio Simon NPC local player_gold = getPlayerItemCount(cid,2148) local player_plat = getPlayerItemCount(cid,2152)*100 local player_crys = getPlayerItemCount(cid,2160)*10000 local player_money = player_gold + player_plat + player_crys if msgcontains(msg, 'help') then selfSay('I need gold. Can you spend me 100 gold pieces?') talk_state = 1 elseif msgcontains(msg, 'yes') and talk_state == 1 and player_money >= 100 then selfSay('Thank you very much. Can you spend me 500 more gold pieces? I will give you a nice hint.') doPlayerRemoveMoney(cid, 100) talk_state = 2 elseif msgcontains(msg, 'yes') and talk_state == 1 and player_money < 100 then selfSay('You\'ve not enough money for me.') elseif msgcontains(msg, 'yes') and talk_state == 2 and player_money >= 500 then doPlayerRemoveMoney(cid, 500) selfSay('That\'s great! I have stolen something from Dermot. You can buy it for 200 gold. Do you want to buy it?') talk_state = 3 elseif msgcontains(msg, 'yes') and talk_state == 2 and player_money < 500 then selfSay('You\'ve not enough money for me.') elseif msgcontains(msg, 'yes') and talk_state == 3 and player_money >= 200 then selfSay('Now you own the hot key.') doPlayerRemoveMoney(cid, 200) key = doPlayerAddItem(cid, 2087,1) doSetItemActionId(key,3940) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 3 and player_money < 200 then selfSay('Pah! I said 200 gold. You don\'t have so much.') elseif msgcontains(msg, 'bye') and (talk_state >= 1 and talk_state <= 3) then selfSay('Have a nice day.') talk_state = 0 end -- Final Simon NPC -- NPC Simon (Deeper Fibula Quest) feito por Rodrigo (Nottinghster) return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())Agora se divirtam!
Editado Maio 15 por Nottinghster