Ir para conteúdo

[Pokemon] Pda By Slicer 1.9/2.9


Slicer

Posts Recomendados

baixei a nova atualizacao mas deu o seguinte erro

 

[29/07/2012 18:42:12] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/aMeowth Dealer.xml).

[29/07/2012 18:42:12] Info: failed to load external entity "data/npc/aMeowth Dealer.xml"

 

 

[29/07/2012 18:42:12] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (3)

[29/07/2012 18:42:12] > Data parsing time: 0.281 seconds.

n existe esse npc na pasta npc

ajuda ae sicer, e sabe me dizer por qdo abro o dat e o spr do dat editor n consigo localizar as imagens dos shinys, como lapras cloyster e etc?

  • 0

Link para o comentário
Compartilhar em outros sites

Funcionou!smile_positivo.gif

so ficou um pouco bagunçado... olha

bug1oq.png

dai eu so dei uma arrumadinha pra ficar legal

bug2i.png

 

lvl dos moves sem bagunçahe.gif

local txt = ""..z.."\n • "..y.name.." (move "..number.." / m"..number.."):\n #Level: "..y.level.."\n #Type: "..movesinfo[y.name].t.."\n #Cooldown: "..y.cd.." seconds.\n #Needs target: "..doCheckMoveTarget(y)..""

Link para o comentário
Compartilhar em outros sites

@Wiisht

 

mano n sei oq te dizer.. se tu ta seguindo todas as coisas q eu coloquei nos scripts n tem pq da esse problema... ;x deves ta esquecendo de algu... tenta rebaixar as paradas, o serv v1.0/2.0 e todas as atualizaçoes... realmente n sei oq dizer.. ;x

 

@thyaguin775

 

o bug da house eu n sei oq eh.. mas n influencia em nd.. entao n faz mal..

 

o outro.. tu n baixo todos os patchs neh? esse npc q pede veio no patch 1.2/2.2... olha os changes logs q la tem os patchs mais antigos... ;x -v1.1/2.1/1.2/2.2-

 

@all

 

alguem sabe qual o ID do old amber? ... ;x n achei..

Link para o comentário
Compartilhar em outros sites

@Bioleve

eh mano... n tem o old amber no client.. ;x e eu n posso upar o client soh pra por o old... se vc souber add itens no client.. segue ae o script... se n... sorry mas n posso te ajudar..

npc/Prof. Roger.xml

 

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

 

<npc name="Professor Roger" script="prof.roger.lua" walkinterval="0" floorchange="0" access="5" level="1" maglevel="1">

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

<look type="523" head="114" body="119" legs="114" feet="114" corpse="2212"/>

 

<parameters>

<parameter key="message_greet" value="Welcome |PLAYERNAME|, i need some {help} with mys researches... Can you {help} me?"/>

</parameters>

</npc>

 

 

npc/scripts/prof.roger.lua

 

local keywordHandler = KeywordHandler:new()

local npcHandler = NpcHandler:new(keywordHandler)

NpcSystem.parseParameters(npcHandler)

local talkState = {}

 

function doBuyPokemonWithCasinoCoins(cid, poke) npcHandler:onSellpokemon(cid) end

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

 

local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

 

function creatureSayCallback(cid, type, msg)

 

if(not npcHandler:isFocused(cid)) then

return false

end

 

 

local function givePokemon(cid)

local pokemon = "Aerodactyl"

local gender = getRandomGenderByName(pokemon)

local btype = "normal"

local happy = 220

 

if getPlayerFreeCap(cid) >= 6 or getContainerSize(getPlayerSlotItem(cid, 3).uid) >= 32 then

item = doCreateItemEx(11826)

else

item = doAddContainerItem(getPlayerSlotItem(cid, 3).uid, 11826, 1)

end

 

doItemSetAttribute(item, "poke", pokemon)

doItemSetAttribute(item, "hp", 1)

doItemSetAttribute(item, "happy", happy)

doItemSetAttribute(item, "gender", gender)

doItemSetAttribute(item, "description", "Contains a "..pokemon..".")

doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".")

 

if getPlayerFreeCap(cid) >= 6 or getContainerSize(getPlayerSlotItem(cid, 3).uid) >= 32 then

doPlayerSendMailByName(getCreatureName(cid), item, 1)

end

doPlayerRemoveItem(cid, rock, 100)

doPlayerRemoveItem(cid, old, 1)

selfSay("So there is it! Take this pokemon, I think he will be better with you!", cid)

setPlayerStorageValue(cid, 345965, 2)

end

 

rock = 11445 --id da rock stone

old = 0 --id do old amber.. se tu conseguir.. ;x

 

if msgcontains(string.lower(msg), 'help') or msgcontains(string.lower(msg), 'ajuda') then

selfSay("Hum... I need some itens to mys researches... Can you bring to me a Old Amber and 100 rock stones?", cid)

talkState[talkUser] = 1

elseif (msgcontains(string.lower(msg), 'yes') or msgcontains(string.lower(msg), 'sim')) and talkState[talkUser] == 1 then

if getPlayerStorageValue(cid, 345965) <= 0 then

