Ir para conteúdo

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


lucashgas

Posts Recomendados

@

Nibelins achei um bug nos seu corpose de jhoto quando vai abrir da debug Vc sabe pq

 

alquem pode me ajudar

 

 

Outra coisa alquem sabe arumar o Transform Do Shiny Ditto

alquem sabe fazer systema de mudar a cor do Ditto Explo!dittocolor 10

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

@

Nibelins achei um bug nos seu corpose de jhoto quando vai abrir da debug Vc sabe pq

 

alquem pode me ajudar

 

 

Outra coisa alquem sabe arumar o Transform Do Shiny Ditto

alquem sabe fazer systema de mudar a cor do Ditto Explo!dittocolor 10

 

Amigo e so vc ir nu dat editor vai nu corpse q ta dando debug e poem cropsize 64 vai resolver pelomenos aqui resolveu ^^

 

Alguem Pode me Falar como faço pra vocation dar % em dano em algum elemento

Link para o comentário
Compartilhar em outros sites

@Kois

 

caro amigo terei que discorda de você a principio quando li sua mensagem falando do debug fiquei em duvida em algum pokemon acabei de testa todos estão 100% aconselho você muda do seu cliente o spr e coloca o que postei então antes de fala algum erro mano tem certeza que fez todas as modificações correta pois com isso o erro e seu e não dos arquivos que postei

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

ai galera .. eu tava modificando o Look.lua dai deu certo olha como ficou :

http://imageshack.us/photo/my-images/827/lookinpokeball.png/

dai se dar boost e por nickname vai aparecer tb na pokeball ... intao mais meu problema agr e que quando clika no pokemon selvagem pra ver o lvl dele da um error no console assim :

 

 

[02/03/2012 09:39:55] [Error - CreatureScript Interface]

[02/03/2012 09:39:55] data/creaturescripts/scripts/look.lua:onLook

[02/03/2012 09:39:55] Description:

[02/03/2012 09:39:55] data/creaturescripts/scripts/look.lua:86: attempt to call global 'isShiny' (a nil value)

[02/03/2012 09:39:55] stack traceback:

[02/03/2012 09:39:55] data/creaturescripts/scripts/look.lua:86: in function <data look.lua:1="" scripts="" creaturescripts="">

 

Se alguem quizer ajudar ai :D</data>

 

ai galera .. eu tava modificando o Look.lua dai deu certo olha como ficou :

http://imageshack.us...inpokeball.png/

dai se dar boost e por nickname vai aparecer tb na pokeball ... intao mais meu problema agr e que quando clika no pokemon selvagem pra ver o lvl dele da um error no console assim :

 

 

[02/03/2012 09:39:55] [Error - CreatureScript Interface]

[02/03/2012 09:39:55] data/creaturescripts/scripts/look.lua:onLook

[02/03/2012 09:39:55] Description:

[02/03/2012 09:39:55] data/creaturescripts/scripts/look.lua:86: attempt to call global 'isShiny' (a nil value)

[02/03/2012 09:39:55] stack traceback:

[02/03/2012 09:39:55] data/creaturescripts/scripts/look.lua:86: in function <data look.lua:1="" scripts="" creaturescripts="">

 

Se alguem quizer ajudar ai :D</data>

 

Bom eu consegui arrumar ... mais agr eu quero que apareça o lvl do pokemon na pokebola '-' vou postar meu look lua '-'

 

function onLook(cid, thing, lookDistance)

if not isMonster(thing.uid) then

return true

end

if not isSummon(thing.uid) then

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..string.lower(getCreatureName(thing.uid)).." ["..getPokemonLevel(thing.uid).."]. "..getCreatureSpeed(thing.uid).."")

return false

end

if isSummon(thing.uid) and not isPlayer(thing.uid) then

if getCreatureMaster(thing.uid) == cid then

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see your "..string.lower(getCreatureName(thing.uid)).." ["..getPokemonLevel(thing.uid).."].\nHit points: "..getCreatureHealth(thing.uid).."/"..getCreatureMaxHealth(thing.uid)..".")

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..string.lower(getCreatureName(thing.uid)).." ["..getPokemonLevel(thing.uid).."].\nIt belongs to "..getCreatureName(getCreatureMaster(thing.uid))..".")

end

 

return false

end

return true

end

 

