Ir para conteúdo

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


lucashgas

Posts Recomendados

@Wiisht

bug velho e sem soluçao ate hj... ;/

 

@pionilo

ter como alterar clr q tem... e eh a coisa mais facil do mundo plz neh.... ;/

sobre n dar catch.. vai em lib/configuration.lua e ache essa tabela..

pokecatches = {

dai eh soh tirar a linha do aero dali...

eu tenhu o npc aki sim..

 

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) --aki tira as rocks

doPlayerRemoveItem(cid, old, 1) --aki tira o old

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

setPlayerStorageValue(cid, 345965, 2) --storage da quest

end

 

rock = 11445 --id da rock stone

old = 12581 --id do old amber..

 

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 --ta pedindo 100Rocks e 1 Old amber...

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 --no caso soh da pra fazer isso 1x por char...

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())

 

espero q vc saiba colocar ele no lugar... ;x

 

@PedroSouza

bug arrumado faz um tempim ja...

e esse script n impede do bug acontecer...

 

@all off

fiz o sistema de poke unique o.O \o/

 

Posta pra gente o sistema de unique.

 

Ps.: Qual bug foi arrumado a um tempo? Pode postar a solução?

Link para o comentário
Compartilhar em outros sites

@Slicer

 

 

local config = {

loginMessage = getConfigValue('loginMessage'),

useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))

}

 

local flys = {

["Moltres"] = {229, 2300}, -- moltres

["Articuno"] = {230, 2100}, -- artic

["Zapdos"] = {224, 2600}, -- zapdos

["Mew"] = {232, 2200}, -- 1000

["Mewtwo"] = {233, 2200},-- two

["Dragonite"] = {221, 1300},-- nite

["Pidgeot"] = {222, 900}, -- geot

["Fearow"] = {226, 800}, -- fearow

["Aerodactyl"] = {227, 1100}, -- aero

["Charizard"] = {216, 1000}, -- chari

["Porygon"] = {316, 600}, -- porygon

["Shiny Dragonite"] = {1020, 1300},-- Shiny nite

["Shiny Pidgeot"] = {996, 900}, -- Shiny geot --alterado v2.5

["Shiny Fearow"] = {997, 800}, -- Shiny fearow

["Shiny Charizard"] = {995, 1000}, -- Shiny chari

["Porygon2"] = {648, 890}, -- 2

["Skarmory"] = {649, 1000}, -- skarmory

["Crobat"] = {652, 1190}, -- crobat

 

["Noctowl"] = {994, 1000},

["Dragonair"] = {1112, 1150}, --alterado v2.5

["Shiny Dragonair"] = {1113, 1400},

}

 

local rides = {

["Tauros"] = {128, 580}, -- tauros

["Ninetales"] = {129, 800}, -- kyuubi

["Rapidash"] = {130, 800}, -- rapid

["Ponyta"] = {131, 410}, -- ponyta

["Rhyhorn"] = {132, 400}, -- rhyhorn

["Arcanine"] = {12, 900}, -- arcan

["Onix"] = {126, 450}, -- onix

["Venusaur"] = {134, 390}, -- venu

["Dodrio"] = {133, 750}, -- dodrio

["Doduo"] = {135, 420}, -- doduo

["Shiny Arcanine"] = {1003, 900}, -- arcan --alterado v2.5

["Shiny Onix"] = {126, 480}, -- onix

["Shiny Venusaur"] = {1040, 390}, -- venu

["Steelix"] = {646, 750}, -- steelix

["Meganium"] = {685, 720}, -- meganium

["Bayleef"] = {686, 555}, -- bayleef

["Stantler"] = {687, 595}, -- stantler

["Houndoom"] = {647, 820}, -- houndoom

["Piloswine"] = {689, 450}, -- piloswine

["Mareep"] = {688, 400}, -- marip

}

 

