Ir para conteúdo

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


lucashgas

Posts Recomendados

@Foxkbt

Para que eu não faça cagada... AUHHAHUAHUUA arruma pra mim? ;X

não sei aonde eu coloco... o.O"

 

PVP_tile.lua

 

function onStepIn(cid, item, position, fromPosition)

 

local s = getCreatureSummons(cid)

local t = getCreatureOutfit(cid).lookType

local h = getCreatureOutfit(cid).lookHead

local b = getCreatureOutfit(cid).lookBody

local l = getCreatureOutfit(cid).lookLegs

local f = getCreatureOutfit(cid).lookFeet

 

if isSummon(cid) or isMonster(cid) then return false end

if getPlayerStorageValue(cid, 17001) == 1 or getPlayerStorageValue(cid, 5700) == 1 or getPlayerStorageValue(cid, 17000) == 1 then

doPlayerSendCancel(cid, "You can't do that while ride/fly/or in a bike.")

doTeleportThing(cid, frompos, false)

return true

end

 

if item.actionid == 25695 then --team red

 

setPlayerStorageValue(cid, 6598754, 1)

doSetCreatureOutfit(cid, {lookType = t, lookBody = 113, lookHead = 113, lookLegs = 113, lookFeet = 113}, -1)

 

doTeleportThing(cid, {x = 356, y = 1110, z = 9}, false)

if #s >= 1 then

setPlayerStorageValue(s[1], 6598754, 1)

doTeleportThing(s[1], {x = 357, y = 1110, z = 9}, false)

end

 

elseif item.actionid == 25696 then --team azul

 

setPlayerStorageValue(cid, 6598755, 1)

doSetCreatureOutfit(cid, {lookType = t, lookBody = 107, lookHead = 107, lookLegs = 107, lookFeet = 107}, -1)

 

doTeleportThing(cid, {x = 380, y = 1110, z = 9}, false)

if #s >= 1 then

setPlayerStorageValue(s[1], 6598755, 1)

doTeleportThing(s[1], {x = 381, y = 1110, z = 9}, false)

end

 

elseif item.actionid == 25697 then

 

setPlayerStorageValue(cid, 6598754, -1)

setPlayerStorageValue(cid, 6598755, -1)

doRemoveCondition(cid, CONDITION_OUTFIT)

doTeleportThing(cid, {x = 368, y = 1085, z = 9}, false)

 

if #s >= 1 then

setPlayerStorageValue(s[1], 6598754, -1)

setPlayerStorageValue(s[1], 6598755, -1)

doTeleportThing(s[1], {x = 368, y = 1086, z = 9}, false)

end

 

elseif item.actionid == 25698 then

 

setPlayerStorageValue(cid, 6598754, -1)

setPlayerStorageValue(cid, 6598755, -1)

doRemoveCondition(cid, CONDITION_OUTFIT)

doTeleportThing(cid, {x = 368, y = 1085, z = 9}, false)

 

if #s >= 1 then

setPlayerStorageValue(s[1], 6598754, -1)

setPlayerStorageValue(s[1], 6598755, -1)

doTeleportThing(s[1], {x = 368, y = 1086, z = 9}, false)

end

 

elseif item.actionid == 24158 then

 

if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then

doPlayerSendCancel(cid, "You can't do that while is in battle!")

doTeleportThing(cid, fromPosition, false)

end

end

 

return true

end

 

Link para o comentário
Compartilhar em outros sites

@Fox

como assim 20,30k?

Travar o server quando um player abre o pc dá pra entender o motivo, porque são vários for pra exibir as estatisticas...Mas os players que falou q abre e trava são sempre os mesmos?

Eu acho que pode ser assim...Tem algum bug que ta dando aquele freeze no server (tipo o dos pokes qdo morrem) aí bem nessa hora vai um cara e abre o pc...Isso faz com que o server faça alguns for, o que causa o lag maior...mas sei la...tem q ver pq ta travando os pokes ao morrer, corrigir, e depois ver se arruma...Algum de vcs tá tendo problema com itens sumindo do cp e da bag dos players?

Link para o comentário
Compartilhar em outros sites

@bozoques

 

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

local item = balls[a]

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

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

local port = getPlayerSlotItem(cid, CONST_SLOT_LEGS)

times = times + 1

local foto = barfotos[name]

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

 

Coloca isso no lugar e no configuration.lua crie uma nova tabela assim

 

barfotos = {

["Bulbasaur"] = id do portrait do dat editor,

}

 

Ai não bugara com portrait

 

@Foxkbt

Você que não sabe mexer com dat editor e.e, no inicio eu fazia coisas assim ...

Link para o comentário
Compartilhar em outros sites

@ZarefShirou

Fiz tudo como você disse ... Eu adicionei o "configuration.lua" quando entrei retratos ID colados, e agora nem sequer carregar o generacjii primeiro ... Aqui está a prova:

 

2q89bf4.jpg

 

 

 

 

 