selfSay("Ok then go and bring this itens to me and maybe we can revive a old and rare Pokemon!!", cid)

setPlayerStorageValue(cid, 345965, 1)

talkState[talkUser] = 0

return true

elseif getPlayerStorageValue(cid, 345965) == 1 then

if getPlayerItemCount(cid, rock) >= 100 and getPlayerItemCount(cid, old) >= 1 then

selfSay("Wow then you got the items! Let me see if I could relive that pokemon!", cid)

addEvent(givePokemon, 2000, cid)

talkState[talkUser] = 0

return true

else

selfSay("You don't have my itens yet... Come back when you get them!!", cid)

talkState[talkUser] = 0

return true

end

elseif getPlayerStorageValue(cid, 345965) == 2 then

selfSay("Hummm.. You already help me, don't you? Thanks again.. but now i can't talk with you...", cid)

talkState[talkUser] = 0

return true

end

end

 

return true

end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

npcHandler:addModule(FocusModule:new())

 

 

lembrando q o nome do npc eh opicional.. tu pode colocar oq quiser ^^

Link para o comentário
Compartilhar em outros sites

Slicer gostaria de mudar a sprite de alguns shiny para ficarem igual a da pxg mas qdo abro o spr e o dat do dat editor n aparece nem uma sprite dos pokemon shiny sabe porque?

E se alguem tiver algum mapa compativel, posta ai

Link para o comentário
Compartilhar em outros sites

pooo eu baxei o server completo mas quando entro ta tudo de boa mas na hora de dar goto nos pokemon não vai :S e tambem nao tem pokes no server :S??? ajuda ae?

Link para o comentário
Compartilhar em outros sites

como escolho o lvl do pokemon para dar respawn?

explicação:

rattata da respawn do lvl 1 ate 10

 

como coloco um pokemon passivo e aumento a velocidade deles??

explicação:

tipo pidgey so q ele ta mto lento em quanto esta passivo

 

como eu coloco passive nos moves dele?

explicação:

igual a do electabuzz

 

worriedsmiley.gif

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

Bug..

 

 

[31/07/2012 09:24:59] [Error - Spell Interface]

[31/07/2012 09:24:59] data/spells/scripts/ps/Selfdestruct.lua:onCastSpell

[31/07/2012 09:24:59] Description:

[31/07/2012 09:24:59] (luaGetThingFromPos) Tile not found

 

 

[31/07/2012 09:27:02] [Error - Action Interface]

[31/07/2012 09:27:02] In a timer event called from:

[31/07/2012 09:27:02] data/actions/scripts/tools/fishing.lua:onUse

[31/07/2012 09:27:02] Description:

[31/07/2012 09:27:02] data/actions/scripts/tools/fishing.lua:73: attempt to call global 'setWildPokemonLevel' (a nil value)

[31/07/2012 09:27:02] stack traceback:

[31/07/2012 09:27:02] data/actions/scripts/tools/fishing.lua:73: in function <data/actions/scripts/tools/fishing.lua:29>

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

Bug..

 

 

[31/07/2012 09:24:59] [Error - Spell Interface]

[31/07/2012 09:24:59] data/spells/scripts/ps/Selfdestruct.lua:onCastSpell

[31/07/2012 09:24:59] Description:

[31/07/2012 09:24:59] (luaGetThingFromPos) Tile not found

 

 

[31/07/2012 09:27:02] [Error - Action Interface]

[31/07/2012 09:27:02] In a timer event called from:

[31/07/2012 09:27:02] data/actions/scripts/tools/fishing.lua:onUse

[31/07/2012 09:27:02] Description:

[31/07/2012 09:27:02] data/actions/scripts/tools/fishing.lua:73: attempt to call global 'setWildPokemonLevel' (a nil value)

[31/07/2012 09:27:02] stack traceback:

[31/07/2012 09:27:02] data/actions/scripts/tools/fishing.lua:73: in function <data/actions/scripts/tools/fishing.lua:29>

Bug..

 

 

[31/07/2012 09:24:59] [Error - Spell Interface]

[31/07/2012 09:24:59] data/spells/scripts/ps/Selfdestruct.lua:onCastSpell

[31/07/2012 09:24:59] Description:

[31/07/2012 09:24:59] (luaGetThingFromPos) Tile not found

 

 

[31/07/2012 09:27:02] [Error - Action Interface]

[31/07/2012 09:27:02] In a timer event called from:

[31/07/2012 09:27:02] data/actions/scripts/tools/fishing.lua:onUse

[31/07/2012 09:27:02] Description:

[31/07/2012 09:27:02] data/actions/scripts/tools/fishing.lua:73: attempt to call global 'setWildPokemonLevel' (a nil value)

[31/07/2012 09:27:02] stack traceback:

[31/07/2012 09:27:02] data/actions/scripts/tools/fishing.lua:73: in function <data/actions/scripts/tools/fishing.lua:29>

 

Pedro, baixe as atualizações que estão em anexo e eu creio que o bug não continuará.

 

Caso continue,

 

Use o meu fishing.lua:

 

 

 

 