Link para o comentário
Compartilhar em outros sites

Plis Help-

[02/03/2012 05:21:16] [C]: in function 'doSetCreatureOutfit'

[02/03/2012 05:21:16] data/creaturescripts/scripts/login.lua:115: in function <data/creaturescripts/scripts/login.lua:81>

 

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
["Porygon2"] = {648, 890}, -- 2
["Skarmory"] = {649, 1000}, -- skarmory
["Crobat"] = {652, 1190}, -- crobat
}

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
["Shiny Arcanine"] = {492, 1000}, -- shiny arca
["Shiny Venusaur"] = {494, 420}, -- shiny vneu
["Crystal Onix"] = {293, 480}, -- cristal onix
["Onix"] = {126, 450}, -- onix
["Venusaur"] = {134, 390}, -- venu
["Dodrio"] = {133, 750}, -- dodrio
["Doduo"] = {135, 420}, -- doduo
["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},
["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 = {312}
 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")
if getPlayerStorageValue(cid, 99284) == 1 then
 setPlayerStorageValue(cid, 99284, -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)
elseif getPlayerStorageValue(cid, 63215) >= 1 then -- surf
 if not isInArray({4820, 4821, 4822, 4823, 4824, 4825}, getTileInfo(getThingPos(cid)).itemid) then
  setPlayerStorageValue(cid, 63215, -1)
  doChangeSpeed(cid, PlayerSpeed)
  doRemoveCondition(cid, CONDITION_OUTFIT)
 return true
 end
 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
elseif getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 7 then
 doChangeSpeed(cid, 140*getPlayerGroupId(cid))
else
 doChangeSpeed(cid, PlayerSpeed)
end
return true
end

Link para o comentário
Compartilhar em outros sites

podem me ajudar PLEASE '-' ow god

Slicer to testando aki o cooldown daqui a pouco edito.

Suemy isshiny que dizer que tu ta usando o sistema de shiny do zeref?

Se sim tu não podia mecher no look pois o system dele pega informações dela eu acho \o/

ou tu coloco essa linha de isShiny no teu look que ta dando esse erro.

Link para o comentário
Compartilhar em outros sites

@peralta52

soh sei q a resposta pra % no elemento ta em editar o arquivo.. lib/pokemon moves.lua ... ;x

 

Mias tu n sabe fazer ? nao sou muito bom de scripts poderiafazer e me mandar por mp agente pode negociar :S

Link para o comentário
Compartilhar em outros sites

Testei aki slicer não apareceu as fotos não \o/ as dos kanto normal apareceu as dos shinys e o resto não olha como fico oscript.

 

fotosDAT = {

["Shiny Bulbasaur"] = 11728,

["Shiny Ivysaur"] = 11729,

["Shiny Venusaur"] = 11730,

["Shiny Charmander"] = 11731,

["Shiny Charmeleon"] = 11732,

["Shiny Charizard"] = 11733,

["Shiny Squirtle"] = 11734,

["Shiny Wartortle"] = 11735,

["Shiny Blastoise"] = 11736,

["Shiny Caterpie"] = 11737,

["Shiny Metapod"] = 11738,

["Shiny Butterfree"] = 11739,

["Shiny Weedle"] = 11740,

["Shiny Kakuna"] = 11741,

["Shiny Beedrill"] = 11742,

["Shiny Pidgey"] = 11743,

["Shiny Pidgeotto"] = 11744,

["Shiny Pidgeot"] = 11745,

["Shiny Rattata"] = 11746,

["Shiny Raticate"] = 11747,

["Shiny Spearow"] = 11748,

["Shiny Fearow"] = 11749,

["Shiny Ekans"] = 11750,

["Shiny Arbok"] = 11751,

["Shiny Pikachu"] = 11752,

["Shiny Raichu"] = 11753,

["Shiny Sandshrew"] = 11754,

["Shiny Sandslash"] = 11755,

["Shiny Nidoran Female"] = 11756,

["Shiny Nidorina"] = 11757,

["Shiny Nidoqueen"] = 11758,

["Shiny Nidoran Male"] = 11759,

["Shiny Nidorino"] = 11760,

["Shiny Nidoking"] = 11761,

["Shiny Clefairy"] = 11762,

["Shiny Clefable"] = 11763,

["Shiny Vulpix"] = 11764,

["Shiny Ninetales"] = 11765,

["Shiny Jigglypuff"] = 11766,

["Shiny Wigglytuff"] = 11767,

["Shiny Zubat"] = 11768,

["Shiny Golbat"] = 11769,

["Shiny Oddish"] = 11770,

["Shiny Gloom"] = 11771,

["Shiny Vileplume"] = 11772,

["Shiny Paras"] = 11773,

["Shiny Parasect"] = 11774,

["Shiny Venonat"] = 11775,

["Shiny Venomoth"] = 11776,

["Shiny Diglett"] = 11777,

["Shiny Dugtrio"] = 11778,

["Shiny Meowth"] = 11779,

["Shiny Persian"] = 11780,

["Shiny Psyduck"] = 11781,

["Shiny Golduck"] = 11782,

["Shiny Mankey"] = 11783,

["Shiny Primeape"] = 11784,

["Shiny Growlithe"] = 11785,

["Shiny Arcanine"] = 11786,

["Shiny Poliwag"] = 11787,

["Shiny Poliwhirl"] = 11788,

["Shiny Poliwrath"] = 11789,

["Shiny Abra"] = 11790,

["Shiny Kadabra"] = 11791,

["Shiny Alakazam"] = 11792,

["Shiny Machop"] = 11793,

["Shiny Machoke"] = 11794,

["Shiny Machamp"] = 11795,

["Shiny Bellsprout"] = 11796,

["Shiny Weepinbell"] = 11797,

["Shiny Victreebel"] = 11798,

["Shiny Tentacool"] = 11799,

["Shiny Tentacruel"] = 11800,

["Shiny Geodude"] = 11801,

["Shiny Graveler"] = 11802,

["Shiny Golem"] = 11803,

["Shiny Ponyta"] = 11804,

["Shiny Rapidash"] = 11805,

["Shiny Slowpoke"] = 11806,

["Shiny Slowbro"] = 11807,

["Shiny Magnemite"] = 11808,

["Shiny Magneton"] = 11809,

["Shiny Farfetch'd"] = 11810,

["Shiny Doduo"] = 11811,

["Shiny Dodrio"] = 11812,

["Shiny Seel"] = 11813,

["Shiny Dewgong"] = 11814,

["Shiny Grimer"] = 11815,

["Shiny Muk"] = 11816,

["Shiny Shellder"] = 11817,

["Shiny Cloyster"] = 11818,

["Shiny Gastly"] = 11819,

["Shiny Haunter"] = 11820,

["Shiny Gengar"] = 11821,

["Shiny Onix"] = 11822,

["Shiny Drowzee"] = 11823,

["Shiny Hypno"] = 11824,

["Shiny Krabby"] = 11825,

["Shiny Kingler"] = 11826,

["Shiny Voltorb"] = 11827,

["Shiny Electrode"] = 11828,

["Shiny Exeggcute"] = 11829,

["Shiny Exeggutor"] = 11830,

["Shiny Cubone"] = 11831,

["Shiny Marowak"] = 11832,

["Shiny Hitmonlee"] = 11833,

["Shiny Hitmonchan"] = 11834,

["Shiny Lickitung"] = 11835,

["Shiny Koffing"] = 11836,

["Shiny Weezing"] = 11837,

["Shiny Rhyhorn"] = 11838,

["Shiny Rhydon"] = 11839,

["Shiny Chansey"] = 11840,

["Shiny Tangela"] = 11841,

["Shiny Kangaskhan"] = 11842,

["Shiny Horsea"] = 11843,

["Shiny Seadra"] = 11844,

["Shiny Goldeen"] = 11845,

["Shiny Seaking"] = 11846,

["Shiny Staryu"] = 11847,

["Shiny Starmie"] = 11848,

["Shiny Mr. Mime"] = 11849,

["Shiny Scyther"] = 11850,

["Shiny Jynx"] = 11851,

["Shiny Electabuzz"] = 11852,

["Shiny Magmar"] = 11853,

["Shiny Pinsir"] = 11854,

["Shiny Tauros"] = 11855,

["Shiny Magikarp"] = 11856,

["Shiny Gyarados"] = 11857,

["Shiny Lapras"] = 11858,

["Shiny Ditto"] = 11859,

["Shiny Eevee"] = 11860,

["Shiny Vaporeon"] = 11861,

["Shiny Jolteon"] = 11862,

["Shiny Flareon"] = 11863,

["Shiny Porygon"] = 11864,

["Shiny Omanyte"] = 11865,

["Shiny Omastar"] = 11866,

["Shiny Kabuto"] = 11867,

["Shiny Kabutops"] = 11868,

["Shiny Aerodactyl"] = 11869,

["Shiny Snorlax"] = 11870,

["Shiny Articuno"] = 11871,

["Shiny Zapdos"] = 11872,

["Shiny Moltres"] = 11873,

["Shiny Dratini"] = 11874,

["Shiny Dragonair"] = 11875,

["Shiny Dragonite"] = 11876,

["Shiny Mewtwo"] = 11877,

["Shiny Mew"] = 11878,

}

 

function getPlayerPokeballs(cid)

local ret = {}

local container = 0

 

if isCreature(cid) then

container = getPlayerSlotItem(cid, 3).uid

local myball = getPlayerSlotItem(cid, 8)

if myball.uid > 0 then

table.insert(ret, myball)

end

else

container = cid

end

 

if isContainer(container) and getContainerSize(container) > 0 then

for slot = 0, (getContainerSize(container) - 1) do

local item = getContainerItem(container, slot)

if isContainer(item.uid) then

local itemsbag = getPlayerPokeballs(item.uid)

if itemsbag and #itemsbag > 0 then

for i = 0, #itemsbag do

table.insert(ret, itemsbag)

end

end

elseif isPokeball(item.itemid) then

table.insert(ret, item)

end

end

end

return ret

end

 

function doUpdatePokemonsBar(cid)

local ret = "p#,"

local balls = getPlayerPokeballs(cid)

local times = 0

for a = 1, #balls do

times = times + 1

local item = balls[a]

local hp = math.ceil(getItemAttribute(item.uid, "hp") * 100)

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

if fotosDAT[name] then

foto = fotosDAT[name]

else

foto = fotos[name] - 928

end

doItemSetAttribute(item.uid, "ballorder", times)

ret = ret..""..foto..","..name..""..times..","..hp..","

end

doPlayerSendCancel(cid, ret)

end

 

function getNewMoveTable(table, n)

if n == 1 and table.move1 then

return table.move1

elseif n == 2 and table.move2 then

return table.move2

elseif n == 3 and table.move3 then

return table.move3

elseif n == 4 and table.move4 then

return table.move4

elseif n == 5 and table.move5 then

return table.move5

elseif n == 6 and table.move6 then

return table.move6

elseif n == 7 and table.move7 then

return table.move7

elseif n == 8 and table.move8 then

return table.move8

elseif n == 9 and table.move9 then

return table.move9

elseif n == 10 and table.move10 then

return table.move10

elseif n == 11 and table.move11 then

return table.move11

elseif n == 12 and table.move12 then

return table.move12

else

return false

end

end

 

 

function doUpdateMoves(cid)

local summon = getCreatureSummons(cid)[1]

local ret = "12&,"

if not summon then

for a = 1, 12 do

ret = ret.."n/n,"

end

doPlayerSendCancel(cid, ret)

addEvent(doUpdateCooldowns, 100, cid)

return true

end

local ret = "12&,"

local moves = movestable[getCreatureName(summon)]

for a = 1, 12 do

local b = getNewMoveTable(moves, a)

if b then

ret = ret..""..b.name..","

else

ret = ret.."n/n,"

end

end

doPlayerSendCancel(cid, ret)

addEvent(doUpdateCooldowns, 100, cid)

end

 

function doUpdateCooldowns(cid)

local a = getPlayerSlotItem(cid, 8)

local ret = "12|,"

if a.uid <= 0 or #getCreatureSummons(cid) <= 0 then

for cds = 1, 12 do

ret = ret.."-1,"

end

doPlayerSendCancel(cid, ret)

return true

end

for cds = 1, 12 do

local cdzin = "move"..cds

 

if getCD(a.uid, cdzin) > 0 then

ret = ret..""..(getCD(a.uid, cdzin) - 1)..","

else

ret = ret.."0,"

end

end

doPlayerSendCancel(cid, ret)

end

 

function getBallsAttributes(item)

local t = {"boffense", "bdefense", "bagility", "bsattack",

"offense", "defense", "speed", "level", "specialattack",

"poke", "gender", "vitality", "nick", "boost", "happy", "hunger",

"burn", "burndmg", "poison", "poisondmg", "confuse", "blind",

"sleep", "hp", "description", "exp", "nextlevelexp", "transBegin",

"transLeft", "transTurn", "transOutfit", "transName", "trans",

"light", "blink", "move1", "move2", "move3", "move4", "move5",

"move6", "move7", "move8", "move9", "move10", "move11", "move12",

"ballorder", "firstpoke", "hands"}

local ret = {}

for a = 1, #t do

if getItemAttribute(item, t[a]) == "hands" then

return

end

ret[t[a]] = getItemAttribute(item, t[a]) or false

end

return ret

end

 

function doChangeBalls(cid, item1, item2)

if not isCreature(cid) then return true end

if item1.uid == item2.uid then

if #getCreatureSummons(cid) <= 0 then

doGoPokemon(cid, getPlayerSlotItem(cid, 8))

else

doReturnPokemon(cid, getCreatureSummons(cid)[1], getPlayerSlotItem(cid, 8), pokeballs[getPokeballType(getPlayerSlotItem(cid, 8).itemid)].effect)

end

return true

end

 

if item1.uid > 0 and item2.uid > 0 then

local io = getBallsAttributes(item1.uid)

local it = getBallsAttributes(item2.uid)

for a, b in pairs (io) do

if b then

doItemSetAttribute(item2.uid, a, b)

else

doItemEraseAttribute(item2.uid, a)

end

end

for a, b in pairs (it) do

if b then

doItemSetAttribute(item1.uid, a, b)

else

doItemEraseAttribute(item1.uid, a)

end

end

local id = item2.itemid

doTransformItem(item2.uid, item1.itemid)

doTransformItem(item1.uid, id)

doGoPokemon(cid, getPlayerSlotItem(cid, 8))

else

local id = item2.itemid

local b = getBallsAttributes(item2.uid)

local a = doPlayerAddItem(cid, 2643, false)

for c, d in pairs (b) do

if d then

doItemSetAttribute(a, c, d)

else

doItemEraseAttribute(a, c)

end

end

doRemoveItem(item2.uid, 1)

doTransformItem(a, id)

doGoPokemon(cid, getPlayerSlotItem(cid, 8))

end

end

 

deu esse erro:

 

 

[02/03/2012 11:23:11] data/talkactions/scripts/cdbar.lua:onSay

[02/03/2012 11:23:11] Description:

[02/03/2012 11:23:11] data/lib/cooldown bar.lua:199: attempt to perform arithmetic on field '?' (a nil value)

[02/03/2012 11:23:11] stack traceback:

[02/03/2012 11:23:11] data/lib/cooldown bar.lua:199: in function 'doUpdatePokemonsBar'

[02/03/2012 11:23:11] data/talkactions/scripts/cdbar.lua:28: in function <data/talkactions/scripts/cdbar.lua:14>

 

 

Tu testo 1 pokemon teu e funcionou?

Nibelins hoje de rep que o slicer me ajudou ontem amanha é seu muito bom mesmo os monster completos e o configuration tbm.

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

@Kois

 

caro amigo terei que discorda de você a principio quando li sua mensagem falando do debug fiquei em duvida em algum pokemon acabei de testa todos estão 100% aconselho você muda do seu cliente o spr e coloca o que postei então antes de fala algum erro mano tem certeza que fez todas as modificações correta pois com isso o erro e seu e não dos arquivos que postei

Ae Consegui Arumar o bug agora ta tudo 100% os corpose

Link para o comentário
Compartilhar em outros sites

Esse Erro do poke johto quando liga serve, entrei no meu data/lib/levelsystem.lua desativei isso

 

 

--if pokes[getCreatureName(cid)].exp then

--getMonsterInfo(getCreatureName(cid)).experience

--local exp = (50 + pokes[getCreatureName(cid)].exp) * baseExpRate + pokes[getCreatureName(cid)].vitality * levelRange * pokemonExpPerLevelRate

--setPlayerStorageValue(cid, 1006, exp * generalExpRate * ee)

--end

 

O Erro parou quando ligo serve mais essa linha que desativei tem algum problema deixa ela desativada??

 

edit: O poke não ganha xp quando mata os poke selvagem :(

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

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