Ir para conteúdo

[Encerrado] [Pokemon] Dúvidas? - Pda


lucashgas

Posts Recomendados

niguem tem como ajuda n? tenho uma duvida mais facil kk , porque meu shiny growlithe evoluir pra arcanine? :o .. pegei ele , tentei evoluir normal 2 fire i tals , dai virou arcanine , alguem sabe onde eu posso concerta isso?

 

Configuration.lua

Link para o comentário
Compartilhar em outros sites

Eu Gostaria de Saber Como Adicionar Corpses ao pokemon dash eu to com um aki mais o item dos corpses jah estao com de outro pokemon e quando eu mudo da erro no item.xml eu consegui muda a de 1 pokemon mais nao sei adicionar o cath a ela alguem poderia me ajudar?

Link para o comentário
Compartilhar em outros sites

@ALL

Adicionado Versao 1.4 do meu sistema de ATKs Passivos... quem quiser, por favor leiam o post q esta na minha assinatura e "rebaixem" o arquivo... adicionado novas passivas... ;p

Link para o comentário
Compartilhar em outros sites

@all vi que ngm ainda postou a rare candy sem limite de uso e tem um pequeno bug quando se usa muito rapido e o pokemon evolui continua gastando entao eu resolvi o problema to postando ai pra galera :).. lembrando que meu servidor vai ser todo em portugues desculpa mais to sem tempo pra deixar em ingles

 

rarecandy.lua

 

function onUse(cid, item, frompos, item2, topos)

 

if not isCreature(item2.uid) or not isSummon(item2.uid) then

doPlayerSendCancel(cid, "Você só pode dar esse doce para seus pokemons.")

return true

end

 

if getCreatureHealth(item2.uid) == 0 then return true end

 

local pb = getPlayerSlotItem(getCreatureMaster(item2.uid), 8)

 

if getLevel(item2.uid) >= 100 then

doPlayerSendCancel(cid, "Seu pokemon já está no level máximo.")

return true

end

 

local e = getCreatureMaster(cid)

 

if isSummon(item2.uid) and getCreatureName(item2.uid) == "Evolution" then

doPlayerSendCancel(cid, "Seu pokemon está evoluindo.")

return true

end

 

doPlayerSendTextMessage(cid, 27, "Você deu um doce raro para "..getPokeName(item2.uid)..".")

 

doCreatureSay(cid, getPokeName(item2.uid)..", coma esse doce!", TALKTYPE_SAY)

doRemoveItem(item.uid, 1)

 

 

local level = getItemAttribute(pb.uid, "level")

local exp = getItemAttribute(pb.uid, "exp")

local neededexp = getItemAttribute(pb.uid, "nextlevelexp")

 

 

if getHappiness(item2.uid) < 50 then

doSendMagicEffect(getThingPos(item2.uid), 168)

return true

end

 

 

doCreatureSay(item2.uid, "Yum.", TALKTYPE_ORANGE_1)

doItemSetAttribute(pb.uid, "rarecandy", level + 1)

doItemSetAttribute(pb.uid, "exp", exp + neededexp)

doPlayerSendTextMessage(getCreatureMaster(item2.uid), 27, "Seu "..getPokeName(item2.uid).." comeu um doce raro!")

doSendFlareEffect(getThingPos(item2.uid))

doSendAnimatedText(getThingPos(item2.uid), "Level up!", 215)

adjustPokemonLevel(pb.uid, getCreatureMaster(item2.uid), pb.itemid, true)

 

return true

end

 

 

Link para o comentário
Compartilhar em outros sites

@jmbrelo,

creio eu já tem a maquina do cassino,

procura no actions.xml o itemID: 11420

 

mais está trocado as spr, o itemID: 11420 está com a alavanca deitada, e o 11421 está em pé, teria q ser 11420 em pé e o 11420 deitada...

Editado por GOD Gniu
Link para o comentário
Compartilhar em outros sites

@all

 

quem estiver usando os arquivos que postei

to revisando realmente esta com problema na evolução

do Shiny Growlithe esta evoluindo para Arcanine para poder corrigir pesso que va na

 

1° passo

pasta monster/pokes

 

abre o Shiny Growlithe.xml e subtitui por esse codigo

 

 

 

<?xml version="1.0" encoding="UTF-8"?>

<monster name="Shiny Growlithe" nameDescription="a shiny growlithe" race="fire" experience="212" speed="137" manacost="0">

<health now="40" max="40"/>

<look type="1252" head="15" body="30" legs="95" feet="113" corpse="12477"/>

<targetchange interval="10000" chance="0"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="1"/>

<flag attackable="1"/>

<flag hostile="1"/>

<flag illusionable="1"/>

<flag convinceable="1"/>

<flag pushable="1"/>

<flag canpushitems="0"/>

<flag canpushcreatures="0"/>

<flag targetdistance="1"/>

<flag staticattack="97"/>

<flag runonhealth="0"/>

<flag hungerdelay="23"/>

</flags>

 

<attacks>

<attack name="melee" interval="2000" chance="100" range="1" min="-50" max="-100"> </attack>

<attack name="Quick Attack" interval="2523" chance="31" range="2">

</attack>

<attack name="Ember" interval="2664" chance="30" range="3">

</attack>

<attack name="Bite" interval="2758" chance="30" range="1">

</attack>

<attack name="Fire Fang" interval="2805" chance="29" range="1">

</attack>

<attack name="Fireball" interval="2993" chance="28" range="4">

</attack>

<attack name="Flamethrower" interval="3369" chance="26" range="6">

</attack>

</attacks>

 

 

<defenses armor="0" defense="0">

</defenses>

 

<voices interval="5000" chance="10">

<voice sentence="GROWLITHE!"/>

</voices>

 

<loot>

</loot>

 

<script>

<event name="Spawn"/>

</script>

</monster>

 

 

 

2º passo continuando

va na pasta

monster\pokes\Shiny

 

 

abre o Shiny Growlithe.xml e subtitui por esse codigo

 

 

 

<?xml version="1.0" encoding="UTF-8"?>

<monster name="Shiny Growlithe" nameDescription="a shiny growlithe" race="fire" experience="212" speed="137" manacost="0">

<health now="40" max="40"/>