fotos = {

["Bulbasaur"] = 11989,

["Ivysaur"] = 11990,

["Venusaur"] = 11991,

["Charmander"] = 11992,

["Charmeleon"] = 11993,

["Charizard"] = 11994,

["Squirtle"] = 11995,

["Wartortle"] = 11996,

["Blastoise"] = 11997,

["Caterpie"] = 11998,

["Metapod"] = 11999,

["Butterfree"] = 12000,

["Weedle"] = 12001,

["Kakuna"] = 12002,

["Beedrill"] = 12003,

["Pidgey"] = 12004,

["Pidgeotto"] = 12005,

["Pidgeot"] = 12006,

["Rattata"] = 12007,

["Raticate"] = 12008,

["Spearow"] = 12009,

["Fearow"] = 12010,

["Ekans"] = 12011,

["Arbok"] = 12012,

["Pikachu"] = 12013,

["Raichu"] = 12014,

["Sandshrew"] = 12015,

["Sandslash"] = 12016,

["Nidoran Female"] = 12017,

["Nidorina"] = 12018,

["Nidoqueen"] = 12019,

["Nidoran Male"] = 12020,

["Nidorino"] = 12021,

["Nidoking"] = 12022,

["Clefairy"] = 12023,

["Clefable"] = 12024,

["Vulpix"] = 12025,

["Ninetales"] = 12026,

["Jigglypuff"] = 12027,

["Wigglytuff"] = 12028,

["Zubat"] = 12029,

["Golbat"] = 12030,

["Oddish"] = 12031,

["Gloom"] = 12032,

["Vileplume"] = 12033,

["Paras"] = 12034,

["Parasect"] = 12035,

["Venonat"] = 12036,

["Venomoth"] = 12037,

["Diglett"] = 12038,

["Dugtrio"] = 12039,

["Meowth"] = 12040,

["Persian"] = 12041,

["Psyduck"] = 12042,

["Golduck"] = 12043,

["Mankey"] = 12044,

["Primeape"] = 12045,

["Growlithe"] = 12046,

["Arcanine"] = 12047,

["Poliwag"] = 12048,

["Poliwhirl"] = 12049,

["Poliwrath"] = 12050,

["Abra"] = 12051,

["Kadabra"] = 12052,

["Alakazam"] = 12053,

["Machop"] = 12054,

["Machoke"] = 12055,

["Machamp"] = 12056,

["Bellsprout"] = 12057,

["Weepinbell"] = 12058,

["Victreebel"] = 12059,

["Tentacool"] = 12060,

["Tentacruel"] = 12061,

["Geodude"] = 12062,

["Graveler"] = 12063,

["Golem"] = 12064,

["Ponyta"] = 12065,

["Rapidash"] = 12066,

["Slowpoke"] = 12067,

["Slowbro"] = 12068,

["Magnemite"] = 12069,

["Magneton"] = 12070,

["Farfetch'd"] = 12071,

["Doduo"] = 12072,

["Dodrio"] = 12073,

["Seel"] = 12074,

["Dewgong"] = 12075,

["Grimer"] = 12076,

["Muk"] = 12077,

["Shellder"] = 12078,

["Cloyster"] = 12079,

["Gastly"] = 12080,

["Haunter"] = 12081,

["Gengar"] = 12082,

["Onix"] = 12083,

["Drowzee"] = 12084,

["Hypno"] = 12085,

["Krabby"] = 12086,

["Kingler"] = 12087,

["Voltorb"] = 12088,

["Electrode"] = 12089,

["Exeggcute"] = 12090,

["Exeggutor"] = 12091,

["Cubone"] = 12092,

["Marowak"] = 12093,

["Hitmonlee"] = 12094,

["Hitmonchan"] = 12095,

["Lickitung"] = 12096,

["Koffing"] = 12097,

["Weezing"] = 12098,

["Rhyhorn"] = 12099,

["Rhydon"] = 12100,

["Chansey"] = 12101,

["Tangela"] = 12102,

["Kangaskhan"] = 12103,

["Horsea"] = 12104,

["Seadra"] = 12105,

["Goldeen"] = 12106,

["Seaking"] = 12107,

["Staryu"] = 12108,

["Starmie"] = 12109,

["Mr. Mime"] = 12110,

["Scyther"] = 12111,

["Jynx"] = 12112,

["Electabuzz"] = 12113,

["Magmar"] = 12114,

["Pinsir"] = 12115,

["Tauros"] = 12116,

["Magikarp"] = 12117,

["Gyarados"] = 12118,

["Lapras"] = 12119,

["Ditto"] = 12120,

["Eevee"] = 12121,

["Vaporeon"] = 12122,

["Jolteon"] = 12123,

["Flareon"] = 12124,

["Porygon"] = 12125,

["Omanyte"] = 12126,

["Omastar"] = 12127,

["Kabuto"] = 12128,

["Kabutops"] = 12129,

["Aerodactyl"] = 12130,

["Snorlax"] = 12131,

["Articuno"] = 12132,

["Zapdos"] = 12133,

["Moltres"] = 12134,

["Dratini"] = 12135,

["Dragonair"] = 12136,

["Dragonite"] = 12137,

["Mewtwo"] = 12138,

["Mew"] = 12139,

["Aipom"] = 13397,

["Ampharos"] = 13340,

["Ariados"] = 13329,

["Azumarill"] = 13344,

["Bayleef"] = 13313,

["Bellossom"] = 13367,

["Blissey"] = 13377,

["Celebi"] = 13405,

["Chikorita"] = 13312,

["Chinchou"] = 13330,

["Cleffa"] = 13388,

["Corsola"] = 13378,

["Crobat"] = 13382,

["Croconaw"] = 13317,

["Cyndaquil"] = 13309,

["Delibird"] = 13392,

["Donphan"] = 13337,

["Dunsparce"] = 13375,

["Elekid"] = 13368,

["Entei"] = 13401,

["Espeon"] = 13356,

["Feraligatr"] = 13316,

["Flaffy"] = 13339,

["Forretress"] = 13342,

["Furret"] = 13319,

["Girafarig"] = 13374,

["Gligar"] = 13394,

["Granbull"] = 13322,

["Heracross"] = 13390,

["Hitmontop"] = 13352,

["Ho oh"] = 13404,

["Hoothoot"] = 13327,

["Hoppip"] = 13347,

["Houndoom"] = 13324,

["Houndour"] = 13325,

["Igglybuff"] = 13389,

["Jumpluff"] = 13349,

["Kingdra"] = 13395,

["Lanturn"] = 13331,

["Larvitar"] = 13359,

["Ledian"] = 13321,

["Ledyba"] = 13320,

["Lugia"] = 13403,

["Magby"] = 13381,

["Magcargo"] = 13351,

["Mantine"] = 13376,

["Mareep"] = 13338,

["Marill"] = 13343,

["Meganium"] = 13314,

["Miltank"] = 13384,

["Misdreavus"] = 13372,

["Murkrow"] = 13370,

["Natu"] = 13334,

["Noctowl"] = 13326,

["Octillery"] = 12880,

["Phanpy"] = 13336,

["Pichu"] = 13385,

["Piloswine"] = 13355,

["Pineco"] = 13341,

["Politoed"] = 13396,

["Porygon2"] = 13369,

["Pupitar"] = 13360,

["Quagsire"] = 13365,

["Quilava"] = 13311,

["Qwilfish"] = 13380,

["Raikou"] = 13400,

["Remoraid"] = 13358,

["Scizor"] = 13383,

["Sentret"] = 13318,

["Shuckle"] = 13386,

["Skarmory"] = 12896,

["Skiploom"] = 13348,

["Slowking"] = 13371,

["Slugma"] = 13350,

["Smeargle"] = 13393,

["Smoochum"] = 13399,

["Sneasel"] = 13391,

["Snubbull"] = 13323,

["Spinarak"] = 13328,

["Stantler"] = 13387,

["Steelix"] = 13379,

["Sudowoodo"] = 13366,

["Suicune"] = 13402,

["Sunflora"] = 13346,

["Sunkern"] = 13345,

["Swinub"] = 13354,

["Teddiursa"] = 13363,

["Togepi"] = 13332,

["Togetic"] = 13333,

["Totodile"] = 13315,

["Typhlosion"] = 13310,

["Tyranitar"] = 13361,

["Tyrogue"] = 13353,

["Umbreon"] = 13357,

["Ursaring"] = 13362,

["Wobbuffet"] = 13373,

["Wooper"] = 13364,

["Xatu"] = 13335,

["Yanma"] = 13398,

-----------------Shiny Portfoil------------

 

["Shiny Bulbasaur"] = 13156,

["Shiny Ivysaur"] = 13157,

["Shiny Venusaur"] = 13158,

["Shiny Charmander"] = 13159,

["Shiny Charmeleon"] = 13160,

["Shiny Charizard"] = 13161,

["Shiny Squirtle"] = 13162,

["Shiny Wartortle"] = 13163,

["Shiny Blastoise"] = 13164,

["Shiny Caterpie"] = 13165,

["Shiny Metapod"] = 13166,

["Shiny Butterfree"] = 13167,

["Shiny Weedle"] = 13168,

["Shiny Kakuna"] = 13169,

["Shiny Beedrill"] = 13170,

["Shiny Pidgey"] = 13171,

["Shiny Pidgeotto"] = 13172,

["Shiny Pidgeot"] = 13173,

["Shiny Rattata"] = 13174,

["Shiny Raticate"] = 13175,

["Shiny Spearow"] = 13176,

["Shiny Fearow"] = 13177,

["Shiny Ekans"] = 13178,

["Shiny Arbok"] = 13179,

["Shiny Pikachu"] = 13180,

["Shiny Raichu"] = 13181,

["Shiny Sandshrew"] = 13182,

["Shiny Sandslash"] = 13183,

["Shiny Nidoran Female"] = 13184,

["Shiny Nidorina"] = 13185,

["Shiny Nidoqueen"] = 13186,

["Shiny Nidoran Male"] = 13187,

["Shiny Nidorino"] = 13188,

["Shiny Nidoking"] = 13189,

["Shiny Clefairy"] = 13190,

["Shiny Clefable"] = 13191,

["Shiny Vulpix"] = 13192,

["Shiny Ninetales"] = 13193,

["Shiny Jigglypuff"] = 13194,

["Shiny Wigglytuff"] = 13195,

["Shiny Zubat"] = 13196,

["Shiny Golbat"] = 13197,

["Shiny Oddish"] = 13198,

["Shiny Gloom"] = 13199,

["Shiny Vileplume"] = 13200,

["Shiny Paras"] = 13201,

["Shiny Parasect"] = 13202,

["Shiny Venonat"] = 13203,

["Shiny Venomoth"] = 13204,

["Shiny Diglett"] = 13205,

["Shiny Dugtrio"] = 13206,

["Shiny Meowth"] = 13207,

["Shiny Persian"] = 13208,

["Shiny Psyduck"] = 13209,

["Shiny Golduck"] = 13210,

["Shiny Mankey"] = 13211,

["Shiny Primeape"] = 13212,

["Shiny Growlithe"] = 13213,

["Shiny Arcanine"] = 13214,

["Shiny Poliwag"] = 13215,

["Shiny Poliwhirl"] = 13216,

["Shiny Poliwrath"] = 13217,

["Shiny Abra"] = 13218,

["Shiny Kadabra"] = 13219,

["Shiny Alakazam"] = 13220,

["Shiny Machop"] = 13221,

["Shiny Machoke"] = 13222,

["Shiny Machamp"] = 13223,

["Shiny Bellsprout"] = 13224,

["Shiny Weepinbell"] = 13225,

["Shiny Victreebel"] = 13226,

["Shiny Tentacool"] = 13227,

["Shiny Tentacruel"] = 13228,

["Shiny Geodude"] = 13229,

["Shiny Graveler"] = 13230,

["Shiny Golem"] = 13231,

["Shiny Ponyta"] = 13232,

["Shiny Rapidash"] = 13233,

["Shiny Slowpoke"] = 13234,

["Shiny Slowbro"] = 13235,

["Shiny Magnemite"] = 13236,

["Shiny Magneton"] = 13237,

["Shiny Farfetch'd"] = 13238,

["Shiny Doduo"] = 13239,

["Shiny Dodrio"] = 13240,

["Shiny Seel"] = 13241,

["Shiny Dewgong"] = 13242,

["Shiny Grimer"] = 13243,

["Shiny Muk"] = 13244,

["Shiny Shellder"] = 13245,

["Shiny Cloyster"] = 13246,

["Shiny Gastly"] = 13247,

["Shiny Haunter"] = 13248,

["Shiny Gengar"] = 13249,

["Shiny Onix"] = 13250,

["Shiny Drowzee"] = 13251,

["Shiny Hypno"] = 13252,

["Shiny Krabby"] = 13253,

["Shiny Kingler"] = 13254,

["Shiny Voltorb"] = 13255,

["Shiny Electrode"] = 13256,

["Shiny Exeggcute"] = 13257,

["Shiny Exeggutor"] = 13258,

["Shiny Cubone"] = 13259,

["Shiny Marowak"] = 13260,

["Shiny Hitmonlee"] = 13261,

["Shiny Hitmonchan"] = 13262,

["Shiny Lickitung"] = 13263,

["Shiny Koffing"] = 13264,

["Shiny Weezing"] = 13265,

["Shiny Rhyhorn"] = 13266,

["Shiny Rhydon"] = 13267,

["Shiny Chansey"] = 13268,

["Shiny Tangela"] = 13269,

["Shiny Kangaskhan"] = 13270,

["Shiny Horsea"] = 13271,

["Shiny Seadra"] = 13272,

["Shiny Goldeen"] = 13273,

["Shiny Seaking"] = 13274,

["Shiny Staryu"] = 13275,

["Shiny Starmie"] = 13276,

["Shiny Mr. Mime"] = 13277,

["Shiny Scyther"] = 13278,

["Shiny Jynx"] = 13279,

["Shiny Electabuzz"] = 13280,

["Shiny Magmar"] = 13281,

["Shiny Pinsir"] = 13282,

["Shiny Tauros"] = 13283,

["Shiny Magikarp"] = 13284,

["Shiny Gyarados"] = 13285,

["Shiny Lapras"] = 13286,

["Shiny Ditto"] = 13287,

["Shiny Eevee"] = 13288,

["Shiny Vaporeon"] = 13289,

["Shiny Jolteon"] = 13290,

["Shiny Flareon"] = 13291,

["Shiny Porygon"] = 12125,

["Shiny Omanyte"] = 13292,

["Shiny Omastar"] = 13293,

["Shiny Kabuto"] = 13294,

["Shiny Kabutops"] = 13295,

["Shiny Aerodactyl"] = 13296,

["Shiny Snorlax"] = 13297,

["Shiny Articuno"] = 13298,

["Shiny Zapdos"] = 13299,

["Shiny Moltres"] = 13300,

["Shiny Dratini"] = 13301,

["Shiny Dragonair"] = 13302,

["Shiny Dragonite"] = 13303,

["Shiny Mewtwo"] = 13304,

["Shiny Mew"] = 13305

}

 

