Ir para conteúdo

phuzil

Membro
  • Registro em

  • Última visita

Posts postados por phuzil

  1. Postado ·

    Editado por phuzil (veja o histórico de edições)

    Boa noite galera, to voltando a jogar o global, quero saber de quem está atualizado sobre os bots, qual o melhor atualmente? Windbot ou Ibot? quando parei de jogar estava para lançar o Ibot++ (ibot plus), mas também percebi que tem o windbot e quero saber qual o mais recomendado? sei que todos dão bans se usados de forma exagerado. Mais qual o mais indicado?

  2. Postado ·

    Editado por phuzil (veja o histórico de edições)

    Boa tarde galera, seguinte consegui um script bem da hora aqui no tk, ele teleporta o player para o templo mas a um tempo já venho tentando colocar tempo nele, exemplo quero que o player só consiga usar ele a cada 30 minutos e não to conseguindo, alguém pode ajudar?

     

    Script

     

     

    function onUse(cid, item, frompos, item2, topos)
     local config = {
      pz = false, -- false = não precisa estar em protect zone
      battle = true, -- true = não pode ter battle
      remover = false, -- true = remove o item
     }
     local cidade = getTownTemplePosition(getPlayerTown(cid))
     local posicao = getCreaturePosition(cid)
     
     if config.pz == true and getTilePzInfo(posicao) == FALSE then
      doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Você precisa estar em protection zone pra poder teleportar.")
     elseif config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then
      doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battle pra poder teleportar.")
     else
      if config.remover == true then
       doRemoveItem(item.uid)
      end
      doSendMagicEffect(posicao, CONST_ME_POFF)
      doTeleportThing(cid, cidade)
      doSendMagicEffect(cidade, CONST_ME_TELEPORT)
     end
     return true
    end

  3. Postado

    Em que parte do login eu coloco o registerCreatureEvent(cid, "Idle")?

     

     

    function onLogin(cid)
    accountManager = "Account Manager"                       
    managerCounter = 0

       for i, player in ipairs(getOnlinePlayers()) do
          if accountManager:lower() == player:lower() then             
          managerCounter = managerCounter + 1
          end
       end
     
       if managerCounter >= 3 then
          return false
       end

        local accountManager = getPlayerAccountManager(cid)
        if(accountManager == MANAGER_NONE) then
        elseif(accountManager == MANAGER_NAMELOCK) then
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
        elseif(accountManager == MANAGER_ACCOUNT) then
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
        else
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
        end

        if getPlayerPremiumDays(cid) <= 0 and getPlayerStorageValue(cid,100000) == 1 then
            doPlayerSetTown(cid, 2)
            setPlayerStorageValue(cid,100000,2)
            doTeleportThing(cid,{x=72, y=25, z=8})
            doPlayerPopupFYI(cid, "Your premium time has expired and you've been teleported to Main Land. You're now alived to Deheon.")
            if getPlayerSex(cid) == 1 then
                doCreatureChangeOutfit(cid,{lookType = 128, lookHead = 78, lookBody = 68, lookLegs = 58, lookFeet = 95, lookAddons = 0})
            elseif getPlayerSex(cid) ~= 1 then
                doCreatureChangeOutfit(cid,{lookType = 136, lookHead = 78, lookBody = 68, lookLegs = 58, lookFeet = 95, lookAddons = 0})
            end
        end


        if(not isPlayerGhost(cid)) and (isVip(cid)) then
            doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN)
        elseif(not isPlayerGhost(cid)) then
            doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
        end

        local lastLogin, str = getPlayerLastLoginSaved(cid)
            
        if(lastLogin >= 0) then
            str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
        else
            str = str .. " Please choose your outfit."
            doPlayerSendOutfitWindow(cid)
        end
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
        
        local loss = getConfigValue('deathLostPercent')
        if(loss ~= nil) then
            doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
        end

        registerCreatureEvent(cid, "TempleTeleporter") --VIP
        registerCreatureEvent(cid, "VipCheck") --VIP

        registerCreatureEvent(cid, "advance")
        registerCreatureEvent(cid, "bp")
        registerCreatureEvent(cid, "Achievements")
        registerCreatureEvent(cid, "fullmh")
            registerCreatureEvent(cid, "expvip")
        registerCreatureEvent(cid, "primeiro")
        registerCreatureEvent(cid, "killcount")
        registerCreatureEvent(cid, "playeradvance")
        registerCreatureEvent(cid, "radvance")
        registerCreatureEvent(cid, "counter")

        registerCreatureEvent(cid, "Grizzly_Adams")

        registerCreatureEvent(cid, "demonOakLogout")
        registerCreatureEvent(cid, "demonOakDeath")
        registerCreatureEvent(cid, "demonOakAttack")

        registerCreatureEvent(cid, "Mail")
        registerCreatureEvent(cid, "GuildMotd")
        registerCreatureEvent(cid, "Idle")
        registerCreatureEvent(cid, "SkullCheck")

        registerCreatureEvent(cid, "ReportBug")
        registerCreatureEvent(cid, "Zaoarena")
        registerCreatureEvent(cid, "ArenaKill")

        registerCreatureEvent(cid, "Tirecz")

        registerCreatureEvent(cid, "Inquisition")  
        registerCreatureEvent(cid, "inquisitionPortals")
        registerCreatureEvent(cid, "arenaPortals")
     







     -- first login ~ Outfit Windows
        if getPlayerStorageValue(cid, 1228512) == -1 then
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Please choose your outfit.")
            doPlayerSendOutfitWindow(cid)
             setPlayerStorageValue(cid,1228512, 1)
        end
        
        -- if he did not make full arena 1 he must start from zero
        if getPlayerStorageValue(cid, 42309) < 1 then
            for i = 42300, 42309 do
                setPlayerStorageValue(cid, i, 0)
            end
        end
            
        -- if he did not make full arena 2 he must start from zero
        if getPlayerStorageValue(cid, 42319) < 1 then
            for i = 42310, 42319 do
                setPlayerStorageValue(cid, i, 0)
            end
        end
        -- if he did not make full arena 3 he must start from zero
        if getPlayerStorageValue(cid, 42329) < 1 then
            for i = 42320, 42329 do
                setPlayerStorageValue(cid, i, 0)
            end
        end
        if getPlayerStorageValue(cid, 42355) == -1 then
            setPlayerStorageValue(cid, 42355, 0) -- did not arena level
        end
        setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
        setPlayerStorageValue(cid, 42352, 0) -- is not in arena  
        return true
    end

  4. Postado ·

    Editado por phuzil (veja o histórico de edições)

    Bom dia galera, É seguinte no meu serve se o player de exit nos trainers ele fica la ate o serve ser reiniciado, já tentei mexer no  idleWarningTime, idleKickTime e não esta funcionando , ja tentei tbm mexer no tile dos trainers e tbm nada, Queria algo que kick o player em qualquer lugar do serve se ele ficar 15 sem se mexer alguém pode ajudar?

     

    idleWarningTime = 10 * 60 * 1000
    idleKickTime = 15 * 60 * 1000

  5. Postado

    Bom dia galera, seguinte já rodei minha talkactions pra tirar esse duplicate registered e não consigo, algúem sabe como consigo arrumar? vou postar ela abaixo da foto.

     

    15dszvb.jpg

     

     

    Minha Talkaction

     

     

    <?xml version="1.0" encoding="UTF-8"?>
    <talkactions>
        <!-- Outros , arrumar -->
        
        

        
        <!-- VIP System  
        
        <talkaction log="yes" words="/promotion;!promotion" event="script" value="vipgratis.lua"/>-->
        <talkaction log="yes" words="/adddays" access="5" event="script" value="VIP_System/adddays.lua"/>
        <talkaction log="yes" words="/removedays" access="5" event="script" value="VIP_System/removedays.lua"/>

        <!-- Gods -->
            <talkaction words="!addon" script="AddonDoll.lua"/>
        <talkaction words="/cleanhouses" access="5" event="script" value="cleanhouses.lua"/>
        <talkaction words="/bccolor" access="5"  event="script" value="broadcastincolors.lua" />
        <talkaction log="yes" words="/skill;/addskill" access="4" event="script" value="skill.lua"/>
        <talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
        <talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
        <talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
        <talkaction log="yes" access="4" words="/mode" event="script" value="mode.lua"/>

        <!-- Community Managers -->
        <talkaction log="yes" access="4" words="/bot" script="bot.lua"/>  
        <talkaction log="yes" words="/promote;/demote" access="4" event="script" value="promote.lua"/>
        <talkaction log="yes" words="/attr" access="4" event="function" value="thingProporties"/>
        <talkaction log="yes" words="/shutdown" access="4" event="script" value="shutdown.lua"/>
        <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="3" event="function" value="ghost"/>
        <talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/>
        <talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
        <talkaction log="yes" words="/t" access="3" event="script" value="teleporttown.lua"/>
        <talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>
        <talkaction log="yes" words="/goto" access="3" event="script" value="teleportto.lua"/>
        <talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
        <talkaction log="yes" words="/kick" access="3" event="script" value="kick.lua"/>
        <talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
        <talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/>
        <talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/>
        <talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/>
        <talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/>
        <talkaction log="yes" words="/save" access="3" event="script" value="save.lua"/>
        <talkaction log="yes" words="/clean" access="3" event="script" value="clean.lua"/>
        <talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/>
        <talkaction log="yes" access="3" words="/wp" event="script" value="waypoints.lua"/>

        <!-- Senior Tutors -->
        <talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
        <talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/>
        <talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/>
        <talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>
        <talkaction words="!software;/software" access="2" event="function" value="software"/>

        <!-- Tutors -->
        <talkaction log="yes" words="/baninfo;!baninfo" access="1" event="function" value="banishmentInfo"/>
        <talkaction log="yes" access="1" words="/pos;!pos" event="script" value="position.lua"/>

        <!-- War Join/Invite/Balance -->
        <talkaction words="/war" channel="0" event="script" value="war.lua" desc="(Guild channel command) War management."/>
        <talkaction words="/balance" channel="0" event="script" value="balance.lua" desc="(Guild channel command) Balance management."/>

        <!-- Players -->
        <talkaction words="!buyaol;/buyaol;!aol;/aol" script="aol.lua" />
        <!-- <talkaction words="!buybless;/buybless;!bless;/bless" script="bless.lua" />  FEITO POR MODS AGORA -->
        <talkaction words="/commands;!commands;" event="script" value="Suporte\Commands.lua"/>
        <talkaction words="/online;!online;" event="script" value="Suporte\Online.lua"/>
        <talkaction words="/uptime;!uptime" event="script" value="Suporte\Uptime.lua"/>
        <talkaction words="/rank;!rank" event="script" value="Suporte\Highscores.lua"/>
        <talkaction words="/deathlist;!deathlist" event="script" value="Suporte\MortListage.lua"/>
        <talkaction words="/serverinfo;!serverinfo" event="script" value="Suporte\Information.lua"/>
        <!-- <talkaction words="!partyoutfit;/partyoutfit" event="script" value="Suporte\Outfit Guild.lua"/>
        <talkaction words="!guildoutfit;/guildoutfit" event="script" value="Suporte\Outfit.lua"/> -->
        <talkaction words="/speed;!speed;" event="script" value="Suporte\Speed.lua"/>

        <talkaction words="!calc;/calc;!calculadora;/calculadora" event="script" value="Suporte\Calculator.lua" />
        <talkaction words="!horas;!hours;/horas;/hours" event="script" value="Suporte\Hour.lua"/>
        
        

        <!-- Houses -->

        <talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
        <talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
        <talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
        <talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
            <talkaction words="!buyhouse;/buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
            <talkaction words="!sellhouse;/sellhouse" filter="word-spaced" event="function" value="houseSell"/>
            <talkaction words="!leavehouse;/leavehouse" filter="word-spaced" event="script" value="leavehouse.lua"/>

    </talkactions>
     

     

Informação Importante

Confirmação de Termo