<look type="1252" head="15" body="30" legs="95" feet="113" corpse="12477"/>

<targetchange interval="10000" chance="0"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="1"/>

<flag attackable="1"/>

<flag hostile="1"/>

<flag illusionable="1"/>

<flag convinceable="1"/>

<flag pushable="1"/>

<flag canpushitems="0"/>

<flag canpushcreatures="0"/>

<flag targetdistance="1"/>

<flag staticattack="97"/>

<flag runonhealth="0"/>

<flag hungerdelay="23"/>

</flags>

 

<attacks>

<attack name="melee" interval="2000" chance="100" range="1" min="-50" max="-100"> </attack>

<attack name="Quick Attack" interval="2523" chance="31" range="2">

</attack>

<attack name="Ember" interval="2664" chance="30" range="3">

</attack>

<attack name="Bite" interval="2758" chance="30" range="1">

</attack>

<attack name="Fire Fang" interval="2805" chance="29" range="1">

</attack>

<attack name="Fireball" interval="2993" chance="28" range="4">

</attack>

<attack name="Flamethrower" interval="3369" chance="26" range="6">

</attack>

</attacks>

 

 

<defenses armor="0" defense="0">

</defenses>

 

<voices interval="5000" chance="10">

<voice sentence="GROWLITHE!"/>

</voices>

 

<loot>

</loot>

 

<script>

<event name="Spawn"/>

</script>

</monster>

 

 

 

 

pronto corrigido

Editado por Nibelins
Link para o comentário
Compartilhar em outros sites

@Nibelins

kk vlw por avisar q os shinys especial evolution n tava evoluindo ;p ms sem usar teus pokes aki tb n tavam.. mas tb ja arrumei no evolution.lua ;p anyway, ty hehe

 

@Maguito

hehe soh mandar... e viu.. como flei la no PxG o vile soh tem passiva de sleep ;p e n do stun e poison ^^

Link para o comentário
Compartilhar em outros sites

@all

Me dem um socorro aki to quenredo fazer o status aparecer em uma box de msn como essa, nao igual a ToplayersendText teria algum otro ?

que faca de modo para ficar igual a esse ?

poke4.png

Link para o comentário
Compartilhar em outros sites

-------------------------------------------------AKI A TASK------------------------------------------------------

 

data creaturescript crie task.lua e coloque!

 

 

 

 


function onKill(cid, target)
local m = {
["rattata"] = 91001,
["raticate"] = 91002,
["caterpie"] = 91003,
["metapod"] = 91004,
["butterfree"] = 91005,
["weedle"] = 91006,
["kakuna"] = 91007,
["beedrill"] = 91008,
["ekans"] = 91009,
["arbok"] = 91010,
["oddish"] = 91011,
["gloom"] = 91012,
["vileplume"] = 91013,
["bellsprout"] = 91014,
["weepinbell"] = 91015,
["vitreebel"] = 91016,
["tangela"] = 91017,
["voltorb"] = 91018,
["electrode"] = 91019,
["pikachu"] = 91020,
["raichu"] = 91021,
["paras"] = 91022,
["parasect"] = 91023,
["geodude"] = 91024,
["graveler"] = 91025,
["golem"] = 91026,
["machop"] = 91027,
["machoke"] = 91028,
["machamp"] = 91029,
["mankey"] = 91030,
["primeape"] = 91031,
["krabby"] = 91032,
["kingler"] = 91033,
["goldeen"] = 91034,
["seaking"] = 91035,
["poliwag"] = 91036,
["poliwhirl"] = 91037,
["poliwrath"] = 91038,
["snorlax"] = 91039
}
 if(isMonster(target) == TRUE) then
 local n = getCreatureName(target)
 local name_monster = m[string.lower(n)]
 if(name_monster) then
 local contagem = getPlayerStorageValue(cid, name_monster)
 if(contagem == -1) then
contagem = 1 end
setPlayerStorageValue(cid, name_monster, contagem+1)
doPlayerSendTextMessage(cid,20,"you kill "..contagem.." "..n.."")
end
end
return TRUE
end

 

 

 

login.lua coloque

 


registerCreatureEvent(cid, "task_count")

 

 

 

creaturescript.xml coloque

 

 

 <event type="kill" name="task_count" script="task.lua"/>

 

 

--------------------------------------------------

 

 

Checar quantos matou e quantos faltam

 

talkactions crie um arquivo.lua e coloque!

 

 

 

  function onSay(cid, words, param)

function pairsByKeys (t, f)
  local a = {}
  for n in pairs(t) do table.insert(a, n) end
  table.sort(a, f)
  local i = 0
  local iter = function ()
	i = i + 1
	if a[i] == nil then return nil
	else return a[i], t[a[i]]
	end
  end
  return iter
end
local m = {
["rattata"] = {storage = 91001, count= 30 },
["raticate"] = {storage = 91002, count= 30 },
["caterpie"] = {storage = 91003, count= 30  },
["metapod"] = {storage = 91004, count= 40	},
["butterfree"] = {storage = 91005, count= 50  },
["weedle"] = {storage = 91006, count= 30 },
["kakuna"] = {storage = 91007, count= 40  },
["beedrill"] = {storage = 91008, count= 50 },
["ekans"] = {storage = 91009, count=  25 },
["arbok"] = {storage = 91010, count=  45  },
["oddish"] = {storage = 91011, count= 15   },
["gloom"] = {storage = 91012, count= 30  },
["vileplume"] = {storage = 91013, count= 50 },
["bellsprout"] = {storage = 91014, count= 15 },
["weepinbell"] = {storage = 91015, count= 30  },
["vitreebel"] = {storage = 91016, count= 50  },
["tangela"] = {storage = 91017, count= 60 },  
["voltorb"] = {storage = 91018, count= 25  },
["electrode"] = {storage = 91019, count= 45 },
["pikachu"] = {storage = 91020, count= 30 },
["raichu"] = {storage = 91021, count= 60 },
["paras"] = {storage = 91022, count= 10 } ,
["parasect"] = {storage = 91023, count= 30  },
["geodude"] = {storage = 91024, count=  20 },
["graveler"] = {storage = 91025, count= 40},
["golem"] = {storage = 91026, count= 60 },
["machop"] = {storage = 91027, count= 20},
["machoke"] = {storage = 91028, count= 40},
["machamp"] = {storage = 91029, count= 65 },
["mankey"] = {storage = 91030, count= 15 },
["primeape"] = {storage = 91031, count= 40},
["krabby"] = {storage = 91032, count=  25 },
["kingler"] = {storage = 91033, count= 50 },
["goldeen"] = {storage = 91034, count= 25 },
["seaking"] = {storage = 91035, count= 50},
["poliwag"] = {storage = 91036, count=  20 },
["poliwhirl"] = {storage = 91037, count= 40 },
["poliwrath"] = {storage = 91038, count= 60 },
["snorlax"] = {storage = 91039 , count= 50  },
}
local str = ""
str = str .. "Task Completed :\n\n"
for k, v in pairsByKeys(m) do
local contagem = getPlayerStorageValue(cid, v.storage)
if(contagem == -1) then
contagem = 1 end
str = str..k.." = ["..((contagem)-1).."/"..v.count.."]\n"
end
str = str .. "" return doShowTextDialog(cid, 8983, str) end

 

 

 

