Ir para conteúdo

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


lucashgas

Posts Recomendados

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

Bom galera, irei postar alguns npc de quest!

 

Quest de Apple Bite: Julie

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Julie" script="Julie.lua" walkinterval="0" floorchange="0">
<health now="100" max="100"/>
<look type="511" head="9" body="1" legs="1" feet="0" addons="0"/>
<parameters>
<parameter key="message_greet" value="I hate Rattatas! I spent my day collecting apples and theys slote them all!" />
</parameters>
</npc>

 

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT
if(msgcontains(msg, 'help')) then
selfSay('Yes, please, get my apples back, it was 30! No matter their aspect, thats for revenge!')
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
if (getPlayerStorageValue(cid,252601) > 0) then
selfSay('Sorry, but I already brought the 30 apple bites!')
else
if(doPlayerRemoveItem(cid,12173,30)) then
setPlayerStorageValue(cid,252601,1)
doPlayerAddExp(cid, 1000)
doPlayerAddItem(cid,2152,3)
doPlayerAddItem(cid,2148,25)
selfSay('Thanks a lot, thats a shame they ate all the apples, Ill still heave my revenge! Well, get this as a reward!')
else
selfSay('Sorry, but you do not have the 30 apple bites ordered to bring me!')
end
end
return true
end
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

 

 

 

Quest da Venom Stone: Colin

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Colin" script="Colin.lua" walkinterval="0" floorchange="0">
<health now="100" max="100"/>
<look type="523" head="57" body="49" legs="114" feet="0" addons="0"/>
<parameters>
<parameter key="message_greet" value="I'm preparing a magic potion for Pokemons, I need ingredients." />
</parameters>
</npc>

 

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT

if(msgcontains(msg, 'help')) then
selfSay('Yes, I need help, Ill need 5 bat wings, 5 nail, 3 tooths, 3 mushrooms and 3 fur. At level 22 you can get better prizes. Are you sure you want to finish it now?')
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then

if (getPlayerLevel(cid) <= 22) then
selfSay('You do not have the necessary level to help me!')
else

if (getPlayerStorageValue(cid,252605) > 0) then
selfSay('Thank you but you already gave me the necessary items!')
else

if(doPlayerRemoveItem(cid,12182,5)) then
doPlayerRemoveItem(cid,12157,5)
doPlayerRemoveItem(cid,12175,3)
doPlayerRemoveItem(cid,12183,3)
doPlayerRemoveItem(cid,12181,3)
setPlayerStorageValue(cid,252605,1)
doPlayerAddExp(cid, 2000)
doPlayerAddItem(cid,11443,1)
selfSay('Thanks a lot, take this!')
else
selfSay('Sorry, but you do not bring the necessary items!')
end
end
return true
end
end
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

 

 

 

Quest do Bag of Pollem: Mia

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Mia" script="Mia.lua" walkinterval="0" floorchange="0">
<health now="100" max="100"/>
<look type="513" head="114" body="0" legs="0" feet="0" addons="0"/>
<parameters>
<parameter key="message_greet" value="I'm really sad, I'm sorry!" />
</parameters>
</npc>

 

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT

if(msgcontains(msg, 'help')) then
selfSay('My Butterfree is really sad, she cant use powder attacks, I want to make it stronger, can you bring me 25 pollen bags?')
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then

if (getPlayerStorageValue(cid,252603) > 0) then
selfSay('Sorry, but I already brought the 25 pollen bags!')
else

if(doPlayerRemoveItem(cid,12153,25)) then
setPlayerStorageValue(cid,252603,1)
doPlayerAddExp(cid, 2000)
doPlayerAddItem(cid,2152,10)
selfSay('Thanks a lot, my Butterfree is going to be well.')
else
selfSay('Sorry, but you do not have the 25 pollen bags ordered to bring me!')
end
end
return true
end
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

 

 

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

@SoulOroshie

mano... o sistema de atks passivos n tem nd a ver com sistema de transforma em shiny e blablabla.. ;x tanto q meu onSpawn nem ta ali... n sei oq pode ta dando no teu serv.. ;x talvez tu esteja mudando algu errado, ou tu edito alguma coisa importante num dos arquivos q eu enviei dai se tu trocar os arquivos podem dar problema n sei... ;x

 