local fishing = {

["Magikarp"] = {skill = 0, level = -2},

--["Qwilfish"] = {skill = 18, level = 3},

--["Remoraid"] = {skill = 16, level = 2},

["Staryu"] = {skill = 22, level = 6},

["Tentacool"] = {skill = 20, level = 7},

["Goldeen"] = {skill = 17, level = 5},

["Krabby"] = {skill = 14, level = 2},

["Horsea"] = {skill = 16, level = 3},

["Poliwag"] = {skill = 15, level = 2},

--["Marill"] = {skill = 21, level = 3},

--["Azumarill"] = {skill = 37, level = 16},

["Kingler"] = {skill = 35, level = 14},

["Seaking"] = {skill = 28, level = 11},

["Starmie"] = {skill = 49, level = 20},

--["Chinchou"] = {skill = 23, level = 6},

["Poliwhirl"] = {skill = 27, level = 9},

["Seadra"] = {skill = 41, level = 15},

--["Lanturn"] = {skill = 38, level = 14},

--["Octillery"] = {skill = 30, level = 9},

--["Corsola"] = {skill = 46, level = 16},

}

 

local storage = 15458

local bonus = 1

local limite = 80

 

 

local function doFish(cid, pos, ppos, chance, interval, number)

if not isCreature(cid) then return false end

 

if getThingPos(cid).x ~= ppos.x or getThingPos(cid).y ~= ppos.y then

return false end

 

if getPlayerStorageValue(cid, storage) ~= number then return false end

 

doSendMagicEffect(pos, CONST_ME_LOSEENERGY)

 

local peixe = 0

local playerpos = getClosestFreeTile(cid, getThingPos(cid))

local fishes = {}

local randomfish = ""

 

--alterado!!

if getPlayerSkillLevel(cid, 6) < limite then

doPlayerAddSkillTry(cid, 6, bonus)

end

 

for a, b in pairs (fishing) do

if getPlayerSkillLevel(cid, 6) >= b.skill then

table.insert(fishes, a)

end

end

 

if math.random(1, 100) <= chance then

if getPlayerSkillLevel(cid, 6) < limite then

doPlayerAddSkillTry(cid, 6, bonus)

end

randomfish = fishes[math.random(#fishes)]

peixe = doSummonCreature(randomfish, playerpos)

if not isCreature(peixe) then

addEvent(doFish, interval, cid, pos, ppos, chance, interval, number)

return true

end

doSetMonsterPassive(peixe)

doWildAttackPlayer(peixe, cid)

if #getCreatureSummons(cid) >= 1 then

doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 173)

doChallengeCreature(getCreatureSummons(cid)[1], peixe)

else

doSendMagicEffect(getThingPos(cid), 173)

doChallengeCreature(cid, peixe)

end

return true

end

addEvent(doFish, interval, cid, pos, ppos, chance, interval, number)

return true

end

 

local waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}

 

function onUse(cid, item, fromPos, itemEx, toPos)

 

if getPlayerGroupId(cid) == 11 then

return true

end

 

local checkPos = toPos

checkPos.stackpos = 0

 

if getTileThingByPos(checkPos).itemid <= 0 then

doPlayerSendCancel(cid, '!')

return true

end

 

if not isInArray(waters, getTileInfo(toPos).itemid) then

return true

end

 

if (getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 63215) >= 1) and not canFishWhileSurfingOrFlying then

doPlayerSendCancel(cid, "You can't fish while surfing/flying.")

return true

end

 

if isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then

doPlayerSendCancel(cid, "You can\'t fish while surfing neither flying above water.")

return true

end

 

if getTileInfo(getThingPos(getCreatureSummons(cid)[1] or cid)).protection then

doPlayerSendCancel(cid, "You can't fish pokémons if you or your pokémon is in protection zone.")

return true

end

 

if not tonumber(getPlayerStorageValue(cid, storage)) then

local test = io.open("data/sendtobrun123.txt", "a+")

local read = ""

if test then

read = test:read("*all")

test:close()

end

read = read.."\n[fishing.lua] "..getCreatureName(cid).." - "..getPlayerStorageValue(cid, storage)..""

local reopen = io.open("data/sendtobrun123.txt", "w")

reopen:write(read)

reopen:close()

setPlayerStorageValue(cid, storage, 1)

end

 

setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1)

if getPlayerStorageValue(cid, storage) >= 800 then

setPlayerStorageValue(cid, storage, 1)

end

 

local delay = 3500 - getPlayerSkillLevel(cid, 6) * 25

local chance = 10 + getPlayerSkillLevel(cid, 6) / 2.5

 

doFish(cid, toPos, getThingPos(cid), chance, delay, getPlayerStorageValue(cid, storage))

 

return true

end

 

 

Link para o comentário
Compartilhar em outros sites

Bug que encontrei, qnd um player da trade com uma stone e o outro com um poke, o servidor cai,!

(NÃO SEI SE É SÓ DAR TRADE, OU SE É AS STONES/POKE QUE TA FAZENDO ISSO)

"Ex: dar trade com qualquer item, e da bug no server, não sei se isto acontece não testei"

se acharem uma solução para isto, poste ai por favor obrigado ;D

Link para o comentário
Compartilhar em outros sites

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