talkactions.xml

 

 <talkaction words="!task" script="nomearquivo.lua"/>

 

 

npc que dara premio

 

crie um npc.xml e coloque

 

 

 <?xml version="1.0"?>
<npc name="Ludger" script="data/npc/scripts/task.lua" walkinterval="50000" floorchange="0">
<health now="100" max="100"/>
<look type="511" head="95" body="116" legs="121" feet="115" addons="3"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|.I have some {task} for you!" /> </parameters>
</npc>

 

 

npc/script crie task.lua e coloque

 

 

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 MonsterCount(cid, message, keywords, parameters, node)  
	if(not npcHandler:isFocused(cid)) then
			return false
	end
local contagem = getPlayerStorageValue(cid, parameters.storage)
if(contagem == -1) then
contagem = 1 end
  if getPlayerStorageValue(cid, parameters.x) <= 0 then
	   if (((contagem)-1) >= parameters.count) then
								   doPlayerAddExp(cid, parameters.exp)
						   for k,v in pairs(parameters.reward) do
				doPlayerAddItem(cid, v.item, v.count or 1)
			end
		  setPlayerStorageValue(cid, parameters.x, 1)
		npcHandler:say('Thanks for your help,receive your rewards!', cid)
	else
			npcHandler:say('Sorry,but you still only killed '..((contagem)-1)..' monsters!', cid)
			npcHandler:resetNpc()
	end
	else
	npcHandler:say('You can only receive the reward once!', cid)
	npcHandler:resetNpc()
	end
	return TRUE
	end
function Completed(cid, message, keywords, parameters, node)
	if(not npcHandler:isFocused(cid)) then
			return false
	end
  if getPlayerStorageValue(cid, parameters.x) <= 0 then
  for i = 21001,21039 do
	   if getPlayerStorageValue(cid,i) <= 0 then
	   return npcHandler:say('Sorry,but you have not still finished the whole task!', cid)
	   end
	   end					 doPlayerAddExp(cid, parameters.exp)
						   for k,v in pairs(parameters.reward) do
				doPlayerAddItem(cid, v.item, v.count or 1)
			end
		  setPlayerStorageValue(cid, parameters.x, 1)
			 b = getGlobalStorageValue(63004)
			  if b == -1 then
				b = 1
				   end
					 if b < 11 then
						setGlobalStorageValue(63004,b+1)
						npcHandler:say('you recivied items,trophy and 10 days of premium account!!', cid)
						  doBroadcastMessage('[Task Mission Complete] '..getCreatureName(cid)..' was the '..b..'° to finish the task!.')
								 doPlayerAddPremiumDays(cid, 10)
							 doPlayerAddItem(cid, 2646,1)
						  doPlayerAddItem(cid, 2343,1)
				 doItemSetAttribute(doPlayerAddItem(cid, 7369), "name", "trophy of the 10 firsts finish all task")
			 end
		npcHandler:say('Congratulations,now you have completed all the task!', cid)
		npcHandler:resetNpc()
	else
	npcHandler:say('You can only receive the reward once!', cid)
	npcHandler:resetNpc()
	end
	return TRUE
	end