barfotos = {

["Bulbasaur"] = 11989,

["Ivysaur"] = 11990,

["Venusaur"] = 11991,

["Charmander"] = 11992,

["Charmeleon"] = 11993,

["Charizard"] = 11994,

["Squirtle"] = 11995,

["Wartortle"] = 11996,

["Blastoise"] = 11997,

["Caterpie"] = 11998,

["Metapod"] = 11999,

["Butterfree"] = 12000,

["Weedle"] = 12001,

["Kakuna"] = 12002,

["Beedrill"] = 12003,

["Pidgey"] = 12004,

["Pidgeotto"] = 12005,

["Pidgeot"] = 12006,

["Rattata"] = 12007,

["Raticate"] = 12008,

["Spearow"] = 12009,

["Fearow"] = 12010,

["Ekans"] = 12011,

["Arbok"] = 12012,

["Pikachu"] = 12013,

["Raichu"] = 12014,

["Sandshrew"] = 12015,

["Sandslash"] = 12016,

["Nidoran Female"] = 12017,

["Nidorina"] = 12018,

["Nidoqueen"] = 12019,

["Nidoran Male"] = 12020,

["Nidorino"] = 12021,

["Nidoking"] = 12022,

["Clefairy"] = 12023,

["Clefable"] = 12024,

["Vulpix"] = 12025,

["Ninetales"] = 12026,

["Jigglypuff"] = 12027,

["Wigglytuff"] = 12028,

["Zubat"] = 12029,

["Golbat"] = 12030,

["Oddish"] = 12031,

["Gloom"] = 12032,

["Vileplume"] = 12033,

["Paras"] = 12034,

["Parasect"] = 12035,

["Venonat"] = 12036,

["Venomoth"] = 12037,

["Diglett"] = 12038,

["Dugtrio"] = 12039,

["Meowth"] = 12040,

["Persian"] = 12041,

["Psyduck"] = 12042,

["Golduck"] = 12043,

["Mankey"] = 12044,

["Primeape"] = 12045,

["Growlithe"] = 12046,

["Arcanine"] = 12047,

["Poliwag"] = 12048,

["Poliwhirl"] = 12049,

["Poliwrath"] = 12050,

["Abra"] = 12051,

["Kadabra"] = 12052,

["Alakazam"] = 12053,

["Machop"] = 12054,

["Machoke"] = 12055,

["Machamp"] = 12056,

["Bellsprout"] = 12057,

["Weepinbell"] = 12058,

["Victreebel"] = 12059,

["Tentacool"] = 12060,

["Tentacruel"] = 12061,

["Geodude"] = 12062,

["Graveler"] = 12063,

["Golem"] = 12064,

["Ponyta"] = 12065,

["Rapidash"] = 12066,

["Slowpoke"] = 12067,

["Slowbro"] = 12068,

["Magnemite"] = 12069,

["Magneton"] = 12070,

["Farfetch'd"] = 12071,

["Doduo"] = 12072,

["Dodrio"] = 12073,

["Seel"] = 12074,

["Dewgong"] = 12075,

["Grimer"] = 12076,

["Muk"] = 12077,

["Shellder"] = 12078,

["Cloyster"] = 12079,

["Gastly"] = 12080,

["Haunter"] = 12081,

["Gengar"] = 12082,

["Onix"] = 12083,

["Drowzee"] = 12084,

["Hypno"] = 12085,

["Krabby"] = 12086,

["Kingler"] = 12087,

["Voltorb"] = 12088,

["Electrode"] = 12089,

["Exeggcute"] = 12090,

["Exeggutor"] = 12091,

["Cubone"] = 12092,

["Marowak"] = 12093,

["Hitmonlee"] = 12094,

["Hitmonchan"] = 12095,

["Lickitung"] = 12096,

["Koffing"] = 12097,

["Weezing"] = 12098,

["Rhyhorn"] = 12099,

["Rhydon"] = 12100,

["Chansey"] = 12101,

["Tangela"] = 12102,

["Kangaskhan"] = 12103,

["Horsea"] = 12104,

["Seadra"] = 12105,

["Goldeen"] = 12106,

["Seaking"] = 12107,

["Staryu"] = 12108,

["Starmie"] = 12109,

["Mr. Mime"] = 12110,

["Scyther"] = 12111,

["Jynx"] = 12112,

["Electabuzz"] = 12113,

["Magmar"] = 12114,

["Pinsir"] = 12115,

["Tauros"] = 12116,

["Magikarp"] = 12117,

["Gyarados"] = 12118,

["Lapras"] = 12119,

["Ditto"] = 12120,

["Eevee"] = 12121,

["Vaporeon"] = 12122,

["Jolteon"] = 12123,

["Flareon"] = 12124,

["Porygon"] = 12125,

["Omanyte"] = 12126,

["Omastar"] = 12127,

["Kabuto"] = 12128,

["Kabutops"] = 12129,

["Aerodactyl"] = 12130,

["Snorlax"] = 12131,

["Articuno"] = 12132,

["Zapdos"] = 12133,

["Moltres"] = 12134,

["Dratini"] = 12135,

["Dragonair"] = 12136,

["Dragonite"] = 12137,

["Mewtwo"] = 12138,

["Mew"] = 12139,

["Aipom"] = 13397,

["Ampharos"] = 13340,

["Ariados"] = 13329,

["Azumarill"] = 13344,

["Bayleef"] = 13313,

["Bellossom"] = 13367,

["Blissey"] = 13377,

["Celebi"] = 13405,

["Chikorita"] = 13312,

["Chinchou"] = 13330,

["Cleffa"] = 13388,

["Corsola"] = 13378,

["Crobat"] = 13382,

["Croconaw"] = 13317,

["Cyndaquil"] = 13309,

["Delibird"] = 13392,

["Donphan"] = 13337,

["Dunsparce"] = 13375,

["Elekid"] = 13368,

["Entei"] = 13401,

["Espeon"] = 13356,

["Feraligatr"] = 13316,

["Flaffy"] = 13339,

["Forretress"] = 13342,

["Furret"] = 13319,

["Girafarig"] = 13374,

["Gligar"] = 13394,

["Granbull"] = 13322,

["Heracross"] = 13390,

["Hitmontop"] = 13352,

["Ho oh"] = 13404,

["Hoothoot"] = 13327,

["Hoppip"] = 13347,

["Houndoom"] = 13324,

["Houndour"] = 13325,

["Igglybuff"] = 13389,

["Jumpluff"] = 13349,

["Kingdra"] = 13395,

["Lanturn"] = 13331,

["Larvitar"] = 13359,

["Ledian"] = 13321,

["Ledyba"] = 13320,

["Lugia"] = 13403,

["Magby"] = 13381,

["Magcargo"] = 13351,

["Mantine"] = 13376,

["Mareep"] = 13338,

["Marill"] = 13343,

["Meganium"] = 13314,

["Miltank"] = 13384,

["Misdreavus"] = 13372,

["Murkrow"] = 13370,

["Natu"] = 13334,

["Noctowl"] = 13326,

["Octillery"] = 12880,

["Phanpy"] = 13336,

["Pichu"] = 13385,

["Piloswine"] = 13355,

["Pineco"] = 13341,

["Politoed"] = 13396,

["Porygon2"] = 13369,

["Pupitar"] = 13360,

["Quagsire"] = 13365,

["Quilava"] = 13311,

["Qwilfish"] = 13380,

["Raikou"] = 13400,

["Remoraid"] = 13358,

["Scizor"] = 13383,

["Sentret"] = 13318,

["Shuckle"] = 13386,

["Skarmory"] = 12896,

["Skiploom"] = 13348,

["Slowking"] = 13371,

["Slugma"] = 13350,

["Smeargle"] = 13393,

["Smoochum"] = 13399,

["Sneasel"] = 13391,

["Snubbull"] = 13323,

["Spinarak"] = 13328,

["Stantler"] = 13387,

["Steelix"] = 13379,

["Sudowoodo"] = 13366,

["Suicune"] = 13402,

["Sunflora"] = 13346,

["Sunkern"] = 13345,

["Swinub"] = 13354,

["Teddiursa"] = 13363,

["Togepi"] = 13332,

["Togetic"] = 13333,

["Totodile"] = 13315,

["Typhlosion"] = 13310,

["Tyranitar"] = 13361,

["Tyrogue"] = 13353,

["Umbreon"] = 13357,

["Ursaring"] = 13362,

["Wobbuffet"] = 13373,

["Wooper"] = 13364,

["Xatu"] = 13335,

["Yanma"] = 13398,

["Shiny Bulbasaur"] = 13156,

["Shiny Ivysaur"] = 13157,

["Shiny Venusaur"] = 13158,

["Shiny Charmander"] = 13159,

["Shiny Charmeleon"] = 13160,

["Shiny Charizard"] = 13161,

["Shiny Squirtle"] = 13162,

["Shiny Wartortle"] = 13163,

["Shiny Blastoise"] = 13164,

["Shiny Caterpie"] = 13165,

["Shiny Metapod"] = 13166,

["Shiny Butterfree"] = 13167,

["Shiny Weedle"] = 13168,

["Shiny Kakuna"] = 13169,

["Shiny Beedrill"] = 13170,

["Shiny Pidgey"] = 13171,

["Shiny Pidgeotto"] = 13172,

["Shiny Pidgeot"] = 13173,

["Shiny Rattata"] = 13174,

["Shiny Raticate"] = 13175,

["Shiny Spearow"] = 13176,

["Shiny Fearow"] = 13177,

["Shiny Ekans"] = 13178,

["Shiny Arbok"] = 13179,

["Shiny Pikachu"] = 13180,

["Shiny Raichu"] = 13181,

["Shiny Sandshrew"] = 13182,

["Shiny Sandslash"] = 13183,

["Shiny Nidoran Female"] = 13184,

["Shiny Nidorina"] = 13185,

["Shiny Nidoqueen"] = 13186,

["Shiny Nidoran Male"] = 13187,

["Shiny Nidorino"] = 13188,

["Shiny Nidoking"] = 13189,

["Shiny Clefairy"] = 13190,

["Shiny Clefable"] = 13191,

["Shiny Vulpix"] = 13192,

["Shiny Ninetales"] = 13193,

["Shiny Jigglypuff"] = 13194,

["Shiny Wigglytuff"] = 13195,

["Shiny Zubat"] = 13196,

["Shiny Golbat"] = 13197,

["Shiny Oddish"] = 13198,

["Shiny Gloom"] = 13199,

["Shiny Vileplume"] = 13200,

["Shiny Paras"] = 13201,

["Shiny Parasect"] = 13202,

["Shiny Venonat"] = 13203,

["Shiny Venomoth"] = 13204,

["Shiny Diglett"] = 13205,

["Shiny Dugtrio"] = 13206,

["Shiny Meowth"] = 13207,

["Shiny Persian"] = 13208,

["Shiny Psyduck"] = 13209,

["Shiny Golduck"] = 13210,

["Shiny Mankey"] = 13211,

["Shiny Primeape"] = 13212,

["Shiny Growlithe"] = 13213,

["Shiny Arcanine"] = 13214,

["Shiny Poliwag"] = 13215,

["Shiny Poliwhirl"] = 13216,

["Shiny Poliwrath"] = 13217,

["Shiny Abra"] = 13218,

["Shiny Kadabra"] = 13219,

["Shiny Alakazam"] = 13220,

["Shiny Machop"] = 13221,

["Shiny Machoke"] = 13222,

["Shiny Machamp"] = 13223,

["Shiny Bellsprout"] = 13224,

["Shiny Weepinbell"] = 13225,

["Shiny Victreebel"] = 13226,

["Shiny Tentacool"] = 13227,

["Shiny Tentacruel"] = 13228,

["Shiny Geodude"] = 13229,

["Shiny Graveler"] = 13230,

["Shiny Golem"] = 13231,

["Shiny Ponyta"] = 13232,

["Shiny Rapidash"] = 13233,

["Shiny Slowpoke"] = 13234,

["Shiny Slowbro"] = 13235,

["Shiny Magnemite"] = 13236,

["Shiny Magneton"] = 13237,

["Shiny Farfetch'd"] = 13238,

["Shiny Doduo"] = 13239,

["Shiny Dodrio"] = 13240,

["Shiny Seel"] = 13241,

["Shiny Dewgong"] = 13242,

["Shiny Grimer"] = 13243,

["Shiny Muk"] = 13244,

["Shiny Shellder"] = 13245,

["Shiny Cloyster"] = 13246,

["Shiny Gastly"] = 13247,

["Shiny Haunter"] = 13248,

["Shiny Gengar"] = 13249,

["Shiny Onix"] = 13250,

["Shiny Drowzee"] = 13251,

["Shiny Hypno"] = 13252,

["Shiny Krabby"] = 13253,

["Shiny Kingler"] = 13254,

["Shiny Voltorb"] = 13255,

["Shiny Electrode"] = 13256,

["Shiny Exeggcute"] = 13257,

["Shiny Exeggutor"] = 13258,

["Shiny Cubone"] = 13259,

["Shiny Marowak"] = 13260,

["Shiny Hitmonlee"] = 13261,

["Shiny Hitmonchan"] = 13262,

["Shiny Lickitung"] = 13263,

["Shiny Koffing"] = 13264,

["Shiny Weezing"] = 13265,

["Shiny Rhyhorn"] = 13266,

["Shiny Rhydon"] = 13267,

["Shiny Chansey"] = 13268,

["Shiny Tangela"] = 13269,

["Shiny Kangaskhan"] = 13270,

["Shiny Horsea"] = 13271,

["Shiny Seadra"] = 13272,

["Shiny Goldeen"] = 13273,

["Shiny Seaking"] = 13274,

["Shiny Staryu"] = 13275,

["Shiny Starmie"] = 13276,

["Shiny Mr. Mime"] = 13277,

["Shiny Scyther"] = 13278,

["Shiny Jynx"] = 13279,

["Shiny Electabuzz"] = 13280,

["Shiny Magmar"] = 13281,

["Shiny Pinsir"] = 13282,

["Shiny Tauros"] = 13283,

["Shiny Magikarp"] = 13284,

["Shiny Gyarados"] = 13285,

["Shiny Lapras"] = 13286,

["Shiny Ditto"] = 13287,

["Shiny Eevee"] = 13288,

["Shiny Vaporeon"] = 13289,

["Shiny Jolteon"] = 13290,

["Shiny Flareon"] = 13291,

["Shiny Porygon"] = 12125,

["Shiny Omanyte"] = 13292,

["Shiny Omastar"] = 13293,

["Shiny Kabuto"] = 13294,

["Shiny Kabutops"] = 13295,

["Shiny Aerodactyl"] = 13296,

["Shiny Snorlax"] = 13297,

["Shiny Articuno"] = 13298,

["Shiny Zapdos"] = 13299,

["Shiny Moltres"] = 13300,

["Shiny Dratini"] = 13301,

["Shiny Dragonair"] = 13302,

["Shiny Dragonite"] = 13303,

["Shiny Mewtwo"] = 13304,

["Shiny Mew"] = 13305

}

 

