Ir para conteúdo

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


lucashgas

Posts Recomendados

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...