Olá queria saber como arrumar o tp no server pda editado pelo bolz ele fala que eu não fui na nurse da cidade mesmo ja tendo passado lá
Olá queria saber como arrumar o tp no server pda editado pelo bolz ele fala que eu não fui na nurse da cidade mesmo ja tendo passado lá
vá em npc/script/heal
Abra o Heal e coloque o id do quadrado onde a Nurse da cidade está.
Acho que é isso.
~~~~~~~~~~~~~~~~~~~~
Depois fale hi e já poderá teleportar.
bom, ou você faz isso que o cara de cima falou, ou faz que nem eu, tira esse sistema de ter que falar com a nurse
meu script:
local poke = {"Shiny Mr. Mime", 'Mew', 'Mewtwo', 'Abra', 'Kadabra', 'Alakazam', 'Drowzee', 'Hypno', 'Mr. Mime', 'Porygon', 'Shiny Abra', 'Shiny Alakazam',
'Shiny Hypno', 'Porygon2'} --alterado v1.9local etele = 9499local cdtele = 300local config = {premium = false, -- se precisa ser premium account (true or false)battle = true -- se precisa estar sem battle (true). Se colocar false, poderá usar teleport no meio de batalhas}local places = {[1] = {name = "Saffron", id = 1, sto = 897530},[2] = {name = "Cerulean", id = 2, sto = 897531},[3] = {name = "Lavender", id = 3, sto = 897532},[4] = {name = "Fuchsia", id = 4, sto = 897533},[5] = {name = "Celadon", id = 5, sto = 897534},[6] = {name = "Viridian", id = 6, sto = 897535}, --alterado v1.7[7] = {name = "Vermilion", id = 7, sto = 897536},[8] = {name = "Pewter", id = 8, sto = 897537},[9] = {name = "Pallet", id = 9},[10] = {name = "Cinnabar", id = 10, sto = 897538},[11] = {name = "Snow", id = 11, sto = 897539},[12] = {name = "Golden", id = 14, sto = 897540},[13] = {name = "Outland North", id = 15, sto = 897541},[14] = {name = "Hamlin", id = 19, sto = 897542},[15] = {name = "Shamouti", id = 18, sto = 897543},[16] = {name = "Mandarim", id = 17, sto = 897544},}function onSay(cid, words, param)if #getCreatureSummons(cid) == 0 thendoPlayerSendCancel(cid, "You need a pokemon to use teleport.")return trueendif not isInArray(poke, getCreatureName(getCreatureSummons(cid)[1])) thenreturn 0endif getPlayerStorageValue(cid, Agatha.stoIni) >= 1 and getPlayerStorageValue(cid, Agatha.stoIni) < 50 then --alterado v1.9doPlayerSendCancel(cid, "You can't do that here!")return trueendif getPlayerStorageValue(cid, 22545) == 1 then --golden arenadoPlayerSendCancel(cid, "You can't do that while the golden arena!")return trueendif getPlayerStorageValue(cid, 212124) >= 1 then --alterado v1.6return doPlayerSendCancel(cid, "You can't do it with a pokemon with mind controlled!")endif getPlayerStorageValue(cid, 52480) >= 1 thenreturn doPlayerSendCancel(cid, "You can't do it while a duel!") --alterado v1.6endif getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 thenreturn doPlayerSendCancel(cid, "You can't do it while in the PVP Zone!") --alterado v1.7endif exhaustion.get(cid, etele) and exhaustion.get(cid, etele) > 0 thenlocal tempo = tonumber(exhaustion.get(cid, etele)) or 0local min = math.floor(tempo)doPlayerSendCancel(cid, "Your pokemon is tired, wait "..getStringmytempo(tempo).." to teleport again.")return trueendif config.premium and not isPremium(cid) thendoPlayerSendCancel(cid, "Only premium members are allowed to use teleport.")return trueendif config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) thendoPlayerSendCancel(cid, "Your pokemon can't concentrate during battles.")return trueendif (param == '') thenlocal str = ""str = str .. "Places to go :\n\nHouse\n"for a = 1, #places dostr = str..""..places[a].name.."\n"enddoShowTextDialog(cid, 7416, str)return trueendlocal item = getPlayerSlotItem(cid, 8)local nome = getPokeballName(item.uid)local summon = getCreatureSummons(cid)[1]local lastppos = getThingPos(cid)local lastspos = getThingPos(summon)local telepos = {}local myplace = ""local townid = 0local citySto = 0 --alterado v1.7if string.lower(param) == "house" thenif not getHouseByPlayerGUID(getPlayerGUID(cid)) thendoPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You don't own a house.")return trueendtelepos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid)))myplace = "our home"elsefor x = 1, #places doif string.find(string.lower(places[x].name), string.lower(param)) thentownid = places[x].idmyplace = places[x].namecitySto = places[x].sto or -1 --alterado v1.7endendif myplace == "" thendoPlayerSendCancel(cid, "That place doesn't exist.")return trueendendif myplace ~= "" and townid > 0 thentelepos = getTownTemplePosition(townid)endif getDistanceBetween(getThingPos(cid), telepos) <= 15 thendoPlayerSendCancel(cid, "You are too near to the place you want to go!")return trueenddoSendMagicEffect(getThingPos(summon), 29)doSendMagicEffect(getThingPos(cid), 29)doTeleportThing(cid, telepos, false)local pos2 = getClosestFreeTile(cid, getPosByDir(getThingPos(cid), SOUTH))doTeleportThing(summon, pos2, false)doSendMagicEffect(getThingPos(cid), 29)doCreatureSay(cid, ""..nome..", teleport to "..myplace.."!", 1)doCreatureSay(cid, ""..nome..", teleport to "..myplace.."!", 1, false, 0, lastppos)doCreatureSay(summon, "TELEPORT!", TALKTYPE_MONSTER)doCreatureSay(summon, "TELEPORT!", TALKTYPE_MONSTER, false, 0, lastspos)doCreatureSetLookDir(cid, SOUTH)doCreatureSetLookDir(summon, SOUTH)doSendMagicEffect(getThingPos(summon), CONST_ME_TELEPORT)exhaustion.set(cid, etele, cdtele)return trueend
bom, ou você faz isso que o cara de cima falou, ou faz que nem eu, tira esse sistema de ter que falar com a nurse
meu script:
local poke = {"Shiny Mr. Mime", 'Mew', 'Mewtwo', 'Abra', 'Kadabra', 'Alakazam', 'Drowzee', 'Hypno', 'Mr. Mime', 'Porygon', 'Shiny Abra', 'Shiny Alakazam',
'Shiny Hypno', 'Porygon2'} --alterado v1.9local etele = 9499local cdtele = 300local config = {premium = false, -- se precisa ser premium account (true or false)battle = true -- se precisa estar sem battle (true). Se colocar false, poderá usar teleport no meio de batalhas}local places = {[1] = {name = "Saffron", id = 1, sto = 897530},[2] = {name = "Cerulean", id = 2, sto = 897531},[3] = {name = "Lavender", id = 3, sto = 897532},[4] = {name = "Fuchsia", id = 4, sto = 897533},[5] = {name = "Celadon", id = 5, sto = 897534},[6] = {name = "Viridian", id = 6, sto = 897535}, --alterado v1.7[7] = {name = "Vermilion", id = 7, sto = 897536},[8] = {name = "Pewter", id = 8, sto = 897537},[9] = {name = "Pallet", id = 9},[10] = {name = "Cinnabar", id = 10, sto = 897538},[11] = {name = "Snow", id = 11, sto = 897539},[12] = {name = "Golden", id = 14, sto = 897540},[13] = {name = "Outland North", id = 15, sto = 897541},[14] = {name = "Hamlin", id = 19, sto = 897542},[15] = {name = "Shamouti", id = 18, sto = 897543},[16] = {name = "Mandarim", id = 17, sto = 897544},}function onSay(cid, words, param)if #getCreatureSummons(cid) == 0 thendoPlayerSendCancel(cid, "You need a pokemon to use teleport.")return trueendif not isInArray(poke, getCreatureName(getCreatureSummons(cid)[1])) thenreturn 0endif getPlayerStorageValue(cid, Agatha.stoIni) >= 1 and getPlayerStorageValue(cid, Agatha.stoIni) < 50 then --alterado v1.9doPlayerSendCancel(cid, "You can't do that here!")return trueendif getPlayerStorageValue(cid, 22545) == 1 then --golden arenadoPlayerSendCancel(cid, "You can't do that while the golden arena!")return trueendif getPlayerStorageValue(cid, 212124) >= 1 then --alterado v1.6return doPlayerSendCancel(cid, "You can't do it with a pokemon with mind controlled!")endif getPlayerStorageValue(cid, 52480) >= 1 thenreturn doPlayerSendCancel(cid, "You can't do it while a duel!") --alterado v1.6endif getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 thenreturn doPlayerSendCancel(cid, "You can't do it while in the PVP Zone!") --alterado v1.7endif exhaustion.get(cid, etele) and exhaustion.get(cid, etele) > 0 thenlocal tempo = tonumber(exhaustion.get(cid, etele)) or 0local min = math.floor(tempo)doPlayerSendCancel(cid, "Your pokemon is tired, wait "..getStringmytempo(tempo).." to teleport again.")return trueendif config.premium and not isPremium(cid) thendoPlayerSendCancel(cid, "Only premium members are allowed to use teleport.")return trueendif config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) thendoPlayerSendCancel(cid, "Your pokemon can't concentrate during battles.")return trueendif (param == '') thenlocal str = ""str = str .. "Places to go :\n\nHouse\n"for a = 1, #places dostr = str..""..places[a].name.."\n"enddoShowTextDialog(cid, 7416, str)return trueendlocal item = getPlayerSlotItem(cid, 8)local nome = getPokeballName(item.uid)local summon = getCreatureSummons(cid)[1]local lastppos = getThingPos(cid)local lastspos = getThingPos(summon)local telepos = {}local myplace = ""local townid = 0local citySto = 0 --alterado v1.7if string.lower(param) == "house" thenif not getHouseByPlayerGUID(getPlayerGUID(cid)) thendoPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You don't own a house.")return trueendtelepos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid)))myplace = "our home"elsefor x = 1, #places doif string.find(string.lower(places[x].name), string.lower(param)) thentownid = places[x].idmyplace = places[x].namecitySto = places[x].sto or -1 --alterado v1.7endendif myplace == "" thendoPlayerSendCancel(cid, "That place doesn't exist.")return trueendendif myplace ~= "" and townid > 0 thentelepos = getTownTemplePosition(townid)endif getDistanceBetween(getThingPos(cid), telepos) <= 15 thendoPlayerSendCancel(cid, "You are too near to the place you want to go!")return trueenddoSendMagicEffect(getThingPos(summon), 29)doSendMagicEffect(getThingPos(cid), 29)doTeleportThing(cid, telepos, false)local pos2 = getClosestFreeTile(cid, getPosByDir(getThingPos(cid), SOUTH))doTeleportThing(summon, pos2, false)doSendMagicEffect(getThingPos(cid), 29)doCreatureSay(cid, ""..nome..", teleport to "..myplace.."!", 1)doCreatureSay(cid, ""..nome..", teleport to "..myplace.."!", 1, false, 0, lastppos)doCreatureSay(summon, "TELEPORT!", TALKTYPE_MONSTER)doCreatureSay(summon, "TELEPORT!", TALKTYPE_MONSTER, false, 0, lastspos)doCreatureSetLookDir(cid, SOUTH)doCreatureSetLookDir(summon, SOUTH)doSendMagicEffect(getThingPos(summon), CONST_ME_TELEPORT)exhaustion.set(cid, etele, cdtele)return trueend
po irmão ms eu substituo oque?? com esse script ai?
PDA Edited by Bolz\data\talkactions\scripts\tele.lua
"O fracasso é a oportunidade de se começar de novo inteligentemente"