Link para o comentário
Compartilhar em outros sites

@All

Povo, estou com o bike system que já veio com o PDA ou o PDA edited by slicer... tem somente um erro... quando eu deslogo com a bike e logo novamente o char ficar travado, ele da um passo e demora uns 20 seg para andar :X

provavelmente isso seja no login.lua? da uma força!

 

Quem puder me ajudar tbm resolvendo meu pvp eu ficaria feliz ;)

 

Rep+

Link para o comentário
Compartilhar em outros sites

@bozoques

Você tem que deixar a tabela fotos normal e fazer outra para a barra você não le oque eu disse aff u.u

 

@DidoGunner

Posta o bike em spoiler e oque fica de bike no login.lua que faço uma versão melhor, acho esse bike sinceramente um lixo...

 

@Others

Se eu não respondi porque é um pedido, ou merece aquela frase:

"Se vira", se responderem "Não sei", eu falo "Aprende e.e"

Link para o comentário
Compartilhar em outros sites

@Zeref @All

Me ajuda na bagaça da promotion,ja tentei colocar varias coisas,mas quando eu vou logar ele fecha o serv.

OBS: so quandop eu coloco o script no login......

Ajuda ai plx

Link para o comentário
Compartilhar em outros sites

Se puder arrumar meu PVP que está na pagina anterior... um brother falou no script de sair do pvp

