LO
poketibia

[BUG] ao usar comando /t e h"saffron

Por Loouis, 23 de ago. de 2015 em Scripts

otserv
12
1.8k
LoouisL
23 de agosto de 2015 às 17:34

Gente o meu servidor de é poketibia e ultimamente eu tou com um bug no server que não consigo usar nem o comando:

- H"saffron

-/t

E quando o player morre não consegue mais logar no char aparece essa msg como na print

Print: http://m.imgur.com/oigCH6M

Erro que da no logger do Server: http://imgur.com/0a3izn7

E ao escolher entre o charmander,squirtle e bulbasaur ao clicar no baú ganho todos os itens mais não sou teletransportado para o cp de saffron

Editado Agosto 23 por Loouis

MudrockM
23 de agosto de 2015 às 17:38

verifique na sua config.lua na parte de

X=
Y=
Z=

se esta correto com a do templo, e se no script também esta

LoouisL
23 de agosto de 2015 às 17:39

Que script?E ao escolher entre o charmander,squirtle e bulbasaur ao clicar no baú ganho todos os itens mais não sou teletransportado para o cp de saffron

Editado Agosto 23 por Loouis

SkyLighS
23 de agosto de 2015 às 20:20

Se não me engano para resolver esse problema do player basta, abrir o rme aperta Ctrl + T e na opção Temple Position colocar a pos do templo

LoouisL
23 de agosto de 2015 às 21:07

Pra criar uma city tem que apertar ctrl+t e por o nome da city mais tem como dar tp apartir do nome da city?

GabrieltxuG
23 de agosto de 2015 às 21:12

posta ai seu tele.lua

LoouisL
24 de agosto de 2015 às 00:05

Como faço pra postar?

SkyLighS
24 de agosto de 2015 às 00:10

lol copia e cola aqui

LoouisL
24 de agosto de 2015 às 11:56

Gente estou sem pc mais tenho umas prints do tele.lua serve?

MudrockM
24 de agosto de 2015 às 12:51

Gente estou sem pc mais tenho umas prints do tele.lua serve?

 

Não, tem que ser o arquivo, pois para realizar a edição teríamos que reescrever todo o script ;)

LoouisL
28 de agosto de 2015 às 12:29

local etele = 9499

local cdtele = 1

 

local config = {

premium = false, -- se precisa ser premium account (true or false)

battle = false -- 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 = "Ascordbia", id = 15, sto = 8975410},

[14] = {name = "Hammlin", id = 16, sto = 8975420},

[15] = {name = "Shamouti", id = 17, sto = 8975430},

}

 

function onSay(cid, words, param)

 

if #getCreatureSummons(cid) == 0 then

doPlayerSendCancel(cid, "You need a pokemon to use teleport.")

return true

end

 

if not isInArray(poke, getCreatureName(getCreatureSummons(cid)[1])) then

return true

end

 

if getPlayerStorageValue(cid, 22545) == 1 then --golden arena

doPlayerSendCancel(cid, "You can't do that while the golden arena!")

return true

end

 

if getPlayerStorageValue(cid, 212124) >= 1 then --alterado v2.6

return doPlayerSendCancel(cid, "You can't do it with a pokemon with mind controlled!")

end

 

if getPlayerStorageValue(cid, 52480) >= 1 then

return doPlayerSendCancel(cid, "You can't do it while a duel!") --alterado v2.6

end

 

if exhaustion.get(cid, etele) and exhaustion.get(cid, etele) > 0 then

local tempo = tonumber(exhaustion.get(cid, etele)) or 0

local min = math.floor(tempo)

doPlayerSendCancel(cid, "Your pokemon is tired, wait "..getStringmytempo(tempo).." to teleport again.")

return true

end

 

if config.premium and not isPremium(cid) then

doPlayerSendCancel(cid, "Only premium members are allowed to use teleport.")

return true

end

 

if config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) then

doPlayerSendCancel(cid, "Your pokemon can't concentrate during battles.")

return true

end

 

if (param == '') then

local str = ""

str = str .. "Places to go :\n\nHouse\n"

for a = 1, #places do

str = str..""..places[a].name.."\n"

end

doShowTextDialog(cid, 7416, str)

return true

end

 

local 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 = 0

 

if string.lower(param) == "house" then

 

if not getHouseByPlayerGUID(getPlayerGUID(cid)) then

doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You don't own a house.")

return true

end

 

telepos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid)))

myplace = "our home"

 

else

 

for x = 1, #places do

if string.find(string.lower(places[x].name), string.lower(param)) then

townid = places[x].id

myplace = places[x].name

end

end

 

if myplace == "" then

doPlayerSendCancel(cid, "That place doesn't exist.")

return true

end

 

end

 

if myplace ~= "" and townid > 0 then

telepos = getTownTemplePosition(townid)

end

 

if getDistanceBetween(getThingPos(cid), telepos) <= 15 then

doPlayerSendCancel(cid, "You are too near to the place you want to go!")

return true

end

 

doSendMagicEffect(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 true

end

 

 

 

 

 

Up

Alguém?

Editado Agosto 26 por Loouis

1 mês depois...
LumusL
30 de setembro de 2015 às 17:30

Tópico Movido
Este tópico foi movido de "OTServSuporte OTServSuporte Scripting"
para "OTServSuporte OTServSuporte ScriptingPedidos e dúvidas resolvidos - Scripting".