Tudo que citizen postou
-
(Resolvido)Como criar Telepor que quando entrar ganha um pokemon.
Algum adm pode fechar o tópico
-
(Resolvido)Como criar Telepor que quando entrar ganha um pokemon.
aguardando
-
(Resolvido)Como criar Telepor que quando entrar ganha um pokemon.
Ele não recebeu nada só veio essa mensagem data/movements/scripts/pokeinicial.lua:21: attempt to call global 'addPokeToPlayer' (a nil value) [05/02/2017 20:54:07] stack traceback: [05/02/2017 20:54:07] data/movements/scripts/pokeinicial.lua:21: in function <data/movements/scripts/pokeinicial.lua:10> escription: [05/02/2017 21:00:22] data/movements/scripts/pokeinicial.lua:21: attempt to call global 'addPokeToPlayer' (a nil value) [05/02/2017 21:00:22] stack traceback: [05/02/2017 21:00:22] data/movements/scripts/pokeinicial.lua:21: in function <data/movements/scripts/pokeinicial.lua:10> [05/02/2017 21:01:00] Reloaded movements. [Error - MoveEvents Interface] [05/02/2017 21:03:20] data/movements/scripts/pokeinicial.lua:onStepIn [05/02/2017 21:03:20] Description: [05/02/2017 21:03:20] data/movements/scripts/pokeinicial.lua:21: attempt to call global 'addPokeToPlayer' (a nil value) [05/02/2017 21:03:20] stack traceback: [05/02/2017 21:03:20] data/movements/scripts/pokeinicial.lua:21: in function <data/movements/scripts/pokeinicial.lua:10>
-
(Resolvido)Como criar Telepor que quando entrar ganha um pokemon.
local starterpokes = { ["Bulbasaur"] = {x = 1072, y = 1012, z = 10}, ["Squirtle"] = {x = 1072, y = 1013, z = 10}, ["Charmander"] = {x = 1072, y = 1014, z = 10}, ["Turtwig"] = {x = 1072, y = 1016, z = 10}, ["Piplup"] = {x = 1072, y = 1017, z = 10}, ["Chimchar"] = {x = 1072, y = 1018, z = 10}, } local level = 5 local extrastr = 1.5 local btype = "normal" function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) > 1 then return true end local pokemon = "" for a, b in pairs (starterpokes) do if isPosEqualPos(topos, b) then pokemon = a end end if pokemon == "" then return true end local gender = getRandomGenderByName(pokemon) local mypoke = getPokemonStatus(pokemon) if not mypoke then return true end local offense = mypoke.off * level * extrastr local defense = mypoke.def * level * extrastr local speed = mypoke.agi * level * extrastr local vit = mypoke.vit * level * extrastr local spatk = mypoke.spatk * level * extrastr local happy = 180 local leveltable = getPokemonExperienceTable(pokemon) doPlayerAddItem(cid, 2152, 100) doPlayerAddItem(cid, 12344, 3) doPlayerAddItem(cid, 2392, 20) doPlayerAddItem(cid, 12345, 20) local item = doCreateItemEx(2219) doItemSetAttribute(item, "poke", pokemon) doItemSetAttribute(item, "hp", 1) doItemSetAttribute(item, "level", level) doItemSetAttribute(item, "exp", leveltable[level]) doItemSetAttribute(item, "nextlevelexp", leveltable[level+1] - leveltable[level]) doItemSetAttribute(item, "offense", offense) doItemSetAttribute(item, "defense", defense) doItemSetAttribute(item, "speed", speed) doItemSetAttribute(item, "vitality", vit) doItemSetAttribute(item, "specialattack", spatk) doItemSetAttribute(item, "happy", happy) doItemSetAttribute(item, "gender", gender) doItemSetAttribute(item, "description", "Contains a "..pokemon..".") doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".") doItemSetAttribute(item, "firstpoke", getCreatureName(cid)) doPlayerAddItemEx(cid, item, true) doTransformItem(item, pokeballs[btype].on) doPlayerSendTextMessage(cid, 27, "You got your first pokemon! You also received some pokeballs to help you in your way.") doPlayerSendTextMessage(cid, 27, "Don\'t forget to use your pokedex on every undiscovered pokemon!") doSendMagicEffect(getThingPos(cid), 29) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doSendMagicEffect(getThingPos(cid), 27) doSendMagicEffect(getThingPos(cid), 29) return TRUE end no action coloquei: <action itemid="1740" event="script" value="starter.lua"/>
-
(Resolvido)Como criar Telepor que quando entrar ganha um pokemon.
Olá!! Quero fazer um um Kit Starter. Quando o Char pisar em cima do teleport ele ganha um pokemon e alguns itens, como: Pokebolas, potions, revives, etc. Segue a imagem do que estou fazendo... Gostaria de saber como faço pra acontecer isso.
-
Como mudo o catch do Pokemon Centurion V5
local ballcatch = { [2394] = {cr = 40, on = 24, off = 23, ball = 11826, send = 47}, --normal ball [2391] = {cr = 50, on = 198, off = 197, ball = 11832, send = 48}, --great ball [2393] = {cr = 60, on = 202, off = 201, ball = 11835, send = 46}, --super ball [2392] = {cr = 70, on = 200, off = 199, ball = 11829, send = 49}, --ultra ball [556] = {cr = 80, on = 187, off = 176, ball = 554, send = 45}, --master ball } function onUse(cid, item, frompos, item3, topos) local item2 = getTopCorpse(topos) if item2 == null then return true end if getItemAttribute(item2.uid, "catching") == 1 then return true end local name = string.lower(getItemNameById(item2.itemid)) name = string.gsub(name, "fainted ", "") name = string.gsub(name, "defeated ", "") local x = pokecatches[doCorrectPokemonName(name)] if not x then return true end local owner = getItemAttribute(item2.uid, "corpseowner") if owner and isCreature(owner) and isPlayer(owner) and cid ~= owner and isInArray({1,9}, getPlayerGroupId(cid)) then doPlayerSendCancel(cid, "Você não pode capturar este pokemon.") return true end local catchinfo = {} catchinfo.rate = ballcatch[item.itemid].cr catchinfo.catch = ballcatch[item.itemid].on catchinfo.fail = ballcatch[item.itemid].off catchinfo.newid = ballcatch[item.itemid].ball catchinfo.name = doCorrectPokemonName(name) catchinfo.topos = topos catchinfo.chance = x.chance doSendDistanceShoot(getThingPos(cid), topos, ballcatch[item.itemid].send) doRemoveItem(item.uid, 1) local d = getDistanceBetween(getThingPos(cid), topos) addEvent(doSendPokeBall, d * 70 + 100 - (d * 14) , cid, catchinfo, false, false) addEvent(doSendMagicEffect, (d * 70 + 100 - (d * 14)) - 100, topos, 3) return true end
-
Como mudo o catch do Pokemon Centurion V5
Olá, gente! Eu estou com um problema na hora de tentar mudar o rate do catch: local ballcatch = { [2394] = {cr = 40, on = 24, off = 23, ball = 11826, send = 47}, --normal ball [2391] = {cr = 50, on = 198, off = 197, ball = 11832, send = 48}, --great ball [2393] = {cr = 60, on = 202, off = 201, ball = 11835, send = 46}, --super ball [2392] = {cr = 70, on = 200, off = 199, ball = 11829, send = 49}, --ultra ball [556] = {cr = 80, on = 187, off = 176, ball = 554, send = 45}, --master ball }
- Pokemon League (BETA) - Vagas na Equipe