local surf = {

["Poliwag"] = {lookType=278, speed = 320},

["Poliwhirl"] = {lookType=137, speed = 480},

["Seaking"] = {lookType=269, speed = 520},

["Dewgong"] = {lookType=183, speed = 700},

["Blastoise"] = {lookType=184, speed = 850},

["Tentacruel"] = {lookType=185, speed = 750},

["Lapras"] = {lookType=186, speed = 960},

["Gyarados"] = {lookType=187, speed = 1050},

["Omastar"] = {lookType=188, speed = 680},

["Kabutops"] = {lookType=189, speed = 840},

["Poliwrath"] = {lookType=190, speed = 680},

["Vaporeon"] = {lookType=191, speed = 800},

["Staryu"] = {lookType=266, speed = 385},

["Starmie"] = {lookType=267, speed = 685},

["Goldeen"] = {lookType=268, speed = 355},

["Seadra"] = {lookType=270, speed = 655},

["Golduck"] = {lookType=271, speed = 760},

["Squirtle"] = {lookType=273, speed = 365},

["Wartortle"] = {lookType=275, speed = 605},

["Tentacool"] = {lookType=277, speed = 340},

["Snorlax"] = {lookType=300, speed = 500},

 

["Shiny Blastoise"] = {lookType=1002, speed = 850},

["Shiny Tentacruel"] = {lookType=1014, speed = 750},

["Shiny Gyarados"] = {lookType=1030, speed = 1050},

["Shiny Vaporeon"] = {lookType=1032, speed = 800}, --alterado v2.5

["Shiny Seadra"] = {lookType=1025, speed = 655},

["Shiny Tentacool"] = {lookType=1013, speed = 340},

["Shiny Snorlax"] = {lookType=1035, speed = 500},

 

["Mantine"] = {lookType=636, speed = 820},

["Totodile"] = {lookType=637, speed = 360},

["Croconow"] = {lookType=638, speed = 590},

["Feraligatr"] = {lookType=645, speed = 900},

["Marill"] = {lookType=639, speed = 340},

["Azumarill"] = {lookType=642, speed = 680},

["Quagsire"] = {lookType=643, speed = 740},

["Kingdra"] = {lookType=644, speed = 1020},

["Octillery"] = {lookType=641, speed = 600},

["Wooper"] = {lookType=640, speed = 315},

}

 

function onLogin(cid)

 

doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 100)

doCreatureSetDropLoot(cid, false)

 

local accountManager = getPlayerAccountManager(cid)

 

if(accountManager == MANAGER_NONE) then

local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage

if(lastLogin > 0) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)

str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."

else

str = str

end

 

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)

 

elseif(accountManager == MANAGER_NAMELOCK) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")

elseif(accountManager == MANAGER_ACCOUNT) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")

end

 

if getCreatureName(cid) == "Account Manager" then

local outfit = {}

if accountManagerRandomPokemonOutfit then

outfit = {lookType = getPokemonXMLOutfit(oldpokedex[math.random(151)][1])}

else

outfit = accountManagerOutfit

end

 

doSetCreatureOutfit(cid, outfit, -1)

return true

end

 

if(not isPlayerGhost(cid)) then

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

end

 

local outfit = {}

 

if getPlayerVocation(cid) == 0 then

doPlayerSetMaxCapacity(cid, 0)

doPlayerSetVocation(cid, 1)

setCreatureMaxMana(cid, 6)

doPlayerAddSoul(cid, -getPlayerSoul(cid))

setPlayerStorageValue(cid, 19898, 0)

if getCreatureOutfit(cid).lookType == 128 then

outfit = {lookType = 510, lookHead = math.random(0, 132), lookBody = math.random(0, 132), lookLegs = math.random(0, 132), lookFeet = math.random(0, 132)}

elseif getCreatureOutfit(cid).lookType == 136 then

outfit = {lookType = 511, lookHead = math.random(0, 132), lookBody = math.random(0, 132), lookLegs = math.random(0, 132), lookFeet = math.random(0, 132)}

end

doCreatureChangeOutfit(cid, outfit)

end

 

registerCreatureEvent(cid, "WatchTv")

registerCreatureEvent(cid, "StopWatchingTv")

registerCreatureEvent(cid, "WalkTv")

registerCreatureEvent(cid, "RecordTv")

--registerCreatureEvent(cid, "Death")

registerCreatureEvent(cid, "PlayerLogout")

registerCreatureEvent(cid, "WildAttack")

registerCreatureEvent(cid, "Idle")

registerCreatureEvent(cid, "PokemonIdle")

registerCreatureEvent(cid, "EffectOnAdvance")

registerCreatureEvent(cid, "GeneralConfiguration")

registerCreatureEvent(cid, "ReportBug")

registerCreatureEvent(cid, "LookSystem")

registerCreatureEvent(cid, "T1")

registerCreatureEvent(cid, "T2")

registerCreatureEvent(cid, "task_count")

 

if getPlayerStorageValue(cid, 99284) == 1 then