ao inves de mudar o outfit dinovo bote essa função "doRemoveCondition(cid, CONDITION_OUTFIT)"

mas eu não sei ond o.O!

 

Bike.lua

 

function onUse(cid, item, fromPosition, itemEx, toPosition)

 

local sBike = 5701

 

local t = {

[2547] = {article='a', name='bike', text='Mount, bike!', dtext='Demount, bike!', s=5700, condition=bikeCondition},

} --mude o [ ] pro id do item q vai usar a bike...

 

function BikeSpeedOn(cid,nSpeed)

setPlayerStorageValue(cid,sBike,getCreatureSpeed(cid))

doChangeSpeed(cid,-getCreatureSpeed(cid))

doChangeSpeed(cid,nSpeed)

end

 

function BikeSpeedOff(cid)

doChangeSpeed(cid,-getCreatureSpeed(cid))

doChangeSpeed(cid,getPlayerStorageValue(cid,sBike))

end

 

local v, r = getCreaturePosition(cid), t[item.itemid]

local s = r.s

local pos = {x = v.x, y = v.y, z = v.z}

if r then

if getPlayerStorageValue(cid, 25000) == 5 then

return

end

if getPlayerStorageValue(cid, 23000) == 5 then

return

end

if #getCreatureSummons(cid) >= 1 then

