Ir para conteúdo

vankk

Membro
  • Registro em

  • Última visita

Tudo que vankk postou

  1. function mudarVis(uid) look = getCreatureLookDirection(uid) look = look < 3 and look + 1 or 0 doCreatureSetLookDirection(uid, look) addEvent(mudarVis, 2000, uid) end local events1 = {} local trainerst = 456488 function onStepIn(cid) events1[getPlayerGUID(cid)] = addEvent(mudarVis, 1000, cid) doPlayerSendTextMessage(cid, 27, "Bem-vindo a sua sala de treinamento, você será movimentado automaticamente para que continue treinando!") setPlayerStorageValue(cid, trainerst, 1) return true end function onStepOut(cid) stopEvent(events1[getPlayerGUID(cid)]) stopEvent(mudarVis) setPlayerStorageValue(cid, trainerst, -1) return true end
  2. Adiciona isso no seu script que da VIP. local name = getCreatureName(cid) if not string.find(name, '[VIP]') then db.executeQuery("UPDATE `players` SET `name` = '[VIP] ".. name .."' WHERE `id` = "..getPlayerGUID(cid)..";") end
  3. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Tente printar o script, e posta os resultados.
  4. @G3 Yuri Isso é script de TFS 1.x e não 0.4 -- tópico. Utilize esse script, ele não vai permitir que players utilizem o item se não estiver no proctetion zone, ou estiver PK.. function onUse(cid, item, fromPosition, item2, toPosisition) if getPlayerSkullType(cid) == SKULL_WHITE or getTilePzInfo(getPlayerPosition(cid)) == true then doPlayerSendCancel(cid,"Sorry, not possible.") return false end local rskulls = {red = SKULL_RED, black = SKULL_BLACK} if isInArray(rskulls, getPlayerSkullType(cid)) then doPlayerSendCancel(cid,"You don't remover your frags and skulls.") doSendMagicEffect(getPlayerPosition(cid), 2) else db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") doCreatureSetSkullType(cid, 0) doCreatureSay(cid, "Your frags and skulls is cleaned!", 19) doSendMagicEffect(getPlayerPosition(cid), 26) doRemoveItem(item.uid, 1) return true end end
  5. Meu deus, que script gigante. local pokes = { ["Flareon"] = {chance = 500, corpse = 6059, health = 5300, maxhealth = 5300}, ["Crystal Onix"] = {chance = 500, corpse = 6320, health = 5300, maxhealth = 5300}, ["Porygon"] = {chance = 200, corpse = 5963, health = 14000, maxhealth = 4000}, ["Ditto"] = {chance = 200, corpse = 2817, health = 14000, maxhealth = 4000}, ["Magikarp"] = {chance = 10, corpse = 2818, health = 120, maxhealth = 120}, ["Eevee"] = {chance = 200, corpse = 6364, health = 1500, maxhealth = 1500}, ["Abra"] = {chance = 500, corpse = 2905, health = 620, maxhealth = 620}, ["Kadabra"] = {chance = 500, corpse = 6060, health = 2500, maxhealth = 2500}, ["Alakazam"] = {chance = 500, corpse = 6057, health = 4000, maxhealth = 4000}, ["Rattata"] = {chance = 10, corpse = 5974, health = 350, maxhealth = 350}, ["Raticate"] = {chance = 500, corpse = 6007, health = 900, maxhealth = 900}, ["Pidgey"] = {chance = 50, corpse = 5961, health = 380, maxhealth = 380}, ["Pidgeotto"] = {chance = 500, corpse = 5966, health = 1400, maxhealth = 1400}, ["Pidgeot"] = {chance = 500, corpse = 6020, health = 3800, maxhealth = 3800}, ["Zubat"] = {chance = 75, corpse = 5989, health = 450, maxhealth = 450}, ["Golbat"] = {chance = 500, corpse = 6053, health = 1900, maxhealth = 1900}, ["Bellsprout"] = {chance = 82.5, corpse = 2806, health = 420, maxhealth = 420}, ["Weepinbell"] = {chance = 500, corpse = 2928, health = 1100, maxhealth = 1100}, ["Victreebel"] = {chance = 500, corpse = 6332, health = 4000, maxhealth = 4000}, ["Poliwag"] = {chance = 73.75, corpse = 6042, health = 400, maxhealth = 400}, ["Poliwhirl"] = {chance = 500, corpse = 6054, health = 1200, maxhealth = 1200}, ["Poliwrath"] = {chance = 500, corpse = 6033, health = 4400, maxhealth = 4400}, ["Oddish"] = {chance = 90, corpse = 3008, health = 340, maxhealth = 340}, ["Gloom"] = {chance = 500, corpse = 6017, health = 1400, maxhealth = 1400}, ["Vileplume"] = {chance = 500, corpse = 6025, health = 3300, maxhealth = 3300}, ["Horsea"] = {chance = 105, corpse = 2973, health = 300, maxhealth = 300}, ["Seadra"] = {chance = 500, corpse = 2872, health = 2500, maxhealth = 2500}, ["Grimer"] = {chance = 605, corpse = 6055, health = 600, maxhealth = 600}, ["Weedle"] = {chance = 20, corpse = 5964, health = 325, maxhealth = 325}, ["Kakuna"] = {chance = 201.25, corpse = 6000, health = 900, maxhealth = 900}, ["Beedrill"] = {chance = 500, corpse = 5990, health = 1900, maxhealth = 1900}, ["Muk"] = {chance = 500, corpse = 2845, health = 2400, maxhealth = 2400}, ["Doduo"] = {chance = 701.25, corpse = 2842, health = 600, maxhealth = 600}, ["Dodrio"] = {chance = 500, corpse = 6047, health = 2650, maxhealth = 2650}, ["Magnemite"] = {chance = 605, corpse = 6056, health = 450, maxhealth = 450}, ["Magneton"] = {chance = 1000, corpse = 6076, health = 1750, maxhealth = 1750}, ["Voltorb"] = {chance = 406.25, corpse = 6049, health = 620, maxhealth = 620}, ["Electrode"] = {chance = 500, corpse = 6051, health = 2000, maxhealth = 2000}, ["Geodude"] = {chance = 302.5, corpse = 6071, health = 700, maxhealth = 700}, ["Graveler"] = {chance = 1000, corpse = 6516, health = 3000, maxhealth = 3000}, ["Golem"] = {chance = 500, corpse = 6043, health = 6500, maxhealth = 6500}, ["Sandshrew"] = {chance = 906.25, corpse = 5988, health = 700, maxhealth = 700}, ["Sandslash"] = {chance = 500, corpse = 6041, health = 3400, maxhealth = 3400}, ["Charmander"] = {chance = 500, corpse = 5983, health = 970, maxhealth = 970}, ["Charmeleon"] = {chance = 500, corpse = 5981, health = 2900, maxhealth = 2900}, ["Charizard"] = {chance = 9687.5, corpse = 6005, health = 5200, maxhealth = 5200}, ["Vulpix"] = {chance = 950, corpse = 6003, health = 680, maxhealth = 680}, ["Ninetales"] = {chance = 500, corpse = 6040, health = 2650, maxhealth = 2650}, ["Bulbasaur"] = {chance = 1, corpse = 5969, health = 3000, maxhealth = 3000}, ["Ivysaur"] = {chance = 500, corpse = 5982, health = 2600, maxhealth = 2600}, ["Venusaur"] = {chance = 500, corpse = 5962, health = 5200, maxhealth = 5200}, ["Squirtle"] = {chance = 500, corpse = 6008, health = 1350, maxhealth = 1350}, ["Wartortle"] = {chance = 500.5, corpse = 5978, health = 2800, maxhealth = 2800}, ["Blastoise"] = {chance = 500, corpse = 5999, health = 5900, maxhealth = 5900}, ["Growlithe"] = {chance = 500, corpse = 6036, health = 500, maxhealth = 500}, ["Arcanine"] = {chance = 500, corpse = 6031, health = 6800, maxhealth = 6800}, ["Psyduck"] = {chance = 925, corpse = 6029, health = 950, maxhealth = 950}, ["Golduck"] = {chance = 500, corpse = 6028, health = 4000, maxhealth = 4000}, ["Pikachu"] = {chance = 500, corpse = 6001, health = 900, maxhealth = 900}, ["Raichu"] = {chance = 500, corpse = 5996, health = 3500, maxhealth = 3500}, ["Ekans"] = {chance = 406,25, corpse = 5979, health = 600, maxhealth = 600}, ["Arbok"] = {chance = 500, corpse = 5984, health = 2900, maxhealth = 2900}, ["Cubone"] = {chance = 925, corpse = 6050, health = 1200, maxhealth = 1200}, ["Marowak"] = {chance = 500, corpse = 6072, health = 3900, maxhealth = 3900}, ["Caterpie"] = {chance = 20, corpse = 5971, health = 300, maxhealth = 300}, ["Metapod"] = {chance = 201.25, corpse = 5970, health = 1100, maxhealth = 1100}, ["Butterfree"] = {chance = 500, corpse = 5985, health = 2000, maxhealth = 2000}, ["Goldeen"] = {chance = 72.5, corpse = 2970, health = 950, maxhealth = 950}, ["Seaking"] = {chance = 500, corpse = 3038, health = 2000, maxhealth = 2000}, ["Spearow"] = {chance = 88.75, corpse = 5968, health = 200, maxhealth = 200}, ["Fearow"] = {chance = 1, corpse = 5992, health = 3300, maxhealth = 3300}, ["Drowzee"] = {chance = 937.5, corpse = 6026, health = 1150, maxhealth = 1150}, ["Hypno"] = {chance = 500, corpse = 6046, health = 4600, maxhealth = 4600}, ["Diglett"] = {chance = 400, corpse = 6023, health = 900, maxhealth = 900}, ["Dugtrio"] = {chance = 4000, corpse = 6024, health = 3450, maxhealth = 3450}, ["Krabby"] = {chance = 86.875, corpse = 6039, health = 850, maxhealth = 850}, ["Kingler"] = {chance = 500, corpse = 6340, health = 3250, maxhealth = 3250}, ["Paras"] = {chance = 40.25, corpse = 3007, health = 850, maxhealth = 850}, ["Parasect"] = {chance = 500, corpse = 6027, health = 3800, maxhealth = 3800}, ["Dratini"] = {chance = 500, corpse = 2879, health = 520, maxhealth = 520}, ["Dragonair"] = {chance = 500, corpse = 6002, health = 3000, maxhealth = 3000}, ["Dragonite"] = {chance = 500, corpse = 4295, health = 17000, maxhealth = 17000}, ["Ponyta"] = {chance = 906.25, corpse = 5975, health = 1400, maxhealth = 1400}, ["Rapidash"] = {chance = 4602.5, corpse = 4323, health = 5500, maxhealth = 5500}, ["Pinsir"] = {chance = 4000, corpse = 7282, health = 55, maxhealth = 55}, ["Seel"] = {chance = 1500, corpse = 6030, health = 500, maxhealth = 1000}, ["Dewgong"] = {chance = 900, corpse = 6038, health = 5200, maxhealth = 5200}, ["Exeggcute"] = {chance = 300, corpse = 2982, health = 800, maxhealth = 800}, ["Exeggutor"] = {chance = 7075, corpse = 3005, health = 450, maxhealth = 4000}, ["Koffing"] = {chance = 502.5, corpse = 2936, health = 900, maxhealth = 900}, ["Weezing"] = {chance = 1605, corpse = 6306, health = 2800, maxhealth = 2800}, ["Staryu"] = {chance = 405, corpse = 5987, health = 1050, maxhealth = 1050}, ["Starmie"] = {chance = 3000, corpse = 7320, health = 3800, maxhealth = 3800}, ["Rhyhorn"] = {chance = 1007.5, corpse = 3035, health = 3800, maxhealth = 3800}, ["Rhydon"] = {chance = 5500, corpse = 2858, health = 7000, maxhealth = 7000}, ["Shellder"] = {chance = 505, corpse = 2837, health = 800, maxhealth = 800}, ["Snorlax"] = {chance = 33705, corpse = 6016, health = 9000, maxhealth = 9000}, ["Gyarados"] = {chance = 500, corpse = 6331, health = 7800, maxhealth = 7800}, ["Machop"] = {chance = 906.25, corpse = 6045, health = 1100, maxhealth = 1100}, ["Machoke"] = {chance = 500, corpse = 4251, health = 2850, maxhealth = 3500}, ["Machamp"] = {chance = 500, corpse = 6048, health = 6100, maxhealth = 7500}, ["Clefairy"] = {chance = 1075, corpse = 2968, health = 600, maxhealth = 600}, ["Clefable"] = {chance = 500, corpse = 6006, health = 2400, maxhealth = 2400}, ["Jigglypuff"] = {chance = 987.5, corpse = 6011, health = 550, maxhealth = 550}, ["Wigglytuff"] = {chance = 500, corpse = 6012, health = 2900, maxhealth = 2900}, ["Venonat"] = {chance = 925, corpse = 5997, health = 1350, maxhealth = 1350}, ["Venomoth"] = {chance = 4000, corpse = 2925, health = 3850, maxhealth = 3850}, ["Meowth"] = {chance = 900, corpse = 6034, health = 950, maxhealth = 950}, ["Persian"] = {chance = 500, corpse = 6009, health = 2250, maxhealth = 2250}, ["Mankey"] = {chance = 605, corpse = 6035, health = 1050, maxhealth = 1050}, ["Primeape"] = {chance = 5205, corpse = 6032, health = 4500, maxhealth = 4500}, ["Tentacool"] = {chance = 303.75, corpse = 2961, health = 1050, maxhealth = 1050}, ["Tentacruel"] = {chance = 500, corpse = 6037, health = 7050, maxhealth = 7050}, ["Slowpoke"] = {chance = 906.25, corpse = 2926, health = 1200, maxhealth = 1200}, ["Slowbro"] = {chance = 500, corpse = 5986, health = 4600, maxhealth = 4600}, ["Cloyster"] = {chance = 500, corpse = 2932, health = 120, maxhealth = 5000}, ["Gastly"] = {chance = 500, corpse = 5993, health = 1000, maxhealth = 1000}, ["Haunter"] = {chance = 7705, corpse = 6004, health = 3000, maxhealth = 3000}, ["Gengar"] = {chance = 39075, corpse = 6336, health = 7000, maxhealth = 7000}, ["Onix"] = {chance = 500, corpse = 2990, health = 5300, maxhealth = 5300}, ["Hitmonlee"] = {chance = 500, corpse = 6067, health = 9250, maxhealth = 9250}, ["Hitmonchan"] = {chance = 500, corpse = 5977, health = 10500, maxhealth = 10500}, ["Lickitung"] = {chance = 500, corpse = 2953, health = 4800, maxhealth = 4800}, ["Chansey"] = {chance = 500, corpse = 6010, health = 7500, maxhealth = 7500}, ["Tangela"] = {chance = 500, corpse = 5976, health = 3500, maxhealth = 3500}, ["Kangaskhan"] = {chance = 500, corpse = 6073, health = 7000, maxhealth = 7000}, ["Scyther"] = {chance = 500, corpse = 3002, health = 6500, maxhealth = 6500}, ["Electabuzz"] = {chance = 500, corpse = 6065, health = 6800, maxhealth = 6800}, ["Magmar"] = {chance = 500, corpse = 7283, health = 7200, maxhealth = 7200}, ["Jynx"] = {chance = 5000, corpse = 5765, health = 7000, maxhealth = 7000}, ["Nidoran Male"] = {chance = 500, corpse = 6015, health = 650, maxhealth = 650}, ["Nidoran Female"] = {chance = 500, corpse = 6013, health = 600, maxhealth = 600}, ["Nidoking"] = {chance = 1000, corpse = 5995, health = 4800, maxhealth = 4800}, ["Nidoqueen"] = {chance = 1000, corpse = 3004, health = 4200, maxhealth = 4200}, ["Nidorina"] = {chance = 2500, corpse = 6014, health = 2000, maxhealth = 2000}, ["Nidorino"] = {chance = 2500, corpse = 6019, health = 2500, maxhealth = 2500}, ["Farfetchd"] = {chance = 5205, corpse = 2836, health = 2500, maxhealth = 2500}, ["MrMime"] = {chance = 1000, corpse = 6069, health = 5500, maxhealth = 5500}, ["Tauros"] = {chance = 500, corpse = 6302, health = 4200, maxhealth = 4200}, ["Lapras"] = {chance = 500, corpse = 6018, health = 8000, maxhealth = 8000}, ["Omanyte"] = {chance = 9025, corpse = 5998, health = 1300, maxhealth = 1300}, ["Omastar"] = {chance = 500, corpse = 5994, health = 6000, maxhealth = 6000}, ["Kabuto"] = {chance = 500, corpse = 5972, health = 1375, maxhealth = 1375}, ["Kabutops"] = {chance = 500, corpse = 6345, health = 6920, maxhealth = 6920}, ["Aerodactyl"] = {chance = 500, corpse = 6338, health = 7100, maxhealth = 7100}, ["Articuno"] = {chance = 500, corpse = 7256, health = 12000, maxhealth = 12000}, ["Zapdos"] = {chance = 1000, corpse = 6074, health = 11000, maxhealth = 11000}, ["Moltres"] = {chance = 5000, corpse = 7330, health = 11000, maxhealth = 11000}, ["Mewtwo"] = {chance = 10000, corpse = 5973, health = 8500, maxhealth = 8500}, ["Mew"] = {chance = 10000, corpse = 2939, health = 7200, maxhealth = 7200}, ------------------------Shiny----------------------- ["Shiny Charizard"] = {chance = 500, corpse = 2954, health = 7200, maxhealth = 7200}, ["Shiny Magikarp"] = {chance = 180, corpse = 105, health = 920, maxhealth = 920}, ["Shiny Rattata"] = {chance = 100, corpse = 110, health = 900, maxhealth = 900}, ["Shiny Paras"] = {chance = 240, corpse = 116, health = 1400, maxhealth = 1400}, ["Shiny Oddish"] = {chance = 150, corpse = 115, health = 990, maxhealth = 990}, ["Shiny Zubat"] = {chance = 200, corpse = 114, health = 1200, maxhealth = 1600}, ["Shiny Tentacool"] = {chance = 500, corpse = 122, health = 0, maxhealth = 0}, ["Shiny Tentacruel"] = {chance = 500, corpse = 128, health = 0, maxhealth = 0}, ["Shiny Raticate"] = {chance = 500, corpse = 136, health = 0, maxhealth = 0}, ["Shiny Krabby"] = {chance = 500, corpse = 126, health = 0, maxhealth = 0}, ["Shiny Kingler"] = {chance = 500, corpse = 138, health = 0, maxhealth = 0}, ["Shiny Horsea"] = {chance = 500, corpse = 139, health = 0, maxhealth = 0}, ["Shiny Seadra"] = {chance = 500, corpse = 131, health = 0, maxhealth = 0}, ["Shiny Gyarados"] = {chance = 2000, corpse = 144, health = 18000, maxhealth = 18000}, ["Shiny Parasect"] = {chance = 500, corpse = 127, health = 0, maxhealth = 0}, ["Shiny Scyther"] = {chance = 500, corpse = 142, health = 0, maxhealth = 0}, ["Shiny Electabuzz"] = {chance = 500, corpse = 143, health = 0, maxhealth = 0}, ["Shiny Jynx"] = {chance = 500, corpse = 129, health = 0, maxhealth = 0}, ["Shiny Electrode"] = {chance = 500, corpse = 124, health = 0, maxhealth = 0}, ["Shiny Voltorb"] = {chance = 500, corpse = 125, health = 0, maxhealth = 0}, ["Shiny Raichu"] = {chance = 500, corpse = 140, health = 0, maxhealth = 0}, ["Shiny Venonat"] = {chance = 500, corpse = 130, health = 0, maxhealth = 0}, ["Shiny Venomoth"] = {chance = 500, corpse = 132, health = 0, maxhealth = 0}, ["Shiny Beedril"] = {chance = 500, corpse = 137, health = 0, maxhealth = 0}, ["Shiny Butterfree"] = {chance = 500, corpse = 133, health = 0, maxhealth = 0}, ["Shiny Venusaur"] = {chance = 500, corpse = 135, health = 10200, maxhealth = 10200}, ["Shiny Blastoise"] = {chance = 500, corpse = 134, health = 0, maxhealth = 0}, ["Shiny Farfetchd"] = {chance = 500, corpse = 119, health = 0, maxhealth = 0}, ["Shiny Grimer"] = {chance = 500, corpse = 123, health = 0, maxhealth = 0}, ["Shiny Muk"] = {chance = 500, corpse = 121, health = 0, maxhealth = 0}, ["Shiny Growlithe"] = {chance = 500, corpse = 117, health = 0, maxhealth = 0}, ["Shiny Arcanine"] = {chance = 500, corpse = 120, health = 0, maxhealth = 17000}, ["Shiny Dratini"] = {chance = 500, corpse = 118, health = 0, maxhealth = 0}, ["Shiny Abra"] = {chance = 500, corpse = 141, health = 0, maxhealth = 3620}, -----------------------------------Johto------------------------------ ["Aipom"] = {chance = 500, corpse = 11391, health = 3000, maxhealth = 3000}, ["Ampharos"] = {chance = 500, corpse = 11393, health = 3000, maxhealth = 3000}, ["Ariados"] = {chance = 500, corpse = 11394, health = 3000, maxhealth = 3000}, ["Azumarill"] = {chance = 500, corpse = 11395, health = 3000, maxhealth = 3000}, ["Bayleef"] = {chance = 500, corpse = 11396, health = 3000, maxhealth = 3000}, ["Bellossom"] = {chance = 500, corpse = 11397, health = 3000, maxhealth = 3000}, ["Blissey"] = {chance = 500, corpse = 11398, health = 3000, maxhealth = 3000}, ["Celebi"] = {chance = 500, corpse = 11399, health = 3000, maxhealth = 3000}, ["Chikorita"] = {chance = 500, corpse = 11400, health = 3000, maxhealth = 3000}, ["Chinchou"] = {chance = 500, corpse = 11401, health = 3000, maxhealth = 3000}, ["Cleffa"] = {chance = 500, corpse = 11402, health = 3000, maxhealth = 3000}, ["Corsola"] = {chance = 500, corpse = 11403, health = 3000, maxhealth = 3000}, ["Crobat"] = {chance = 500, corpse = 11404, health = 5500, maxhealth = 5500}, ["Croconaw"] = {chance = 500, corpse = 11405, health = 3000, maxhealth = 3000}, ["Cyndaquil"] = {chance = 500, corpse = 11406, health = 3000, maxhealth = 3000}, ["Delibird"] = {chance = 500, corpse = 11407, health = 3000, maxhealth = 3000}, ["Donphan"] = {chance = 500, corpse = 11408, health = 3000, maxhealth = 3000}, ["Dunsparce"] = {chance = 500, corpse = 11409, health = 3000, maxhealth = 3000}, ["Elekid"] = {chance = 500, corpse = 11410, health = 3000, maxhealth = 3000}, ["Entei"] = {chance = 500, corpse = 11411, health = 3000, maxhealth = 3000}, ["Espeon"] = {chance = 500, corpse = 11412, health = 3000, maxhealth = 3000}, ["Feraligatr"] = {chance = 500, corpse = 11413, health = 3000, maxhealth = 3000}, ["Flaaffy"] = {chance = 500, corpse = 11414, health = 3000, maxhealth = 3000}, ["Forretress"] = {chance = 500, corpse = 11415, health = 3000, maxhealth = 3000}, ["Furret"] = {chance = 500, corpse = 11416, health = 3000, maxhealth = 3000}, ["Gallade"] = {chance = 500, corpse = 11630, health = 3000, maxhealth = 3000}, ["Girafarig"] = {chance = 500, corpse = 11417, health = 3000, maxhealth = 3000}, ["Gligar"] = {chance = 500, corpse = 11418, health = 3000, maxhealth = 3000}, ["Granbull"] = {chance = 500, corpse = 11419, health = 3000, maxhealth = 3000}, ["Heracross"] = {chance = 500, corpse = 11420, health = 3000, maxhealth = 3000}, ["Hitmontop"] = {chance = 500, corpse = 11421, health = 3000, maxhealth = 3000}, ["Ho oh"] = {chance = 500, corpse = 11422, health = 3000, maxhealth = 3000}, ["Hoothoot"] = {chance = 500, corpse = 11423, health = 3000, maxhealth = 3000}, ["Hoppip"] = {chance = 500, corpse = 11424, health = 3000, maxhealth = 3000}, ["Houndoom"] = {chance = 500, corpse = 11425, health = 3000, maxhealth = 3000}, ["Houndor"] = {chance = 500, corpse = 11426, health = 3000, maxhealth = 3000}, ["Igglybuff"] = {chance = 500, corpse = 11427, health = 3000, maxhealth = 3000}, ["Jumpluff"] = {chance = 500, corpse = 11428, health = 3000, maxhealth = 3000}, ["Kingdra"] = {chance = 500, corpse = 11429, health = 3000, maxhealth = 3000}, ["Lanturn"] = {chance = 500, corpse = 11430, health = 3000, maxhealth = 3000}, ["Larvitar"] = {chance = 500, corpse = 11431, health = 3000, maxhealth = 3000}, ["Ledian"] = {chance = 500, corpse = 11432, health = 3000, maxhealth = 3000}, ["Ledyba"] = {chance = 500, corpse = 11433, health = 3000, maxhealth = 3000}, ["Lugia"] = {chance = 500, corpse = 11434, health = 3000, maxhealth = 3000}, ["Magby"] = {chance = 500, corpse = 11435, health = 3000, maxhealth = 3000}, ["Magcarbo"] = {chance = 500, corpse = 11436, health = 3000, maxhealth = 3000}, ["Mantine"] = {chance = 500, corpse = 11437, health = 3000, maxhealth = 3000}, ["Mareep"] = {chance = 500, corpse = 11438, health = 3000, maxhealth = 3000}, ["Marill"] = {chance = 500, corpse = 11439, health = 3000, maxhealth = 3000}, ["Meganium"] = {chance = 500, corpse = 11440, health = 3000, maxhealth = 3000}, ["Miltank"] = {chance = 500, corpse = 11441, health = 3000, maxhealth = 3000}, ["Misdreavus"] = {chance = 500, corpse = 11442, health = 3000, maxhealth = 3000}, ["Murkrow"] = {chance = 500, corpse = 11443, health = 3000, maxhealth = 3000}, ["Natu"] = {chance = 500, corpse = 11444, health = 3000, maxhealth = 3000}, ["Noctowl"] = {chance = 500, corpse = 11445, health = 3000, maxhealth = 3000}, ["Octillery"] = {chance = 500, corpse = 11446, health = 3000, maxhealth = 3000}, ["Phanpy"] = {chance = 500, corpse = 11447, health = 3000, maxhealth = 3000}, ["Pichu"] = {chance = 500, corpse = 11448, health = 3000, maxhealth = 3000}, ["Piloswine"] = {chance = 500, corpse = 11449, health = 3000, maxhealth = 3000}, ["Pineco"] = {chance = 500, corpse = 11450, health = 3000, maxhealth = 3000}, ["Politoed"] = {chance = 500, corpse = 11451, health = 3000, maxhealth = 3000}, ["Porygon2"] = {chance = 500, corpse = 11452, health = 3000, maxhealth = 3000}, ["Pupitar"] = {chance = 500, corpse = 11453, health = 3000, maxhealth = 3000}, ["Quaqsire"] = {chance = 500, corpse = 11454, health = 3000, maxhealth = 3000}, ["Quilava"] = {chance = 500, corpse = 11455, health = 3000, maxhealth = 3000}, ["Qwilfish"] = {chance = 500, corpse = 11456, health = 3000, maxhealth = 3000}, ["Raikou"] = {chance = 500, corpse = 11457, health = 3000, maxhealth = 3000}, ["Remoraid"] = {chance = 500, corpse = 11458, health = 3000, maxhealth = 3000}, ["Scizor"] = {chance = 500, corpse = 11459, health = 3000, maxhealth = 3000}, ["Shuckle"] = {chance = 500, corpse = 11460, health = 3000, maxhealth = 3000}, ["Skarmory"] = {chance = 500, corpse = 11462, health = 3000, maxhealth = 3000}, ["Skiploom"] = {chance = 500, corpse = 11463, health = 3000, maxhealth = 3000}, ["Slowking"] = {chance = 500, corpse = 11464, health = 3000, maxhealth = 3000}, ["Slugma"] = {chance = 500, corpse = 11465, health = 3000, maxhealth = 3000}, ["Smeargle"] = {chance = 500, corpse = 11466, health = 3000, maxhealth = 3000}, ["Smoochum"] = {chance = 2500, corpse = 11467, health = 3000, maxhealth = 3000}, ["Sneasel"] = {chance = 500, corpse = 11468, health = 3000, maxhealth = 3000}, ["Sentret"] = {chance = 1000, corpse = 11461, health = 3000, maxhealth = 3000}, ["Snubbull"] = {chance = 1500, corpse = 11469, health = 3000, maxhealth = 3000}, ["Spinarak"] = {chance = 1000, corpse = 11470, health = 3000, maxhealth = 3000}, ["Stantler"] = {chance = 500, corpse = 11471, health = 3000, maxhealth = 3000}, ["Steelix"] = {chance = 5000, corpse = 11472, health = 3000, maxhealth = 3000}, ["Sudowoodo"] = {chance = 2500, corpse = 11473, health = 3000, maxhealth = 3000}, ["Suicune"] = {chance = 500, corpse = 11474, health = 3000, maxhealth = 3000}, ["Sunflora"] = {chance = 500, corpse = 11475, health = 3000, maxhealth = 3000}, ["Sunkern"] = {chance = 500, corpse = 11476, health = 3000, maxhealth = 3000}, ["Swinub"] = {chance = 450, corpse = 11477, health = 3000, maxhealth = 3000}, ["Teddiursa"] = {chance = 500, corpse = 11478, health = 3000, maxhealth = 3000}, ["Togepi"] = {chance = 500, corpse = 11479, health = 3000, maxhealth = 3000}, ["Togetic"] = {chance = 6000, corpse = 11480, health = 3000, maxhealth = 3000}, ["Totodile"] = {chance = 600, corpse = 11481, health = 3000, maxhealth = 3000}, ["Typhlosion"] = {chance = 4000, corpse = 11482, health = 3000, maxhealth = 3000}, ["Tyranitar"] = {chance = 7000, corpse = 11483, health = 3000, maxhealth = 3000}, ["Tyrogue"] = {chance = 500, corpse = 11484, health = 3000, maxhealth = 3000}, ["Umbreon"] = {chance = 500, corpse = 11485, health = 3000, maxhealth = 3000}, ["Unown a"] = {chance = 500, corpse = 11486, health = 3000, maxhealth = 3000}, ["Unown b"] = {chance = 500, corpse = 11487, health = 3000, maxhealth = 3000}, ["Unown c"] = {chance = 500, corpse = 11488, health = 3000, maxhealth = 3000}, ["Unown d"] = {chance = 500, corpse = 11489, health = 3000, maxhealth = 3000}, ["Unown e"] = {chance = 500, corpse = 11490, health = 3000, maxhealth = 3000}, ["Unown f"] = {chance = 500, corpse = 11491, health = 3000, maxhealth = 3000}, ["Unown g"] = {chance = 500, corpse = 11492, health = 3000, maxhealth = 3000}, ["Unown h"] = {chance = 500, corpse = 11493, health = 3000, maxhealth = 3000}, ["Unown i"] = {chance = 500, corpse = 11494, health = 3000, maxhealth = 3000}, ["Unown j"] = {chance = 500, corpse = 11495, health = 3000, maxhealth = 3000}, ["Unown k"] = {chance = 500, corpse = 11496, health = 3000, maxhealth = 3000}, ["Unown l"] = {chance = 500, corpse = 11497, health = 3000, maxhealth = 3000}, ["Unown m"] = {chance = 500, corpse = 11498, health = 3000, maxhealth = 3000}, ["Unown n"] = {chance = 500, corpse = 11499, health = 3000, maxhealth = 3000}, ["Unown o"] = {chance = 500, corpse = 11500, health = 3000, maxhealth = 3000}, ["Unown p"] = {chance = 500, corpse = 11501, health = 3000, maxhealth = 3000}, ["Unown q"] = {chance = 500, corpse = 11502, health = 3000, maxhealth = 3000}, ["Unown r"] = {chance = 500, corpse = 11503, health = 3000, maxhealth = 3000}, ["Unown s"] = {chance = 500, corpse = 11504, health = 3000, maxhealth = 3000}, ["Unown t"] = {chance = 500, corpse = 11505, health = 3000, maxhealth = 3000}, ["Unown u"] = {chance = 500, corpse = 11506, health = 3000, maxhealth = 3000}, ["Unown v"] = {chance = 500, corpse = 11507, health = 3000, maxhealth = 3000}, ["Unown w"] = {chance = 500, corpse = 11508, health = 3000, maxhealth = 3000}, ["Unown x"] = {chance = 500, corpse = 11509, health = 3000, maxhealth = 3000}, ["Unown y"] = {chance = 500, corpse = 11510, health = 3000, maxhealth = 3000}, ["Ursaring"] = {chance = 500, corpse = 11512, health = 3000, maxhealth = 3000}, ["Wobbuffet"] = {chance = 500, corpse = 11513, health = 3000, maxhealth = 3000}, ["Wooper"] = {chance = 500, corpse = 11514, health = 3000, maxhealth = 3000}, ["Xatu"] = {chance = 500, corpse = 11515, health = 3000, maxhealth = 3000}, ["Yanma"] = {chance = 500, corpse = 11516, health = 3000, maxhealth = 3000}, ["Giratina"] = {chance = 1, corpse = 11633, health = 15000, maxhealth = 15000}, ["Palkia"] = {chance = 1, corpse = 11635, health = 15000, maxhealth = 15000}, ["Rayquaza"] = {chance = 1, corpse = 11637, health = 15000, maxhealth = 15000}, ["Primal Dialga"] = {chance = 1, corpse = 11638, health = 15000, maxhealth = 15000}, ["Dialga"] = {chance = 1, corpse = 11640, health = 15000, maxhealth = 15000}, } local description = "Contains a %pokename." local function ruim(params) if not isCreature(params.cid) then return true end end local function capturou(params) if not isCreature(params.cid) then return true end end function onUse(cid, item, frompos, item2, topos) local name = getItemNameById(item2.itemid) if item.itemid == 2147 then -- POKEBALL catchrate = 5 oncatch = 24 onfail = 23 oneffect = 45 bolabola = 2222 elseif item.itemid == 2642 then -- GREATBALL catchrate = 10 oncatch = 198 onfail = 197 oneffect = 46 bolabola = 2651 elseif item.itemid == 2645 then -- SUPERBALL catchrate = 15 oncatch = 202 onfail = 201 oneffect = 44 bolabola = 2653 elseif item.itemid == 2146 then -- ULTRABALL catchrate = 20 oncatch = 200 onfail = 199 oneffect = 47 bolabola = 2220 elseif item.itemid == 0 then -- MEGABALL catchrate = 40 oncatch = 0 onfail = 0 oneffect = 0 bolabola = 0 elseif item.itemid == 2644 then -- EXBALL(Saffari) catchrate = 10000 oncatch = 204 onfail = 203 oneffect = 43 bolabola = 2655 end local rate, effect, catch, fail, newid = (catchrate), oneffect, oncatch, onfail, bolabola for i,x in pairs(pokes) do if getItemNameById(item2.itemid):find(i:lower()) then if getItemIdByName(name) == pokes.corpse then if cid ~= getItemAttribute(item2.uid, "corpseowner") and isInArray({1,8}, getPlayerGroupId(cid)) then doPlayerSendCancel(cid, "Sorry, you didn't catch that pokemon.") return true end doRemoveItem(item.uid, 1) doRemoveItem(item2.uid, 1) local pegar = math.random(1, x.chance) if pegar <= 1*(rate) then doSendMagicEffect(topos, catch) doSendDistanceShoot(getCreaturePosition(cid), {x=getCreaturePosition(cid).x,y=getCreaturePosition(cid).y+2,z=getCreaturePosition(cid).z}, effect) local nas = { ["%%pokename"] = i } for i,x in pairs(nas) do if description:find(i) then description = description:gsub(i, x) end end if not string.find(getPlayerStorageValue(cid, 54842), ""..i..",") then doPlayerAddSoul(cid, 1) setPlayerStorageValue(cid, 54842, getPlayerStorageValue(cid, 54842)..""..i..", ") end if getPlayerFreeCap(cid) <= 0.99 then item = doCreateItemEx(newid-1) doItemSetAttribute(item, "ballId", newid) doItemSetAttribute(item, "ballId2", pokeballs[getPokeballType(newid)].off) doItemSetAttribute(item, "effect", pokeballs[getPokeballType(newid)].effect) doItemSetAttribute(item, "morta", "no") doItemSetAttribute(item, "poke", params.poke) doItemSetAttribute(item, "nome", params.nome) doItemSetAttribute(item, "description", params.description) doCureAllStatus(item) doGoBackSetCooldownInCatch(item, i) doItemSetAttribute(item, "boost", 0) doItemSetAttribute(item, "pokes", name) setPokemonFeedd(item, 100) if isIconeSystem(params.cid) then doTransformItem(item, icons.on) end doPlayerSendMailByName(getCreatureName(params.cid), item, 1) doPlayerSendTextMessage(cid, 27, "Congratulations, you caught a "..i.."!") doPlayerSendTextMessage(cid, 27, "Since you are already holding six pokemons, this pokeball has been sent to your depot.") else item = doCreateItemEx(params.ball) doItemSetAttribute(item, "poke", params.poke) doItemSetAttribute(item, "nome", params.nome) doItemSetAttribute(item, "ballId", newid) doItemSetAttribute(item, "ballId2", pokeballs[getPokeballType(newid)].off) doItemSetAttribute(item, "effect", pokeballs[getPokeballType(newid)].effect) doItemSetAttribute(item, "morta", "no") doItemSetAttribute(item, "description", params.description) doPlayerAddItemEx(params.cid, item, true) doTransformItem(item, newid) doPlayerSendTextMessage(cid, 27, "Congratulations, you caught a "..i.."!") doGoBackSetCooldownInCatch(item, i) doItemSetAttribute(item, "boost", 0) doItemSetAttribute(item, "pokes", name) setPokemonFeedd(item, 100) doCureAllStatus(item) if isIconeSystem(cid) then doTransformItem(item, icons.on) end end if #getCreatureSummons(cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 178) else doSendMagicEffect(getThingPos(cid), 178) end end local description = "Contains a "..i.."." local poke1 = "This is "..i.."'s pokeball. HP = ["..x.health.."/"..x.maxhealth.."]" addEvent(capturou, 4000, {cid = cid, poke = poke1, nome = i, description = description, ball = 2219, letter = 2597}) else doPlayerSendTextMessage(params.cid, 27, "Sorry, the pokemon escaped.") if #getCreatureSummons(params.cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(params.cid)[1]), 166) else doSendMagicEffect(getThingPos(params.cid), 166) end end addEvent(ruim, 4000, {cid = cid}) doSendMagicEffect(topos, fail) doSendDistanceShoot(getCreaturePosition(cid), {x=getCreaturePosition(cid).x,y=getCreaturePosition(cid).y+2,z=getCreaturePosition(cid).z}, effect) end end end return true end
  6. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Sem script não tem nada que ninguém possa fazer.
  7. Não existe essa opção, se você quer isso, terá que ter um script em cada bank npc.
  8. local distance = 15 -- distancia que anda (em sqm) local speed = 100 -- milisegundos entre cada passo (qnt menor = mais rapido) local invisible = createConditionObject(CONDITION_GAMEMASTER, (speed * distance) + 50, false, GAMEMASTER_INVISIBLE local outfit = createConditionObject(CONDITION_INVISIBLE, (speed * distance) + 50, false) local function isWalkable(pos, creature, proj, pz)-- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function onWalk(cid) local poslook = getCreatureLookPosition(cid) poslook.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE if isWalkable(poslook, false, false, false) then if not isCreature(getThingfromPos(poslook).uid) then doMoveCreature(cid, getPlayerLookDirection(cid)) doSendMagicEffect(getPlayerPosition(cid), 10) return true else doSendMagicEffect(getPlayerPosition(cid), 10) return true end else doSendMagicEffect(getPlayerPosition(cid), 31) end end function onCastSpell(cid, var) if isPlayerPzLocked(cid) == FALSE then if exhaustion.check(cid, 13118) == TRUE then doPlayerSendCancel(cid, "Podera usar novamente dentro de 15 segundos.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end addEvent(mc1,500,cid) exhaustion.set(cid, 13118, 15.0) doAddCondition(cid, invisible) doAddCondition(cid, outfit) for i = 0, distance do addEvent(onWalk, speed * i,cid) end end return true end
  9. Eu não entendi absolutamente nada nesse tópico, se quiser minha ajuda, ou a de qualquer outra pessoa, tente explicar melhor.
  10. Provavelmente seja algum NPC que está com alguma outfit bugada, ou o seu items.otb está corruPTo.
  11. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    return da erro no login.lua? sério? sabia dessa não.. pq?
  12. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    koe koe koe koe @Comedinha if getPlayerStorageValue(cid, 13857) < 0 then return setPlayerStorageValue(cid, 13857, 1) and doPlayerAddPremiumDays(cid, 3) end
  13. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Adiciona no login.lua. IWEUHTWIEUHTWEIU @Comedinha if getPlayerStorageValue(cid, 13857) < 0 then setPlayerStorageValue(cid, 13857, 1) doPlayerAddPremiumDays(cid, 3) end Com certeza!! Porém existe uma coisa, crítica. E críticas faz a gente melhor sempre.. Então, se você não sabe aceitar críticas, então gtfo.
  14. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    @lenardo88 Qual é teu problema para ficar falando assim?? Para que utilizar um script de 21 linhas, se você pode utilizar um de 12, e muito mais simples? local k = { storage = 13857, -- storage que vai armazenar se o player ja ganhou vip ou não days = 3 -- quantos dias vip } function onLogin(cid) if getPlayerStorageValue(cid, k.storage) < 0 then setPlayerStorageValue(cid, k.storage, 1) doPlayerAddPremiumDays(cid, k.days) end return true end
  15. vankk postou uma resposta no tópico em Playground (Off-topic)
    Por favor, explique um pouco melhor, mas acho que você quiser dizer isso, me corrija se eu estiver errado.. Eu fiz um serviço para uma pessoa, e essa pessoa me pagou etc.. e então essa pessoa postou o script que eu criei.. Sério isso? edit @Comedinha Para que uma vista grossa assim? A pessoa que você puniu, ela leu esse tópico? Algo do tipo? Não tem como saber, então não precisa ser tão rigoroso assim.
  16. vankk postou uma resposta no tópico em Playground (Off-topic)
    @Comedinha Bruno, você sabe que eu respeito muito você, por isso que estou conversando sobre isso com você, e também tenho conhecimento que você tem mais cabeça que qualquer um nesse fórum, então dito isso. Eu acho que o fórum não deveria ter essa regra.. O fórum não deveria se meter em uma coisa dessa, soa como uma ditadura, ao meu ver.. Acho que essa questão deveria ser repensada, porque pior que o fórum está, com pessoas sangue sugas, não pode ficar
  17. vankk postou uma resposta no tópico em Playground (Off-topic)
    @Guilherme @Comedinha @Renato @Matk Eu até esqueci de falar.. A um tempo atrás eu criei um tópico me oferecendo de freelancer, e simplesmente meu tópico foi reprovado, e após isso, deletado.. Porque algum superior falou para o Wakon que era contra as regras do fórum. Isso é um absurdo!! A venda de servidores deveria ser diferente de serviços. Você prestar serviço é totalmente diferente de você vender um servidor!!! Acho que serviços como Freelancer o TibiaKing deveria deixar passar, é um absurdo isso. Poderia estar vendendo drogas, poderia estar me prostituindo, poderia estar matando, mas não estou querendo apenas vender scripts p comprar uma máquina para um servidor..
  18. Source edit
  19. vankk postou uma resposta no tópico em Playground (Off-topic)
    @Comedinha O playground sim respeita as regras do fórum, obviamente, mas eu acreditava que playground era apenas um lugar para distração, pelo menos é o que está na descrição dessa seção, porém, acredito eu que estava enganado, deveria existir uma reunião entre os superiores do fórum para mudar a descrição dessa seção, e remover a parte de distração, porque se é uma área de distração está entre as caractéristicas: falta de atenção, irreflexão, esquecimento, inadvertência, passatempo, divertimento, recreação. E tais palavras podem ser utilizadas para brincadeiras, e por sinal, vocês estão levando muito tão a sério o que seria uma seção de recreação, acho que eu deveria ficar agradecido por isso. E por sinal eu não possuo nenhum atrito com a Larissa, porém, o que eu não quero/não vou tolerar é aturar uma mulher com os hormônios se oscilando muito e que chega para mim falando: "não me interessa onde estamos" sendo que fui educado ao utilizar minhas palavras, como estou sendo agora.
  20. em events/player.lua adicione isso em onMoveItem if toPosition ~= nil if Tile(toPosition):getItemCount() >= 6 then self:sendCancelMessage("Sorry, not possible.") return false end end
  21. vankk postou uma resposta no tópico em Playground (Off-topic)
    Deveria interessar para pelo uma coisa você fazer no fórum
  22. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Reporta os bugs para o @Sekk ou simplesmente aprenda PHP, ou crie um tópico pedindo ajuda e espere alguém lhe ajudar. Você tem essas três opções, boa sorte.
  23. vankk postou uma resposta no tópico em Playground (Off-topic)
    Não, não acabaria com o Open Tibia se você cobrasse pelas coisas, pelo simples motivo, NINGUÉM VIVE DE REPUTAÇÃO E AGRADECIMENTO, talvez muitos não saibam disso, e também você está se valorizando, valorizando seu trabalho, o esforço que você colocou em algo. As vezes a pessoa está precisando fazer dinheiro para quaisquer motivos, porém ela podia estar vendendo drogas, se prostituindo, mas não, ela está querendo fazer scripts para pessoas folgadas, que só pedem, e tem dinheiro para bancar tais script que o @xWhiteWolf mencionou acima. Enfim, eu sou totalmente a favor da venda de scripts. ## Editado para a senhora @Azhaurn Senhora @Azhaurn não sei se você viu em qual área estamos, mas eu irei lhe informar, estamos no Playground, tudo que é falado no playground não é para ser levado a sério, a final é uma seção para distração, entretanto que meu post foi totalmente com base de brincadeira, que entretanto foi com um linguajar que eu não utilizo Tenha uma boa noite.
  24. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    O que seria um Geisior? Todos websites Gesior no TibiaKing estão funcionando sem bugs, ou se tiver com bem fáceis de ser arrumado, sugiro que aprenda a arrumar tais bugs.

Informação Importante

Confirmação de Termo