setPlayerStorageValue(cid, 99284, -1)

end

 

if getPlayerStorageValue(cid, 6598754) >= 1 or getPlayerStorageValue(cid, 6598755) >= 1 then

setPlayerStorageValue(cid, 6598754, -1)

setPlayerStorageValue(cid, 6598755, -1)

end

 

doChangeSpeed(cid, -(getCreatureSpeed(cid)))

 

if getPlayerStorageValue(cid, 17000) >= 1 then -- fly

 

local item = getPlayerSlotItem(cid, 8)

local poke = getItemAttribute(item.uid, "poke")

doChangeSpeed(cid, getPlayerStorageValue(cid, 54844))

doRemoveCondition(cid, CONDITION_OUTFIT)

doSetCreatureOutfit(cid, {lookType = flys[poke][1] + 351}, -1)

 

local apos = getFlyingMarkedPos(cid)

apos.stackpos = 0

 

if getTileThingByPos(apos).itemid <= 2 then

doCombatAreaHealth(cid, FIREDAMAGE, getFlyingMarkedPos(cid), 0, 0, 0, CONST_ME_NONE)

doCreateItem(460, 1, getFlyingMarkedPos(cid))

end

 

doTeleportThing(cid, apos, false)

 

local posicao = getTownTemplePosition(getPlayerTown(cid))

markFlyingPos(cid, posicao)

 

elseif getPlayerStorageValue(cid, 63215) >= 1 then -- surf

 

local item = getPlayerSlotItem(cid, 8)

local poke = getItemAttribute(item.uid, "poke")

doSetCreatureOutfit(cid, {lookType = surf[poke].lookType + 351}, -1)

doChangeSpeed(cid, getPlayerStorageValue(cid, 54844))

 

elseif getPlayerStorageValue(cid, 17001) >= 1 then -- ride

 

local item = getPlayerSlotItem(cid, 8)

local poke = getItemAttribute(item.uid, "poke")

 

 

if rides[poke] then

doChangeSpeed(cid, getPlayerStorageValue(cid, 54844))

doRemoveCondition(cid, CONDITION_OUTFIT)

doSetCreatureOutfit(cid, {lookType = rides[poke][1] + 351}, -1)

else

setPlayerStorageValue(cid, 17001, -1)

doChangeSpeed(cid, PlayerSpeed)

end

 

local posicao2 = getTownTemplePosition(getPlayerTown(cid))

markFlyingPos(cid, posicao2)

 

elseif getPlayerStorageValue(cid, 13008) >= 1 then -- dive

if not isInArray({5405, 5406, 5407, 5408, 5409, 5410}, getTileInfo(getThingPos(cid)).itemid) then

setPlayerStorageValue(cid, 13008, 0)

doChangeSpeed(cid, PlayerSpeed)

doRemoveCondition(cid, CONDITION_OUTFIT)

return true

end

 

if getPlayerSex(cid) == 1 then