@all

to na facul agora.. mas assim q chegar em casa irei atualizar o sistema de passivo denovo.. pos achei 2 problemas com ele... ;x fuiz

Link para o comentário
Compartilhar em outros sites

@slicer, erro nas passive aqui :)

 

[15/03/2012 16:59:22] [Error - Spell Interface]
[15/03/2012 16:59:22] data/spells/scripts/passivas/megadrain.lua:onCastSpell
[15/03/2012 16:59:22] Description:
[15/03/2012 16:59:22] data/spells/scripts/passivas/megadrain.lua:21: attempt to call global 'checkAreaUid' (a nil value)
[15/03/2012 16:59:22] stack traceback:
[15/03/2012 16:59:22]     data/spells/scripts/passivas/megadrain.lua:21: in function <data/spells/scripts/passivas/megadrain.lua:12>

Link para o comentário
Compartilhar em outros sites

Bom galera, irei postar alguns npc de quest!

 

Quest de Apple Bite: Julie

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Julie" script="Julie.lua" walkinterval="0" floorchange="0">
<health now="100" max="100"/>
<look type="511" head="9" body="1" legs="1" feet="0" addons="0"/>
<parameters>
<parameter key="message_greet" value="I hate Rattatas! I spent my day collecting apples and theys slote them all!" />
</parameters>
</npc>

 

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT
if(msgcontains(msg, 'help')) then
selfSay('Yes, please, get my apples back, it was 30! No matter their aspect, thats for revenge!')
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
if (getPlayerStorageValue(cid,252601) > 0) then
selfSay('Sorry, but I already brought the 30 apple bites!')
else
if(doPlayerRemoveItem(cid,12173,30)) then
setPlayerStorageValue(cid,252601,1)
doPlayerAddExp(cid, 1000)
doPlayerAddItem(cid,2152,3)
doPlayerAddItem(cid,2148,25)
selfSay('Thanks a lot, thats a shame they ate all the apples, Ill still heave my revenge! Well, get this as a reward!')
else
selfSay('Sorry, but you do not have the 30 apple bites ordered to bring me!')
end
end
return true
end
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

 

 

 

Quest da Venom Stone: Colin

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Colin" script="Colin.lua" walkinterval="0" floorchange="0">
<health now="100" max="100"/>
<look type="523" head="57" body="49" legs="114" feet="0" addons="0"/>
<parameters>
<parameter key="message_greet" value="I'm preparing a magic potion for Pokemons, I need ingredients." />
</parameters>
</npc>

 

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT

if(msgcontains(msg, 'help')) then
selfSay('Yes, I need help, Ill need 5 bat wings, 5 nail, 3 tooths, 3 mushrooms and 3 fur. At level 22 you can get better prizes. Are you sure you want to finish it now?')
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then

if (getPlayerLevel(cid) <= 22) then
selfSay('You do not have the necessary level to help me!')
else

if (getPlayerStorageValue(cid,252605) > 0) then
selfSay('Thank you but you already gave me the necessary items!')
else

if(doPlayerRemoveItem(cid,12182,5)) then
doPlayerRemoveItem(cid,12157,5)
doPlayerRemoveItem(cid,12175,3)
doPlayerRemoveItem(cid,12183,3)
doPlayerRemoveItem(cid,12181,3)
setPlayerStorageValue(cid,252605,1)
doPlayerAddExp(cid, 2000)
doPlayerAddItem(cid,11443,1)
selfSay('Thanks a lot, take this!')
else
selfSay('Sorry, but you do not bring the necessary items!')
end
end
return true
end
end
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

 

 

 

Quest do Bag of Pollem: Mia

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Mia" script="Mia.lua" walkinterval="0" floorchange="0">
<health now="100" max="100"/>
<look type="513" head="114" body="0" legs="0" feet="0" addons="0"/>
<parameters>
<parameter key="message_greet" value="I'm really sad, I'm sorry!" />
</parameters>
</npc>

 

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT

if(msgcontains(msg, 'help')) then
selfSay('My Butterfree is really sad, she cant use powder attacks, I want to make it stronger, can you bring me 25 pollen bags?')
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then

if (getPlayerStorageValue(cid,252603) > 0) then
selfSay('Sorry, but I already brought the 25 pollen bags!')
else

if(doPlayerRemoveItem(cid,12153,25)) then
setPlayerStorageValue(cid,252603,1)
doPlayerAddExp(cid, 2000)
doPlayerAddItem(cid,2152,10)
selfSay('Thanks a lot, my Butterfree is going to be well.')
else
selfSay('Sorry, but you do not have the 25 pollen bags ordered to bring me!')
end
end
return true
end
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

 

 

Muito bom estão muito bem feitos e se alguem quiser é so mudar de acordo com o gosto.

Reputado.

@SoulOroshie

mano... o sistema de atks passivos n tem nd a ver com sistema de transforma em shiny e blablabla.. ;x tanto q meu onSpawn nem ta ali... n sei oq pode ta dando no teu serv.. ;x talvez tu esteja mudando algu errado, ou tu edito alguma coisa importante num dos arquivos q eu enviei dai se tu trocar os arquivos podem dar problema n sei... ;x

 

@all

to na facul agora.. mas assim q chegar em casa irei atualizar o sistema de passivo denovo.. pos achei 2 problemas com ele... ;x fuiz

Não slicer eu não uso o seu shiny system eu uso o do zeref por isso que da uns "bengs" quando eu tento por o teu.

Link para o comentário
Compartilhar em outros sites

@Nibenlis , o shiny jolteon tá virando shiny clefairy .. , testa ae no teu ot , dai o lock dele vai fica como o do clefairy , dis ae o locktype do jolteon pro muda aqui ;S ,

 

 

@All , alguem tem o razor wind do scizor , tpw pra ele n sair como o do shiny scyther?

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

@RicardoSohnn

se tu pegar o arquivo lib/032-position... vai parar isso u,U

 

@Zerons

oia mano vo fla a real.. ;x eu dei uma olhada e n vi nd q possa ser relacionado ao seu bug.. ;x ja tento reportar o bug la no post do cara q fez o sistema?.. e tu jogo todas as balls antigas fora? pq esse sistema soh vai funcionar pras novas balls..

 

@All

Novo edit no meu sistema de passivas.. 2 problemas arrumados.. se quiserem eh soh rebaixar e soh pegar o arquivo exp.lua e spells/electriccharge.lua... ;p sempre acabo esquecendo de algu...

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

@slicer

cara vc deu um olhadinha no age system para mim ?

Nao consegui resolver.

 

@Slicer

Sim cara ja tentei mais mais o erro continua e eu ja reportei la mais o cara parace puta so vem aki no forum quando quer algo.

Link para o comentário
Compartilhar em outros sites

Preciso de 1 Configuration.lua funcionando para o comando /cb com shinys. Agradeço !

 

 

Grande abraço galera !

o comando /cb ja funciona para todos os shinys no padrão que ja vem pra download no começo do tópico se o seu não ta pegando você fez coisa errada na talkaction createball.lua

@Nibenlis , o shiny jolteon tá virando shiny clefairy .. , testa ae no teu ot , dai o lock dele vai fica como o do clefairy , dis ae o locktype do jolteon pro muda aqui ;S ,

 

 

@All , alguem tem o razor wind do scizor , tpw pra ele n sair como o do shiny scyther?

Tem que ter a sprite do scizor fazendo o movimento que eu acho que não tem no client e ninguem fez.

cdbar igual do pflay é poko dahora, tem como comseguir n ? '-

Nunca tentei baixar esse tal client do pflay nem sabia que tava on, vou dar uma olhada.

@all oq acharam da task..?? se tiverem duvida so falar!

Se task ta muito bom mano parabens ja reputei fico show só dei uma editada nos numeros de pokes e tal sem problemas e sem bugs.

Link para o comentário
Compartilhar em outros sites

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