return

end

 

 

if getPlayerStorageValue(cid, 17001) == 1 or getPlayerStorageValue(cid, 63215) == 1 or getPlayerStorageValue(cid, 17000) == 1 then

doPlayerSendCancel(cid, "You can't use bike while ride/fly/surf.")

return true

end

if getPlayerStorageValue(cid, s) <= 0 then

doSendMagicEffect(pos, 177)

doCreatureSay(cid, r.text, 19)

setPlayerStorageValue(cid, s, 1)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have mounted ' .. r.article .. ' '.. r.name .. '.')

BikeSpeedOn(cid,500)

if getPlayerSex(cid) == 1 then

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

else

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

end

elseif getPlayerStorageValue(cid, s) == 1 then

doSendMagicEffect(pos, 177)

doCreatureSay(cid, r.dtext, 19)

setPlayerStorageValue(cid, s, 0)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You haven demouted ' .. r.article .. ' '.. r.name .. '.')

BikeSpeedOff(cid)

return doRemoveCondition(cid, CONDITION_OUTFIT)

else

return doPlayerSendCancel(cid, 'You can\'t do this.')

end

else

return doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, 'Report bugs in bike system.')

end

end

 

Login.lua

 

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 Moltres"] = {229, 2300}, -- Shiny moltres

["Shiny Articuno"] = {1018, 2100}, -- Shiny artic