doSetCreatureOutfit(cid, {lookType = 1034, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1)

else

doSetCreatureOutfit(cid, {lookType = 1035, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1)

end

doChangeSpeed(cid, 800)

 

elseif getPlayerStorageValue(cid, 5700) > 0 then --bike

doChangeSpeed(cid, getPlayerStorageValue(cid, 5700))

if getPlayerSex(cid) == 1 then

doSetCreatureOutfit(cid, {lookType = 1394}, -1)

else

doSetCreatureOutfit(cid, {lookType = 1393}, -1)

end

elseif getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 7 then

doChangeSpeed(cid, 140*getPlayerGroupId(cid))

else

doChangeSpeed(cid, PlayerSpeed)

end

 

if getPlayerStorageValue(cid, 22545) >= 1 then --golden arena

setPlayerStorageValue(cid, 22545, -1) --alterado v2.4

doTeleportThing(cid, getClosestFreeTile(cid, posBackGolden), false)

end

 

if useKpdoDlls then

doUpdateMoves(cid) --alterado v2.4 soh pra quem quiser... ;p

doUpdatePokemonsBar(cid)

end

 

return true

end

 

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

@PokemonFezin

vc usa o sistema de bike? pq aparentemente tu ta usando a storage da bike pra outra coisa.. ;x vai no teu editor de acc... dai vai em Tables, player_storage e tenta achar a storage 5700... e ve oq tem nela.. se for uma palavra, mude para -1...

ou tire essa parte do teu script..

 

elseif getPlayerStorageValue(cid, 5700) > 0 then --bike

doChangeSpeed(cid, getPlayerStorageValue(cid, 5700))

if getPlayerSex(cid) == 1 then

doSetCreatureOutfit(cid, {lookType = 1394}, -1)

else

doSetCreatureOutfit(cid, {lookType = 1393}, -1)

end

 

 

@PedroSouza

novos sistemas e correçao de bugs viram na proxima atualizaçao.. aguarde ate la.. e eu estava me referindo a quando o poke morre durante o control mind aparecer o corpse dele...

Link para o comentário
Compartilhar em outros sites

Eu uso o sistema de bike sim slicer, irei testar aqui pra ver se funciona se funcionar rep+ ;d

 

@edit

 

a Storage 5700 ta 1 eu mudei para -1 e tirei o a parte que você falou do login..!

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

Slicer ainda continua o erro e ja fiz oque você falou olha

 

 

 

 

[29/08/2012 19:54:04] [PKF] Rock has logged in.

 

[29/08/2012 19:54:04] [Error - CreatureScript Interface]

[29/08/2012 19:54:04] data/creaturescripts/scripts/login.lua:onLogin

[29/08/2012 19:54:04] Description:

[29/08/2012 19:54:04] (luaGetItemAttribute) Item not found

[29/08/2012 19:54:04] [Error - CreatureScript Interface]

[29/08/2012 19:54:04] data/creaturescripts/scripts/login.lua:onLogin

[29/08/2012 19:54:04] Description:

[29/08/2012 19:54:04] data/creaturescripts/scripts/login.lua:189: attempt to index field '?' (a nil value)

[29/08/2012 19:54:04] stack traceback:

[29/08/2012 19:54:04] data/creaturescripts/scripts/login.lua:189: in function <data/creaturescripts/scripts/login.lua:97>

[29/08/2012 19:54:04] [PKF] Rock has logged out.

Erro no executavel.

Link para o comentário
Compartilhar em outros sites

@PokemonFezin

mano tem algu bem estranhu ae no teu serv.. ;x

aparentemente... tu tento logar com um char, com a storage de FLY mas sem nenhuma ball no slot de pokes... ;/ -eh como se ele tivese em fly mas n tem nenhuma ball no slot...- tenta ir la no editor de acc, achar o id do cara ae q tento logar e mudar a storage do fly, 17000, para -1...

Link para o comentário
Compartilhar em outros sites

@maguito

o hammer arm n eh a q deixa silence -ou imobilizado n lembro-, se for.. ela usa as 4 sprites de braços pros lados, n? e ainda deixa silence/imobilizado com um outro effect la tb... ;x e o outro nunca vi...

Link para o comentário
Compartilhar em outros sites

Se eu não to enganado, o comet punch é o effect 237, é um ataque simples, acho que ele aparece 4 x sobre o target, mas não sei se hita 4 x. O hammer arm creio que não seja 4 effects não.

Link para o comentário
Compartilhar em outros sites

 

 

@Slicer

man tem um bug tenso aqui tipo...

tem a house lá e tals ai no segundo andar da house os cara que não é dono da house, consegue vir de fly Apertando ESC + ANDANDO PELO TECLADO + CLICK NO MOUSE ai tipo eles é jogado pra dentro do trequinho da house.

 

25i1ax3.png

 

sabe como concerta mano ? :x vlw.

 

 

 

tbm estou com esse bug... mais tenho uma soluçao se botassemos a tecla esc pra da up ou down (tento faiz) seria uma soluçao pq ai quando o player apertasse ESC pra andar ia dar up ou down Xd... pior q n sei fazer isso quem min fala como fais dou rep+

 

 

a tbm tenho outro bug o meu pvp tipo n da pra ataca o poke de outro cara, quer dizer ate da mas.. não tira hit do poke de outra pessoa alguem pode min ajuda?

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

@Slicer and @Maguito

Hammer Arm é 4 efeitos, ai acho melhor pegar aquele efeito que é 1 soco no meio da tela

 

E o Comet Punch deixa do jeito q veio no serve "versão do brun123" e sei la como são 4 hits na pxg, pq não faz um hit e dano maior?

 

Edit:

 

@pedrowarlock

Só mudar a ordem ganha nos firstitems.lua (mods) [acho q é esse o nome do arquivo] e caso não seja suficiente mudar no items.xml e até talvez no dat editor, a posição onde ele fica, no caso capacete bota, etc... simples

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

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