Ir para conteúdo

Loouis

Cavaleiro
  • Total de itens

    151
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Posts postados por Loouis

  1. Olá galera do Xtibia... estou criando um otserv de poketibia base cyan aqui, mas estou com um leve problema que não sei resolver... os revive do meu servidor só podem ser usados quando o personagem esta parado, sim só pode usar parado!!... queria que pudesse usar o revive correndo sabe.. uma pessoa me disse que tem que tirar o "exausted" oque é isso? como faço pra tirar

    Up

  2. Tirei as aspas e deu certo mas...

    [08/01/2016 08:07:58] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/teleportd.lua:10: unfinished string near '"Você precisa estar sem battler pra poder teleportar.)'
    [08/01/2016 08:07:58] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/teleportd.lua)
    [08/01/2016 08:07:58] data/talkactions/scripts/teleportd.lua:10: unfinished string near '"Você precisa estar sem battler pra poder teleportar.)'

  3. function onSay(cid, words, param)

    local lugar = {x=2296, y=1476, z=6}
    local level = 200
    local battle = false


    ------------------- não mexa
    if battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == true then
    doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder teleportar.)
    return true
    end
    if getPlayerLevel(cid) == level then
    doTeleportThing(cid, lugar)
    doPlayerSendTextMessage(cid, 22, "Você foi teleportado")
    else
    doPlayerSendTextMessage(cid, 22, "Você não é lvl 200")
    end
    return true
    end

     

    TALLCATIONS:

    <?xml version="1.0" encoding="UTF-8"?>

    <talkactions>


    <talkaction words="/writeTable" access="5" event="script" value="writeTable.lua"/>

    <talkaction words="/reloadCDs" case-sensitive="no" event="script" value="cdbar.lua"/>
    <talkaction words="!partyexp" event="script" value="partyexp.lua"/>
    <talkaction words="/golden" event="script" value="GoldenArena.lua"/>
    <talkaction words="!task" script="task.lua"/>
    <talkaction words="!pokeballs" script="pokeballs.lua"/>
    <talkaction words="!dive" event="script" value="!dive.lua"/>
    <talkaction words="!back" event="script" value="!back.lua"/>
    <talkaction words="h"phenac" script="teleportd.lua"/>
    <talkaction words="!rank" script="ranking.lua" />
    <talkaction words="!salvar;/!save" script="saveyourchar.lua"/>
    <talkaction words="#getSto#" event="script" value="talkClan.lua"/>
    <talkaction words="#f#ightmode" event="script" value="fightMode.lua"/>

    <talkaction log="yes" words="/addskill" access="4" event="function" value="addSkill"/>

    <talkaction words="/cb" access="4" event="script" value="createpokeball.lua"/>

    <talkaction log="yes" words="/muted" access="3" event="script" value="mutePlayer2.lua"/>

    <talkaction words="/boostmachine" access="4" event="script" value="boostmachine.lua"/>

    <talkaction words="/addvip" access="4" event="script" value="addvip.lua"/>

    <talkaction words="/ccxml" access="4" event="script" value="createcxml.lua"/>

    <talkaction words="/updatestats" access="4" event="script" value="updatestatistics.lua"/>

    <talkaction words="/gpbm" access="4" event="script" value="searchmove.lua"/>

    <talkaction log="yes" access="6" words="/giveitem" event="script" value="giveitem.lua"/>

    <talkaction words="/makemonsters" access="4" event="script" value="makemonsters.lua"/>

    <talkaction words="/go" access="4" event="script" value="t.lua"/>

    <talkaction log="yes" words="/attr" access="4" event="function" value="thingProporties"/>

    <talkaction log="yes" words="/serverdiag" access="4" event="function" value="diagnostics"/>

    <talkaction log="yes" words="/closeserver" access="4" event="script" value="closeopen.lua"/>

    <talkaction log="yes" words="/openserver" access="4" event="script" value="closeopen.lua"/>

    <talkaction log="yes" words="/promote;/demote" access="4" event="script" value="promote.lua"/>

    <talkaction log="yes" words="/shutdown" access="4" event="script" value="shutdown.lua"/>

    <talkaction log="yes" access="4" words="/mode" event="script" value="mode.lua"/>

    <talkaction words="/addpremium;/removedays;/checkdays" access="4" event="script" value="premiumtalk.lua"/>

    <talkaction words="#getGym#" event="script" value="talkGym.lua"/>

    <talkaction words="!ta;/ta" access="4" event="script" value="createitemall.lua"/>

    <talkaction words="/alltemple" access="4" event="script" value="todosparaotemplo.lua"/>

    <talkaction log="yes" words="/spy;!spy" access="2" event="script" value="spy.lua"/>

    <talkaction words="/querodar" access="6" hide="yes" event="script" value="additem.lua"/>




    <!-- Community Managers -->

    <talkaction log="yes" words="/s" access="4" event="script" value="summon.lua"/>

    <talkaction log="yes" words="/n" access="4" event="script" value="creature.lua"/>

    <talkaction log="yes" words="/m" access="4" event="script" value="creature.lua"/>

    <talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/>

    <talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/>

    <talkaction log="yes" words="/newtype" access="4" event="script" value="newtype.lua"/>

    <talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>

    <talkaction log="yes" words="/owner" access="4" event="script" value="owner.lua"/>

    <talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>

    <talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/>

    <talkaction log="yes" words="/i" access="4" event="script" value="createitem.lua"/>

    <talkaction access="4" words="/z" event="script" value="magiceffect.lua"/>

    <talkaction access="4" words="/x" event="script" value="animationeffect.lua"/>

    <talkaction access="4" words="/y" event="script" value="animatedtext.lua"/>

    <talkaction log="yes" words="/bc" access="4" event="script" value="broadcastclass.lua"/>

    <talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/>


    <!-- Gamemasters -->

    <talkaction log="yes" words="/ghost" access="4" event="function" value="ghost"/>

    <talkaction log="yes" words="/squelch" access="4" event="script" value="gamemaster.lua"/>

    <talkaction log="yes" words="/cliport" access="4" event="script" value="gamemaster.lua"/>

    <talkaction log="yes" words="/up" access="4" event="script" value="teleportfloor.lua"/>

    <talkaction log="yes" words="/down" access="4" event="script" value="teleportfloor.lua"/>

    <talkaction log="yes" words="/c" access="4" event="script" value="teleporthere.lua"/>

    <talkaction log="yes" words="/goto" access="4" event="script" value="teleportto.lua"/>

    <talkaction log="yes" words="/a" access="4" event="script" value="teleporttiles.lua"/>

    <talkaction log="yes" words="/kick" access="4" event="script" value="kick.lua"/>

    <talkaction log="yes" words="/send" access="4" event="script" value="teleportsend.lua"/>

    <talkaction log="yes" words="/unban" access="4" event="script" value="unban.lua"/>

    <talkaction log="yes" words="/town" access="4" event="script" value="teleporttown.lua"/>


    <talkaction log="yes" words="/save" access="4" event="script" value="save.lua"/>

    <talkaction log="yes" words="/clean" access="4" event="script" value="clean.lua"/>

    <talkaction log="yes" words="/reports" access="4" event="script" value="reports.lua"/>

    <talkaction log="yes" words="/mc" access="4" event="script" value="multicheck.lua"/>

    <talkaction log="yes" access="4" words="/wp" event="script" value="waypoints.lua"/>


    <!-- Senior Tutors -->

    <talkaction log="yes" words="/notations" access="4" event="script" value="notations.lua"/>

    <talkaction log="yes" words="/info" access="4" event="script" value="playerinfo.lua"/>

    <talkaction log="yes" words="/gethouse" access="4" event="script" value="gethouse.lua"/>



    <!-- Tutors -->

    <talkaction log="yes" words="/baninfo" access="4" event="function" value="banishmentInfo"/>

    <talkaction log="yes" words="/pos" event="script" value="position.lua"/>

    <talkaction log="yes" words="/t" access="2" event="script" value="teleportmaster.lua"/>

    <talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>


    <!-- Players -->

    <talkaction words="!online" event="script" value="online.lua"/>


    <talkaction words="!uptime" event="script" value="uptime.lua"/>

    <talkaction words="!q" event="script" value="money.lua"/>
    <talkaction words="/commands" event="script" value="commands.lua"/>


    <talkaction words="tn" case-sensitive="no" hide="yes" event="script" value="directions.lua"/>


    <talkaction words="!taunt" event="script" value="!taunt.lua"/>


    <talkaction words="t1" case-sensitive="no" hide="yes" event="script" value="directions.lua"/>


    <talkaction words="te" case-sensitive="no" hide="yes" event="script" value="directions.lua"/>


    <talkaction words="t2" case-sensitive="no" hide="yes" event="script" value="directions.lua"/>


    <talkaction words="ts" case-sensitive="no" hide="yes" event="script" value="directions.lua"/>


    <talkaction words="t3" case-sensitive="no" hide="yes" event="script" value="directions.lua"/>


    <talkaction words="tw" case-sensitive="no" hide="yes" event="script" value="directions.lua"/>


    <talkaction words="t4" case-sensitive="no" hide="yes" event="script" value="directions.lua"/>


    <talkaction words=".h" case-sensitive="no" hide="yes" event="script" value="hold pos.lua"/>


    <talkaction words="!h" event="script" value="tele.lua"/>
    <talkaction words="/h" event="script" value="tele.lua"/>
    <talkaction words="h" event="script" filter="quotation" value="tele.lua"/>
    <talkaction words="!up" case-sensitive="no" event="script" value="flyup.lua"/>
    <talkaction words="h1" case-sensitive="no" event="script" value="flyup.lua"/>
    <talkaction words="!down" case-sensitive="no" event="script" value="flydown.lua"/>
    <talkaction words="h2" case-sensitive="no" event="script" value="flydown.lua"/>
    <talkaction words="m1" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m2" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m3" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m4" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m5" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m6" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m7" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m8" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m9" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m10" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m11" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="m12" case-sensitive="no" event="script" value="move1.lua"/>
    <talkaction words="!cd" case-sensitive="no" event="script" value="cd.lua"/>
    <talkaction words="/cd" case-sensitive="no" event="script" value="cd.lua"/>
    <talkaction words="!love" case-sensitive="no" event="script" value="love.lua"/>
    <talkaction words="!check" case-sensitive="no" event="script" value="check.lua"/>
    <talkaction words="/dex" case-sensitive="no" event="script" value="pokedex.lua"/>
    <event type="logout" name="lfa" register = "1" event="script" value="afl.lua"/>
    <talkaction words="!dex" case-sensitive="no" event="script" value="pokedex.lua"/>
    <talkaction words="!code64" case-sensitive="no" event="script" value="cdbar.lua"/>
    <talkaction words="/goaction" case-sensitive="no" event="script" value="cdbar.lua"/>
    <talkaction words="/pokeread" case-sensitive="no" event="script" value="cdbar.lua"/>
    <talkaction log="yes" words="/rename" access="4" event="script" value="account.lua"/>
    <talkaction words="/aloot" hide="yes" event="script" value="aloot.lua"/>
    <talkaction words="/clan" hide="yes" event="script" value="clan.lua"/>
    <talkaction log = "yes" words = "!revert" hide="yes" event = "script" value = "dittorevert.lua"/>



    <!-- Houses -->

    <talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>

    <talkaction words="!leave" filter="word-spaced" event="script" value="leavehouse.lua"/>


    <!-- Guilds -->

    <talkaction words="!createguild" event="function" value="guildCreate"/>

    <talkaction words="!joinguild" event="function" value="guildJoin"/>


    <!-- (Deprecated) Redirect old '/' to '!' -->

    <talkaction words="/online" hide="yes" event="script" value="online.lua"/>

    <talkaction words="/uptime" hide="yes" event="script" value="uptime.lua"/>

    <talkaction log="yes" access="4" hide="yes" words="!pos" event="script" value="position.lua"/>
    </talkactions>

  4. qual script vc quer?

    dropStone.lua:

    local effect = 169 --by brun123 --alterado v1.9 \/
    local function func(cid, position, corpseid, effect)
    if not isCreature(cid) then return true end
    local corpse = getTileItemById(position, corpseid).uid
    if corpse <= 1 then return end
    if not isContainer(corpse) then return true end
    for slot = 0, (getContainerSize(corpse)-1) do
    local item = getContainerItem(corpse, slot)
    if item.uid <= 1 then return end
    if isStone(item.itemid) then
    return doSendMagicEffect(position, effect)
    end
    end
    end
    function onKill(cid, target, lastHit)
    if not ehMonstro(target) then return true end
    local corpse = getMonsterInfo(getCreatureName(target)).lookCorpse
    addEvent(func, 5, getCreatureSummons(cid)[1], getThingPos(target), corpse, effect)
    return true
    end
  5. adicionei um efeito no meu server que ao dropar stone, aparece uma seta em cima da corpse do pokemon que dropou igual pxg, mais a seta aparece muito longe da corpse muito pra cima

    Alguem pode me ajudar? à ajustar a seta.

    post-379570-0-94150100-1446652730_thumb.png

  6. 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?

  7. 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

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...