["Shiny Zapdos"] = {1019, 2600}, -- Shiny zapdos

["Shiny Mew"] = {1022, 2200}, -- Shiny 1000

["Shiny Mewtwo"] = {1021, 2200},-- Shiny two

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

["Shiny Pidgeot"] = {996, 900}, -- Shiny geot

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

["Shiny Aerodactyl"] = {1017, 1100}, -- Shiny aero

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

["Shiny Porygon"] = {1016, 600}, -- Shiny 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

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

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

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

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

["Shiny Tauros"] = {1024, 580}, -- tauros

["Shiny Ninetales"] = {999, 800}, -- kyuubi

["Shiny Rapidash"] = {1005, 800}, -- rapid

["Shiny Ponyta"] = {1004, 410}, -- ponyta

["Shiny Rhyhorn"] = {1023, 400}, -- rhyhorn

["Shiny Arcanine"] = {1003, 900}, -- arcan

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

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

["Shiny Dodrio"] = {1007, 750}, -- dodrio

["Shiny Doduo"] = {1006, 420}, -- doduo

["Crystal Onix"] = {293, 480}, -- cristal onix

["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 Poliwag"] = {lookType=1010, speed = 320},

["Shiny Poliwhirl"] = {lookType=1011, speed = 480},

["Shiny Seaking"] = {lookType=1027, speed = 520},

