Jump to content

Pedido Script de virar para o Alvo Não vira se o alvo tiver em diagonal


Go to solution Solved by Vodkart,

Recommended Posts

Encontrei um script aqui no tibia king, ele vira o personagem para o alvo, mas se o alvo estiver na diagonal ele acaba não virando, alguém consegue colocar esse script para viara para o alvo se o alvo estiver na diagonal fazendo um favor

Spoiler

function onAttack(cid, target)
	doCreatureSetLookDirection(cid, getDirectionTo(getCreaturePosition(cid), getCreaturePosition(target)))
	return true
end

TFS 0.4

Link to post
Share on other sites

  • Solution

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

Dota System 8.6 Com Buffs Automáticos + MAPA (100%) - PVP

Link para Downloadhttps://www.4shared.com/rar/SMta8CQ8fi/Dota_Venda.html?

 

[+]--------------------------------------[+]-------------------------------------------[+]

 

DISCORDvodkart#6090

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By thunmin
      .Qual servidor ou website você utiliza como base? 
      Source é 1.3x
      Qual o motivo deste tópico? 
      Gostaria de saber como o item que já existe no meu otserv id 2006 possa se transformar em uma Stamina Potion Refil que enche a stamina completa, eu agradeço muito!
    • By aeliseu
      Alguem tem a script !pz que mostra quanto tempo falta para sair o pk dos players? to precisando muito!
       
       
    • By Jeyzenr
      ¡Salve!
       
      Galera que estou tentando encontrar um script pra "Held Y-Ghost" parecido a PxG pra meu server.
       
      Se alguém souber como o posso fazer ou onde o conseguiria, agradeço.
       
      Obg. 
    • By Doidodepeda
      Galera preciso da ajuda de voces. Um start skill ( onde o player nasce com tanto quantidade de skills )
       
      Uso sqlite tfs 0.4
       
    • By aeliseu
      Estou com uma script para curar full mana e full vida assim que upar eu instalei certinho estava funcionando porém parou depois que adicionei para começar com 10 dias de premium no login.lua ( ultima script) me ajudem!!!!
       
      A script é fullmh.lua
      -----------------------------------------------------------
      NO login.lua ESTÁ ASSIM : 
      local config = {
          useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
      }
      function onLogin(cid)
          
      local text = "- Welcome to Tibera-World the best global server, here's a list of commands:\n!bless             -> Get blessed by the Gods\n!exp             -> List of exp to advance for another level\n!frags             -> See your current frags\nCtrl+R             -> Report bugs to staff\n- Visit our webpage constantly."
      local useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
      local loss = getConfigValue('deathLostPercent')
          if(loss ~= nil) then
              doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
          end
          local lastLogin = getPlayerLastLoginSaved(cid)
          if(lastLogin > 0) then
              doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, text)
          else
              doPlayerSendOutfitWindow(cid)
          end
          
          if(not isPlayerGhost(cid)) then
              doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
          end
          
          registerCreatureEvent(cid, "Mail")
          registerCreatureEvent(cid, "GuildMotd")
          registerCreatureEvent(cid, "Idle")
          if(config.useFragHandler) then
              registerCreatureEvent(cid, "SkullCheck")
          end
          
          registerCreatureEvent(cid, "inquisitionPortals")
          registerCreatureEvent(cid, "countKill")
          registerCreatureEvent(cid, "SaveReportBug")
          --registerCreatureEvent(cid, "ReportBug")
          registerCreatureEvent(cid, "AdvanceSave")
          registerCreatureEvent(cid, "kill")
            registerCreatureEvent(cid, "reward")
          --registerCreatureEvent(cid, "30")
          registerCreatureEvent(cid, "ArenaKill")
          registerCreatureEvent(cid, "ExpVip")
          registerCreatureEvent(cid, "killbossesbroadcast")
          registerCreatureEvent(cid, "EndVip")
          registerCreatureEvent(cid, "PythiusDead")
          registerCreatureEvent(cid, "zombieevent")
              registerCreatureEvent(cid, "Achievements")
              registerCreatureEvent(cid, "premcheck")
              registerCreatureEvent(cid, "Frags")
          registerCreatureEvent(cid, "demonOakLogout")
          registerCreatureEvent(cid, "demonOakDeath")
          registerCreatureEvent(cid, "demonOakComplete")
          registerCreatureEvent(cid, "PlayerDeath")
          registerCreatureEvent(cid, "BountyHunter")
              registerCreatureEvent(cid, "Addons")
              registerCreatureEvent(cid, "fullmh")
          if (InitArenaScript ~= 0) then
          InitArenaScript = 1
              for i = 42300, 42309 do
                  setGlobalStorageValue(i, 0)
                  setGlobalStorageValue(i+100, 0)
              end
          end
          if getPlayerStorageValue(cid, 42309) < 1 then
              for i = 42300, 42309 do
                  setPlayerStorageValue(cid, i, 0)
              end
          end
          if getPlayerStorageValue(cid, 42319) < 1 then
              for i = 42310, 42319 do
                  setPlayerStorageValue(cid, i, 0)
              end
          end
          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)
          end
          setPlayerStorageValue(cid, 42350, 0)
          setPlayerStorageValue(cid, 42352, 0)
          end
          
          function onLogin(cid)
          local days = 10
          if db.getResult("SELECT `premiumgift` FROM `accounts` WHERE `id` = "..getPlayerAccountId(cid)):getDataInt("premiumgift") <= 0 then
              doPlayerAddPremiumDays(cid, days)
              doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You account received "..days.." Premium!!")
              db.executeQuery("UPDATE `accounts` SET `premiumgift` = 1 WHERE `id` = "..getPlayerAccountId(cid))
          end
          return true
      end
       
      -------------------------------------------------------
      EM creaturesscripts.xml ESTÁ ASSIM:
       
      <?xml version="1.0" encoding="UTF-8"?>
      <creaturescripts>
          
          <event type="login" name="PlayerLogin" event="script" value="login.lua"/>
          <event type="death" name="PlayerDeath" event="script" value="playerdeath.lua"/>
          <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
              <event type="login" name="PremCheck" script="premcheck.lua"/>
              <event type="login" name="Welcome" script="welcome.lua"/>
          <event type="receivemail" name="Mail" event="script" value="mail.lua"/>
          <!--event type="reportbug" name="SaveReportBug" script="reportbug.lua"/-->
          <event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>
          <event type="logout" name="demonOakLogout" event="script" value="demonOakLogout.lua"/>
          <event type="death" name="demonOakDeath" event="script" value="demonOakDeath.lua"/>
          <event type="textedit" name="demonOakComplete" event="script" value="demonOakComplete.lua"/>
          <event type="advance" name="reward" event="script" value="reward45.lua"/>
          <event type="kill" name="ArenaKill" event="script" value="arenakill.lua"/>
          <event type="death" name="monster2" event="script" value="monster2.lua"/>
          <event type="death" name="zaoPortals" event="script" value="zaoPortals.lua"/>
              <event type="kill" name="Frags" event="script" value="frags.lua"/> 
              <event type="login" name="Ip" event="script" value="playerip.lua"/>
          <!-- Inquisition Full Quest -->
          <event type="kill" name="inquisitionPortals" script="Inquisition.lua"/>
          <event type="kill" name="BountyHunter" event="script" value="kill.lua"/>
          <event type="kill" name="killbossesbroadcast" event="script" value="killbossesbroadcast.lua"/>
          <!-- Firewalker Boots -->
          <event type="death" name="PythiusDead" script="pythius_the_rotten.lua" />
          <!-- Idle -->
          <event type="think" name="Idle" event="script" value="idle.lua"/>
          <!-- Dota -->
          <event type="death" name="ga1" event="script" value="ga1.lua"/>
          <event type="death" name="ga2" event="script" value="ga2.lua"/>
              <event type="death" name="ga3" event="script" value="ga3.lua"/>
              <event type="death" name="gv1" event="script" value="gv1.lua"/>
              <event type="death" name="gv2" event="script" value="gv2.lua"/>
          <event type="death" name="gv3" event="script" value="gv3.lua"/>
          <!-- Zombie Event -->
          <event type="statschange" name="zombieevent" event="script" value="zombievent.lua"/>
          
          <!-- VIP EXP -->
          <event type="login" name="ExpVip" script="vipexp.lua"/>
          
          <!-- End VIP -->
          <event type="login" name="EndVip" event="script" value="endvip.lua"/>
          <!-- WoE -->
          <event type="death" name="empe_broken" event="script" value="empe_broken.lua"/>
          <event type="death" name="pre_empes" event="script" value="pre_empes.lua"/>
          <event type="statschange" name="empe_dmg" event="script" value="empe_dmg.lua"/>
          <event type="login" name="reg_vs_guard" event="script" value="vs_guard.lua"/>
          <event type="statschange" name="vs_guard" event="script" value="vs_guard.lua"/>
          <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
          <event type="advance" name="fullmh" event="script" value="fullmh.lua"/>    
      </creaturescripts>
       
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...

Important Information

Confirmação de Termo