keywordHandler:addKeyword({'task'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I have a mission to {low level},{mid level} and {high level},{all mission} or {help} for know the amount of monsters you/ve killed!'})
keywordHandler:addKeyword({'all mission'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Wow! You/re a great hunter!,you really {completed} all mission?'})
keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To see how many monsters you killed just use command {!task}'})
keywordHandler:addKeyword({'low level'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Then low level you have to kill some monsters like: {minotaur mage},{orc spearman},{cyclops},{cave rat},{fire devil},{fire devil},{orc warrior},{slime},{beholder},{dragon hatchling} and {wyvern}!'})
keywordHandler:addKeyword({'mid level'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'hmm mid level,you have to kill some monsters: {fire elemental},{blue djinn},{demon skeleton},{dragon},{dragon lord},{crystal spider},{earth elemental},{hero},{avalanche},{giant spider},{fury},{orc warlord} and {green djinn}'})
keywordHandler:addKeyword({'high level'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'haha high level,to you it will not be easy because you have to kill some monsters: {demon},{hydra},{frost dragon},{warlock},{medusa},{grim reaper},{undead dragon},{ferumbras},{orshabaal},{morgaroth},{ghazbaran},{minishabaal},{diabolic imp},{juggernaut} and {behemoth}'})
local node1 = keywordHandler:addKeyword({'rattata'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed 30 Rattata? {yes}'})
node1:addChildKeyword({'yes'}, MonsterCount, {x = 21001,storage = 91001,count = 30,reward = {{item = 2656, count = 1}},exp = 1000})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node2 = keywordHandler:addKeyword({'raticate'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all Raticate? {yes}'})
node2:addChildKeyword({'yes'}, MonsterCount, {x = 21002, storage = 91002,count = 30,reward = {{item = 2152, count = 50}},exp = 2000})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node3 = keywordHandler:addKeyword({'caterpie'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all caterpie? {yes}'})
node3:addChildKeyword({'yes'}, MonsterCount, {x = 21003, storage = 91003,count = 30,reward = {{item = 2152, count = 35}},exp = 4000})
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node4 = keywordHandler:addKeyword({'metapod'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all metapod? {yes}'})
node4:addChildKeyword({'yes'}, MonsterCount, {x = 21004, storage = 91004,count = 40,reward = {{item = 2160, count = 1}},exp = 0})
node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node5 = keywordHandler:addKeyword({'butterfree'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all butterfree? {yes}'})
node5:addChildKeyword({'yes'}, MonsterCount, {x = 21005, storage = 91005,count = 50,reward = {{item = 2160, count = 2}},exp = 10000})
node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node6 = keywordHandler:addKeyword({'weedle'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all weedle? {yes}'})
node6:addChildKeyword({'yes'}, MonsterCount, {x = 21006, storage = 91006,count = 30,reward = {{item = 2152, count = 25}},exp = 0})
node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node7 = keywordHandler:addKeyword({'kakuna'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all kakuna? {yes}'})
node7:addChildKeyword({'yes'}, MonsterCount, {x = 21007, storage = 91007,count = 40,reward = {{item = 2160, count = 1}},exp = 15000})
node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node8 = keywordHandler:addKeyword({'beedrillr'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all beedrill? {yes}'})
node8:addChildKeyword({'yes'}, MonsterCount, {x = 21008, storage = 91008,count = 50,reward = {{item = 2160, count = 2}},exp = 0})
node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node9 = keywordHandler:addKeyword({'ekans'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all ekans? {yes}'})
node9:addChildKeyword({'yes'}, MonsterCount, {x = 21009, storage = 91009,count = 25,reward = {{item = 2160, count = 1}},exp = 20000})
node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node10 = keywordHandler:addKeyword({'arbok'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all arbok? {yes}'})
node10:addChildKeyword({'yes'}, MonsterCount, {x = 21010, storage = 91010,count = 45,reward = {{item = 2160, count = 2}},exp = 0})
node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node11 = keywordHandler:addKeyword({'oddish'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all oddish? {yes}'})
node11:addChildKeyword({'yes'}, MonsterCount, {x = 21011,storage = 91011,count = 15,reward = {{item = 2160, count = 5}},exp = 0})
node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node12 = keywordHandler:addKeyword({'gloom'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all gloom {yes}'})
node12:addChildKeyword({'yes'}, MonsterCount, {x = 21022, storage = 91012,count = 30,reward = {{item = 2160, count = 10}},exp = 0})
node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node13 = keywordHandler:addKeyword({'vileplume'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all vileplume? {yes}'})
node13:addChildKeyword({'yes'}, MonsterCount, {x = 21013, storage = 91013,count = 50,reward = {{item = 2152, count = 30}},exp = 0})
node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node14 = keywordHandler:addKeyword({'bellsprout'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all bellsprout? {yes}'})
node14:addChildKeyword({'yes'}, MonsterCount, {x = 21014, storage = 91014,count = 15,reward = {{item = 2160, count = 4}},exp = 0})
node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node15 = keywordHandler:addKeyword({'weedle'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all weepinbell? {yes}'})
node15:addChildKeyword({'yes'}, MonsterCount, {x = 21015, storage = 91015,count = 30,reward = {{item = 2160, count = 1}},exp = 101321})
node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node16 = keywordHandler:addKeyword({'victreebel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all victreebel? {yes}'})
node16:addChildKeyword({'yes'}, MonsterCount, {x = 21016, storage = 91016,count = 50,reward = {{item = 2160, count = 1}},exp = 60000})
node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node17 = keywordHandler:addKeyword({'tangela'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all tangela? {yes}'})
node17:addChildKeyword({'yes'}, MonsterCount, {x = 21017, storage = 91017,count = 60,reward = {{item = 2160, count = 25}},exp = 0})
node17:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node18 = keywordHandler:addKeyword({'voltorb'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all voltorb? {yes}'})
node18:addChildKeyword({'yes'}, MonsterCount, {x = 21018, storage = 91018,count = 25,reward = {{item = 2160, count = 10}},exp = 80000})
node18:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node19 = keywordHandler:addKeyword({'electrode'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all electrode? {yes}'})
node19:addChildKeyword({'yes'}, MonsterCount, {x = 21019, storage = 91019,count = 45,reward = {{item = 2160, count = 1}},exp = 0})
node19:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node20 = keywordHandler:addKeyword({'pikachu'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all pikachu? {yes}'})
node20:addChildKeyword({'yes'}, MonsterCount, {x = 21020, storage = 91020,count = 30,reward = {{item = 2160, count = 1}},exp = 0})
node20:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node21 = keywordHandler:addKeyword({'raichu'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all raichu? {yes}'})
node21:addChildKeyword({'yes'}, MonsterCount, {x = 21021, storage = 91021,count = 60,reward = {{item = 2160, count = 13}},exp = 150000})
node21:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node22 = keywordHandler:addKeyword({'paras'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all paras? {yes}'})
node22:addChildKeyword({'yes'}, MonsterCount, {x = 21022, storage = 91022,count = 10,reward = {{item = 2160, count = 1}},exp = 0})
node22:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node23 = keywordHandler:addKeyword({'parasect'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all parasect? {yes}'})
node23:addChildKeyword({'yes'}, MonsterCount, {x = 21023, storage = 91023,count = 30,reward = {{item = 2160, count = 1}},exp = 98574})
node23:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node24 = keywordHandler:addKeyword({'geodude'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all geodude? {yes}'})
node24:addChildKeyword({'yes'}, MonsterCount, {x = 21024, storage = 91024,count = 20,reward = {{item = 2160, count = 1}},exp = 123125})
node24:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node25 = keywordHandler:addKeyword({'graveler'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all graveler {yes}'})
node25:addChildKeyword({'yes'}, MonsterCount, {x = 21025, storage = 91025,count = 40,reward = {{item = 2160, count = 80}},exp = 7500000})
node25:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node26 = keywordHandler:addKeyword({'golem'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all golem? {yes}'})
node26:addChildKeyword({'yes'}, MonsterCount, {x = 21026, storage = 91026,count = 60,reward = {{item = 2160, count = 50}},exp = 2500000})
node26:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node27 = keywordHandler:addKeyword({'machop'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all machop? {yes}'})
node27:addChildKeyword({'yes'}, MonsterCount, {x = 21027, storage = 91027,count = 20,reward = {{item = 2160, count = 100}},exp = 5246300})
node27:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node28 = keywordHandler:addKeyword({'machoke'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all machoke? {yes}'})
node28:addChildKeyword({'yes'}, MonsterCount, {x = 21028, storage = 91028,count = 40,reward = {{item = 2160, count = 100}},exp = 27393800})
node28:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node29 = keywordHandler:addKeyword({'machamp'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all machamp? {yes}'})
node29:addChildKeyword({'yes'}, MonsterCount, {x = 21029, storage = 91029,count = 65,reward = {{item = 2160, count = 65}},exp = 1639300})
node29:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node30 = keywordHandler:addKeyword({'mankey'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all mankey? {yes}'})
node30:addChildKeyword({'yes'}, MonsterCount, {x = 21030, storage = 91030,count = 15,reward = {{item = 2160, count = 70}},exp = 38124230})
node30:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node31 = keywordHandler:addKeyword({'primeape'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all primeape? {yes}'})
node31:addChildKeyword({'yes'}, MonsterCount, {x = 21031, storage = 91031,count = 40,reward = {{item = 2160, count = 80}},exp = 2219180})
node31:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node32 = keywordHandler:addKeyword({'krabby'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all krabby? {yes}'})
node32:addChildKeyword({'yes'}, MonsterCount, {x = 21032, storage = 91032,count = 25,reward = {{item = 2160, count = 100}},exp = 5246300})
node32:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node33 = keywordHandler:addKeyword({'kingler'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all kingler? {yes}'})
node33:addChildKeyword({'yes'}, MonsterCount, {x = 21033, storage = 91033,count = 50,reward = {{item = 2160, count = 100}},exp = 7915800})
node33:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node34 = keywordHandler:addKeyword({'goldeen'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all goldeen? {yes}'})
node34:addChildKeyword({'yes'}, MonsterCount, {x = 21034, storage = 91034,count = 25,reward = {{item = 2160, count = 100}},exp = 15694800})
node34:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node35 = keywordHandler:addKeyword({'seaking'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all seaking? {yes}'})
node35:addChildKeyword({'yes'}, MonsterCount, {x = 21035, storage = 91035,count = 50,reward = {{item = 2160, count = 100}},exp = 15694800})
node35:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node36 = keywordHandler:addKeyword({'poliwag'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all poliwag? {yes}'})
node36:addChildKeyword({'yes'}, MonsterCount, {x = 21036, storage = 91036,count = 20,reward = {{item = 2160, count = 70}},exp = 1118190})
node36:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node37 = keywordHandler:addKeyword({'poliwhirl'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all poliwhirl? {yes}'})
node37:addChildKeyword({'yes'}, MonsterCount, {x = 21037, storage = 91037,count = 40,reward = {{item = 2160, count = 68}},exp = 2125150})
node37:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node38 = keywordHandler:addKeyword({'poliwrath'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all poliwrath? {yes}'})
node38:addChildKeyword({'yes'}, MonsterCount, {x = 21038, storage = 91038,count = 60,reward = {{item = 2160, count = 90}},exp = 24858000})
node38:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node39 = keywordHandler:addKeyword({'anorlax'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all snorlax? {yes}'})
node39:addChildKeyword({'yes'}, MonsterCount, {x = 21039, storage = 91039,count = 50,reward = {{item = 2160, count = 65}},exp = 3138470})
node39:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node40 = keywordHandler:addKeyword({'completed'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I have to give you special items! You already killed all monster? {yes}'})
node40:addChildKeyword({'yes'}, Completed, {x = 21040,reward = {{item = 2160, count = 100}},exp = 54042300})
node40:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

npcHandler:addModule(FocusModule:new())

 

 

 

 

O Premio e quantia de monster a ser mortos vcs editem do modo que acharem melhor!

Editado por mulizeu
Link para o comentário
Compartilhar em outros sites

ALGUEM PODERIA FAZER 1 CLIENTE COMPATIVEL COM O DASH 1.4f DO + REP ^^

Cara o client no começo do tópico ja funciona com o DASH não sei oque você ta querendo pois se e pra funcionar com mapa kpado ou etc.. tem só que trocar alguns itens do dat.

-------------------------------------------------AKI A TASK------------------------------------------------------

 

data creaturescript crie task.lua e coloque!

 

 

 

 


function onKill(cid, target)
local m = {
["rattata"] = 91001,
["raticate"] = 91002,
["caterpie"] = 91003,
["metapod"] = 91004,
["butterfree"] = 91005,
["weedle"] = 91006,
["kakuna"] = 91007,
["beedrill"] = 91008,
["ekans"] = 91009,
["arbok"] = 91010,
["oddish"] = 91011,
["gloom"] = 91012,
["vileplume"] = 91013,
["bellsprout"] = 91014,
["weepinbell"] = 91015,
["vitreebel"] = 91016,
["tangela"] = 91017,
["voltorb"] = 91018,
["electrode"] = 91019,
["pikachu"] = 91020,
["raichu"] = 91021,
["paras"] = 91022,
["parasect"] = 91023,
["geodude"] = 91024,
["graveler"] = 91025,
["golem"] = 91026,
["machop"] = 91027,
["machoke"] = 91028,
["machamp"] = 91029,
["mankey"] = 91030,
["primeape"] = 91031,
["krabby"] = 91032,
["kingler"] = 91033,
["goldeen"] = 91034,
["seaking"] = 91035,
["poliwag"] = 91036,
["poliwhirl"] = 91037,
["poliwrath"] = 91038,
["snorlax"] = 91039
}
 if(isMonster(target) == TRUE) then
 local n = getCreatureName(target)
 local name_monster = m[string.lower(n)]
 if(name_monster) then
 local contagem = getPlayerStorageValue(cid, name_monster)
 if(contagem == -1) then
contagem = 1 end
setPlayerStorageValue(cid, name_monster, contagem+1)
doPlayerSendTextMessage(cid,20,"you kill "..contagem.." "..n.."")
end
end
return TRUE
end

 

 

 

login.lua coloque

 


registerCreatureEvent(cid, "task_count")

 

 

 

creaturescript.xml coloque

 

 

 <event type="kill" name="task_count" script="task.lua"/>

 

 

--------------------------------------------------

 

 

Checar quantos matou e quantos faltam

 

talkactions crie um arquivo.lua e coloque!

 

 

 

  function onSay(cid, words, param)

function pairsByKeys (t, f)
  local a = {}
  for n in pairs(t) do table.insert(a, n) end
  table.sort(a, f)
  local i = 0
  local iter = function ()
	i = i + 1
	if a[i] == nil then return nil
	else return a[i], t[a[i]]
	end
  end
  return iter
end
local m = {
["rattata"] = {storage = 91001, count= 30 },
["raticate"] = {storage = 91002, count= 30 },
["caterpie"] = {storage = 91003, count= 30  },
["metapod"] = {storage = 91004, count= 40	},
["butterfree"] = {storage = 91005, count= 50  },
["weedle"] = {storage = 91006, count= 30 },
["kakuna"] = {storage = 91007, count= 40  },
["beedrill"] = {storage = 91008, count= 50 },
["ekans"] = {storage = 91009, count=  25 },
["arbok"] = {storage = 91010, count=  45  },
["oddish"] = {storage = 91011, count= 15   },
["gloom"] = {storage = 91012, count= 30  },
["vileplume"] = {storage = 91013, count= 50 },
["bellsprout"] = {storage = 91014, count= 15 },
["weepinbell"] = {storage = 91015, count= 30  },
["vitreebel"] = {storage = 91016, count= 50  },
["tangela"] = {storage = 91017, count= 60 },  
["voltorb"] = {storage = 91018, count= 25  },
["electrode"] = {storage = 91019, count= 45 },
["pikachu"] = {storage = 91020, count= 30 },
["raichu"] = {storage = 91021, count= 60 },
["paras"] = {storage = 91022, count= 10 } ,
["parasect"] = {storage = 91023, count= 30  },
["geodude"] = {storage = 91024, count=  20 },
["graveler"] = {storage = 91025, count= 40},
["golem"] = {storage = 91026, count= 60 },
["machop"] = {storage = 91027, count= 20},
["machoke"] = {storage = 91028, count= 40},
["machamp"] = {storage = 91029, count= 65 },
["mankey"] = {storage = 91030, count= 15 },
["primeape"] = {storage = 91031, count= 40},
["krabby"] = {storage = 91032, count=  25 },
["kingler"] = {storage = 91033, count= 50 },
["goldeen"] = {storage = 91034, count= 25 },
["seaking"] = {storage = 91035, count= 50},
["poliwag"] = {storage = 91036, count=  20 },
["poliwhirl"] = {storage = 91037, count= 40 },
["poliwrath"] = {storage = 91038, count= 60 },
["snorlax"] = {storage = 91039 , count= 50  },
}
local str = ""
str = str .. "Task Completed :\n\n"
for k, v in pairsByKeys(m) do
local contagem = getPlayerStorageValue(cid, v.storage)
if(contagem == -1) then
contagem = 1 end
str = str..k.." = ["..((contagem)-1).."/"..v.count.."]\n"
end
str = str .. "" return doShowTextDialog(cid, 8983, str) end

 

 

 

talkactions.xml

 

 <talkaction words="!task" script="nomearquivo.lua"/>

 

 

npc que dara premio

 

crie um npc.xml e coloque

 

 

 <?xml version="1.0"?>
<npc name="Ludger" script="data/npc/scripts/task.lua" walkinterval="50000" floorchange="0">
<health now="100" max="100"/>
<look type="511" head="95" body="116" legs="121" feet="115" addons="3"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|.I have some {task} for you!" /> </parameters>
</npc>

 

 

npc/script crie task.lua e coloque

 

 

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 MonsterCount(cid, message, keywords, parameters, node)  
	if(not npcHandler:isFocused(cid)) then
			return false
	end
local contagem = getPlayerStorageValue(cid, parameters.storage)
if(contagem == -1) then
contagem = 1 end
  if getPlayerStorageValue(cid, parameters.x) <= 0 then
	   if (((contagem)-1) >= parameters.count) then
								   doPlayerAddExp(cid, parameters.exp)
						   for k,v in pairs(parameters.reward) do
				doPlayerAddItem(cid, v.item, v.count or 1)
			end
		  setPlayerStorageValue(cid, parameters.x, 1)
		npcHandler:say('Thanks for your help,receive your rewards!', cid)
	else
			npcHandler:say('Sorry,but you still only killed '..((contagem)-1)..' monsters!', cid)
			npcHandler:resetNpc()
	end
	else
	npcHandler:say('You can only receive the reward once!', cid)
	npcHandler:resetNpc()
	end
	return TRUE
	end
function Completed(cid, message, keywords, parameters, node)
	if(not npcHandler:isFocused(cid)) then
			return false
	end
  if getPlayerStorageValue(cid, parameters.x) <= 0 then
  for i = 21001,21039 do
	   if getPlayerStorageValue(cid,i) <= 0 then
	   return npcHandler:say('Sorry,but you have not still finished the whole task!', cid)
	   end
	   end					 doPlayerAddExp(cid, parameters.exp)
						   for k,v in pairs(parameters.reward) do
				doPlayerAddItem(cid, v.item, v.count or 1)
			end
		  setPlayerStorageValue(cid, parameters.x, 1)
			 b = getGlobalStorageValue(63004)
			  if b == -1 then
				b = 1
				   end
					 if b < 11 then
						setGlobalStorageValue(63004,b+1)
						npcHandler:say('you recivied items,trophy and 10 days of premium account!!', cid)
						  doBroadcastMessage('[Task Mission Complete] '..getCreatureName(cid)..' was the '..b..'° to finish the task!.')
								 doPlayerAddPremiumDays(cid, 10)
							 doPlayerAddItem(cid, 2646,1)
						  doPlayerAddItem(cid, 2343,1)
				 doItemSetAttribute(doPlayerAddItem(cid, 7369), "name", "trophy of the 10 firsts finish all task")
			 end
		npcHandler:say('Congratulations,now you have completed all the task!', cid)
		npcHandler:resetNpc()
	else
	npcHandler:say('You can only receive the reward once!', cid)
	npcHandler:resetNpc()
	end
	return TRUE
	end


keywordHandler:addKeyword({'task'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I have a mission to {low level},{mid level} and {high level},{all mission} or {help} for know the amount of monsters you/ve killed!'})
keywordHandler:addKeyword({'all mission'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Wow! You/re a great hunter!,you really {completed} all mission?'})
keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To see how many monsters you killed just use command {!task}'})
keywordHandler:addKeyword({'low level'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Then low level you have to kill some monsters like: {minotaur mage},{orc spearman},{cyclops},{cave rat},{fire devil},{fire devil},{orc warrior},{slime},{beholder},{dragon hatchling} and {wyvern}!'})
keywordHandler:addKeyword({'mid level'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'hmm mid level,you have to kill some monsters: {fire elemental},{blue djinn},{demon skeleton},{dragon},{dragon lord},{crystal spider},{earth elemental},{hero},{avalanche},{giant spider},{fury},{orc warlord} and {green djinn}'})
keywordHandler:addKeyword({'high level'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'haha high level,to you it will not be easy because you have to kill some monsters: {demon},{hydra},{frost dragon},{warlock},{medusa},{grim reaper},{undead dragon},{ferumbras},{orshabaal},{morgaroth},{ghazbaran},{minishabaal},{diabolic imp},{juggernaut} and {behemoth}'})
local node1 = keywordHandler:addKeyword({'rattata'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed 30 Rattata? {yes}'})
node1:addChildKeyword({'yes'}, MonsterCount, {x = 21001,storage = 91001,count = 30,reward = {{item = 2656, count = 1}},exp = 1000})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node2 = keywordHandler:addKeyword({'raticate'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all Raticate? {yes}'})
node2:addChildKeyword({'yes'}, MonsterCount, {x = 21002, storage = 91002,count = 30,reward = {{item = 2152, count = 50}},exp = 2000})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node3 = keywordHandler:addKeyword({'caterpie'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all caterpie? {yes}'})
node3:addChildKeyword({'yes'}, MonsterCount, {x = 21003, storage = 91003,count = 30,reward = {{item = 2152, count = 35}},exp = 4000})
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node4 = keywordHandler:addKeyword({'metapod'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all metapod? {yes}'})
node4:addChildKeyword({'yes'}, MonsterCount, {x = 21004, storage = 91004,count = 40,reward = {{item = 2160, count = 1}},exp = 0})
node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node5 = keywordHandler:addKeyword({'butterfree'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all butterfree? {yes}'})
node5:addChildKeyword({'yes'}, MonsterCount, {x = 21005, storage = 91005,count = 50,reward = {{item = 2160, count = 2}},exp = 10000})
node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node6 = keywordHandler:addKeyword({'weedle'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all weedle? {yes}'})
node6:addChildKeyword({'yes'}, MonsterCount, {x = 21006, storage = 91006,count = 30,reward = {{item = 2152, count = 25}},exp = 0})
node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node7 = keywordHandler:addKeyword({'kakuna'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all kakuna? {yes}'})
node7:addChildKeyword({'yes'}, MonsterCount, {x = 21007, storage = 91007,count = 40,reward = {{item = 2160, count = 1}},exp = 15000})
node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node8 = keywordHandler:addKeyword({'beedrillr'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all beedrill? {yes}'})
node8:addChildKeyword({'yes'}, MonsterCount, {x = 21008, storage = 91008,count = 50,reward = {{item = 2160, count = 2}},exp = 0})
node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node9 = keywordHandler:addKeyword({'ekans'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all ekans? {yes}'})
node9:addChildKeyword({'yes'}, MonsterCount, {x = 21009, storage = 91009,count = 25,reward = {{item = 2160, count = 1}},exp = 20000})
node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node10 = keywordHandler:addKeyword({'arbok'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all arbok? {yes}'})
node10:addChildKeyword({'yes'}, MonsterCount, {x = 21010, storage = 91010,count = 45,reward = {{item = 2160, count = 2}},exp = 0})
node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node11 = keywordHandler:addKeyword({'oddish'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all oddish? {yes}'})
node11:addChildKeyword({'yes'}, MonsterCount, {x = 21011,storage = 91011,count = 15,reward = {{item = 2160, count = 5}},exp = 0})
node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node12 = keywordHandler:addKeyword({'gloom'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all gloom {yes}'})
node12:addChildKeyword({'yes'}, MonsterCount, {x = 21022, storage = 91012,count = 30,reward = {{item = 2160, count = 10}},exp = 0})
node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node13 = keywordHandler:addKeyword({'vileplume'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all vileplume? {yes}'})
node13:addChildKeyword({'yes'}, MonsterCount, {x = 21013, storage = 91013,count = 50,reward = {{item = 2152, count = 30}},exp = 0})
node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node14 = keywordHandler:addKeyword({'bellsprout'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all bellsprout? {yes}'})
node14:addChildKeyword({'yes'}, MonsterCount, {x = 21014, storage = 91014,count = 15,reward = {{item = 2160, count = 4}},exp = 0})
node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node15 = keywordHandler:addKeyword({'weedle'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all weepinbell? {yes}'})
node15:addChildKeyword({'yes'}, MonsterCount, {x = 21015, storage = 91015,count = 30,reward = {{item = 2160, count = 1}},exp = 101321})
node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node16 = keywordHandler:addKeyword({'victreebel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all victreebel? {yes}'})
node16:addChildKeyword({'yes'}, MonsterCount, {x = 21016, storage = 91016,count = 50,reward = {{item = 2160, count = 1}},exp = 60000})
node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node17 = keywordHandler:addKeyword({'tangela'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all tangela? {yes}'})
node17:addChildKeyword({'yes'}, MonsterCount, {x = 21017, storage = 91017,count = 60,reward = {{item = 2160, count = 25}},exp = 0})
node17:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node18 = keywordHandler:addKeyword({'voltorb'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all voltorb? {yes}'})
node18:addChildKeyword({'yes'}, MonsterCount, {x = 21018, storage = 91018,count = 25,reward = {{item = 2160, count = 10}},exp = 80000})
node18:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node19 = keywordHandler:addKeyword({'electrode'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all electrode? {yes}'})
node19:addChildKeyword({'yes'}, MonsterCount, {x = 21019, storage = 91019,count = 45,reward = {{item = 2160, count = 1}},exp = 0})
node19:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node20 = keywordHandler:addKeyword({'pikachu'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all pikachu? {yes}'})
node20:addChildKeyword({'yes'}, MonsterCount, {x = 21020, storage = 91020,count = 30,reward = {{item = 2160, count = 1}},exp = 0})
node20:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node21 = keywordHandler:addKeyword({'raichu'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all raichu? {yes}'})
node21:addChildKeyword({'yes'}, MonsterCount, {x = 21021, storage = 91021,count = 60,reward = {{item = 2160, count = 13}},exp = 150000})
node21:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node22 = keywordHandler:addKeyword({'paras'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all paras? {yes}'})
node22:addChildKeyword({'yes'}, MonsterCount, {x = 21022, storage = 91022,count = 10,reward = {{item = 2160, count = 1}},exp = 0})
node22:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node23 = keywordHandler:addKeyword({'parasect'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all parasect? {yes}'})
node23:addChildKeyword({'yes'}, MonsterCount, {x = 21023, storage = 91023,count = 30,reward = {{item = 2160, count = 1}},exp = 98574})
node23:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node24 = keywordHandler:addKeyword({'geodude'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all geodude? {yes}'})
node24:addChildKeyword({'yes'}, MonsterCount, {x = 21024, storage = 91024,count = 20,reward = {{item = 2160, count = 1}},exp = 123125})
node24:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node25 = keywordHandler:addKeyword({'graveler'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all graveler {yes}'})
node25:addChildKeyword({'yes'}, MonsterCount, {x = 21025, storage = 91025,count = 40,reward = {{item = 2160, count = 80}},exp = 7500000})
node25:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node26 = keywordHandler:addKeyword({'golem'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all golem? {yes}'})
node26:addChildKeyword({'yes'}, MonsterCount, {x = 21026, storage = 91026,count = 60,reward = {{item = 2160, count = 50}},exp = 2500000})
node26:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node27 = keywordHandler:addKeyword({'machop'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all machop? {yes}'})
node27:addChildKeyword({'yes'}, MonsterCount, {x = 21027, storage = 91027,count = 20,reward = {{item = 2160, count = 100}},exp = 5246300})
node27:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node28 = keywordHandler:addKeyword({'machoke'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all machoke? {yes}'})
node28:addChildKeyword({'yes'}, MonsterCount, {x = 21028, storage = 91028,count = 40,reward = {{item = 2160, count = 100}},exp = 27393800})
node28:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node29 = keywordHandler:addKeyword({'machamp'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all machamp? {yes}'})
node29:addChildKeyword({'yes'}, MonsterCount, {x = 21029, storage = 91029,count = 65,reward = {{item = 2160, count = 65}},exp = 1639300})
node29:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node30 = keywordHandler:addKeyword({'mankey'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all mankey? {yes}'})
node30:addChildKeyword({'yes'}, MonsterCount, {x = 21030, storage = 91030,count = 15,reward = {{item = 2160, count = 70}},exp = 38124230})
node30:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node31 = keywordHandler:addKeyword({'primeape'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all primeape? {yes}'})
node31:addChildKeyword({'yes'}, MonsterCount, {x = 21031, storage = 91031,count = 40,reward = {{item = 2160, count = 80}},exp = 2219180})
node31:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node32 = keywordHandler:addKeyword({'krabby'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all krabby? {yes}'})
node32:addChildKeyword({'yes'}, MonsterCount, {x = 21032, storage = 91032,count = 25,reward = {{item = 2160, count = 100}},exp = 5246300})
node32:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node33 = keywordHandler:addKeyword({'kingler'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all kingler? {yes}'})
node33:addChildKeyword({'yes'}, MonsterCount, {x = 21033, storage = 91033,count = 50,reward = {{item = 2160, count = 100}},exp = 7915800})
node33:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node34 = keywordHandler:addKeyword({'goldeen'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all goldeen? {yes}'})
node34:addChildKeyword({'yes'}, MonsterCount, {x = 21034, storage = 91034,count = 25,reward = {{item = 2160, count = 100}},exp = 15694800})
node34:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node35 = keywordHandler:addKeyword({'seaking'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all seaking? {yes}'})
node35:addChildKeyword({'yes'}, MonsterCount, {x = 21035, storage = 91035,count = 50,reward = {{item = 2160, count = 100}},exp = 15694800})
node35:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node36 = keywordHandler:addKeyword({'poliwag'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all poliwag? {yes}'})
node36:addChildKeyword({'yes'}, MonsterCount, {x = 21036, storage = 91036,count = 20,reward = {{item = 2160, count = 70}},exp = 1118190})
node36:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node37 = keywordHandler:addKeyword({'poliwhirl'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all poliwhirl? {yes}'})
node37:addChildKeyword({'yes'}, MonsterCount, {x = 21037, storage = 91037,count = 40,reward = {{item = 2160, count = 68}},exp = 2125150})
node37:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node38 = keywordHandler:addKeyword({'poliwrath'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all poliwrath? {yes}'})
node38:addChildKeyword({'yes'}, MonsterCount, {x = 21038, storage = 91038,count = 60,reward = {{item = 2160, count = 90}},exp = 24858000})
node38:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node39 = keywordHandler:addKeyword({'anorlax'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You already killed all snorlax? {yes}'})
node39:addChildKeyword({'yes'}, MonsterCount, {x = 21039, storage = 91039,count = 50,reward = {{item = 2160, count = 65}},exp = 3138470})
node39:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node40 = keywordHandler:addKeyword({'completed'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I have to give you special items! You already killed all monster? {yes}'})
node40:addChildKeyword({'yes'}, Completed, {x = 21040,reward = {{item = 2160, count = 100}},exp = 54042300})
node40:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

npcHandler:addModule(FocusModule:new())

 

 

 

 

O Premio e quantia de monster a ser mortos vcs editem do modo que acharem melhor!

Testando, se funcional reputado.

 

 

@Slicer

Acho muito legal essas suas passivas mas sempre que ponho no meu da erro pois eu tenho o shiny system com a função isShiny ai eu não sei o por que sempre da bug e não abre o servidor.

Se tu pudesse mostrar como adiciona-las cada uma eu faria aqui seria muito bom.

Vlw :D

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...