["Shiny Dewgong"] = {lookType=1015, speed = 700},

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

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

["Shiny Lapras"] = {lookType=1031, speed = 960},

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

["Shiny Omastar"] = {lookType=1033, speed = 680},

["Shiny Kabutops"] = {lookType=1034, speed = 840},

["Shiny Poliwrath"] = {lookType=1012, speed = 680},

["Shiny Vaporeon"] = {lookType=1032, speed = 800},

["Shiny Staryu"] = {lookType=1028, speed = 385},

["Shiny Starmie"] = {lookType=1029, speed = 685},

["Shiny Goldeen"] = {lookType=1026, speed = 355},

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

["Shiny Golduck"] = {lookType=1009, speed = 760},

["Shiny Squirtle"] = {lookType=1000, speed = 365},

["Shiny Wartortle"] = {lookType=1001, speed = 605},

["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

 

return true

end

 

 

vlw ;)

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

Zere#

 

Só uma duvida akilo lá que voce falo Sobre falar não em que pedi script pra vc foi pra min ?'-'

Só queria sabe como adiciono 30% nas vocations , tpw, seavell ter 30 % + de atak de agua se sabe e ajud agred ^^

Link para o comentário
Compartilhar em outros sites

@Stylo, é só procurar o script que tira os danos, verificar a vocation do player e entao adicionar ou não dano . É como o zeref disse... "Se Vira"

Link para o comentário
Compartilhar em outros sites

soh passando denovo...

pra quem quer fazer promotion system.. tem q usar simplismente 2 scripts...

lib/pokemon moves.lua e lib/moves.lua... como o zeref fla.. agora se virem ^^ good luck!

Link para o comentário
Compartilhar em outros sites

@Slicer acho que descobri porque seu server as vezes não toma dano. Reparei que quando eu deixo um pokemon com status muito alto, ele não toma danos pra nenhum cd contra outro pokemon com status muito inferior. Acho que algum sistema do brun continua.

Link para o comentário
Compartilhar em outros sites

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