Ir para conteúdo
  • Cadastre-se

HOTKEYS Anti-KS (Não atacar o monstro de outro player)


Posts Recomendados

local r = 5 -- Range. 
local safelist = {'Bubble', 'Eternal Oblivion'} -- The bot WILL KS this players. Add more to this if you want. 
table.insert(safelist, name) -- Do not edit it. 
local ppos = {} 
local pinfo = _getcreatures("psf") 
local cinfo = _getcreatures("msf") 

for a = 1, pinfo.count do 
local ab=a-1 
if not table.find(safelist, pinfo[ab].name) then 
table.insert(ppos, {x = pinfo[ab].x, y = pinfo[ab].y}) 
end 
end 

for b = 1, cinfo.count do 
local ignore = false 
local bb=b-1 
if cinfo[bb].id ~= target.id then 
for i = 1, #ppos do 
local difx, dify = ppos[i].x - cinfo[bb].x, ppos[i].y - cinfo[bb].y 
if math.abs(difx) <= r and math.abs(dify) <= r then 
ignore = true 
if cinfo[bb].ignored == false then 
ignorecreature(cinfo[bb].id,true) 
stopattack() 
end 
break 
end 
end 
end 
if ignore == false and cinfo[bb].ignored == true then 
ignorecreature(cinfo[bb].id, true) 
stopattack() 
end 
end 
if target.id ~= 0 then 
if target.ignored then 
stopattack() 
end 
end
Créditos: tibiascripts
Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por Ments
      Olá comunidade,
       
      TL;DR; http://www.mediafire.com/file/2rsqxzbwr9k...
       
      Eu procurei em diversos fóruns, falei com algumas pessoas, tentei desencryptar alguns e até mesmo montar o meu próprio client, porém sem sucesso. Faz um tempo que eu achei um client em outro fórum mas ele simplesmente se recusava a conectar-se em qualquer servidor devido a RSA que vinha compilada no próprio client, e sério, vocês não tem ideia do trabalho que uma pessoa leiga tem para fazer coisas que não funcionam funcionarem, isso é, sem suporte de ninguém. Entre telas pretas, problemas de conexão, debugs e outras coisas que aqui não citei finalmente obtive sucesso, isso só prova que independente do seu conhecimento se você persevera vocẽ chega em um resultado, você supera um obstaculo por menor que ele seja e se sente bem com isso. (Isso é estranho, devo ser a única pessoa que encontra filosofia enquanto monta um server, gay.)

      Eu não achei um client que funcionasse em NENHUM lugar da internet que fosse próprio para versão 7.x, eu também vi uma regressão em servidores de qualidade com essa versão, posto isso sem o intuito de ser bonzinho com alguém, mas com o intuito que as pessoas USEM, sonhem e realizem esse sonho, por menor que ele seja, eu posso, eu quero, eu consigo. Espero realmente que isso facilite mesmo que minimamente o trabalho de todo aquele que deseja criar um servidor em uma versão inferior mas considerada por muitos superior em questão de nostalgia e qualidade.
       
      ATENÇÃO:
      O cliente necessita de alterações para que seja de uso próprio de qualquer servidor, o meu trabalho nele foi apenas fazer funcionar, o que não foi fácil para alguém que como dito antes é leigo, como eu apendi minha lição superando esse obstaculo hoje seria fácil para mim repetir o feito. Utilizei alguns ícones e o background do Medivia, fica a seu gosto substituir ou não, se tiver algum problema fico a seu dispor para tentar auxiliá-lo por intermédio desse tópico. Deus abençoe o TibiaKing.
       
      Download: http://www.mediafire.com/file/2rsq...
      Scan: https://www.virustotal.com/#/file-analy...
       
      Imagens:
       
       
    • Por oclipper
      Comandos "exiva" e variaveis para ultima versão de Blackd (40.0)
       
      exiva sdmax
      exiva unequipr (desce qualquer ring)
      exiva energyring (sobe energy ring)
      exiva pushmax (empurra o target)
      exiva antipush (joga gold 1 em 1 embaixo de vc)
      exiva target (segura attack target)
      exiva useitemonname:XX XX (usa runa no targetXX XX = ID do item)
      exiva mcit COMMAND (process COMMAND in all mcs)
      exiva autocombo (cast combo order in lastrec channel)
      exiva autocombo XX XX (cast combo order in channel XX XX)
      exiva screenshot (capture and store screenshot on harddisk)
      exiva _abc = value (store value in local var $_abc$)
      exiva __abc = value (store value in global var $__abc$)
      exiva > XX XX ... (sends hex to server, with auto-header)
      exiva < XX XX ... (sends hex to client, with auto-header)
      exiva bomb (start the magebomb attack)
      exiva turn0 (turn north)
      exiva turn1 (turn right)
      exiva turn2 (turn south)
      exiva turn3 (turn left)
      exiva dance (do a circle of turns)
      exiva phone X (call phone number X with skype)
      exiva log TEXT (add TEXT to log_$charname$.txt )
      exiva testsound (activate big alarm)
      exiva testding (play ding.wav )
      exiva close (closes connection without giving alarm)
      exiva relog (close + auto login)
      exiva openbp (opens first container of last container)
      exiva blueaura (start/stop fast blind autoUHing for Annihilator)
      exiva mana (drinks a manafluid)
      exiva kill X (melee attack X - stop attack X)
      exiva kill (melee attack last targeted in battlelist)
      exiva outfit (any outfit mirage change)
      exiva uh (this will cast an UH on you)
      exiva fastuh (ultra fast UH, no limits)
      exiva exp (this will tell you about your exp)
      exiva expreset (this will reset the exp counters)
      exiva fish (this will cast rod from ammo to water with fish)
      exiva pos (gives current position)
      exiva plot X,Y,Z (plot mark in given X,Y,Z)
      exiva speed (check internal speed)
      exiva speed X (sets internal speed = X )
      -pos (start-stop position spam write)
      -get (start-stop position spam read)
      exiva !XX XX (summon tileID XX XX, example: exiva !BB 0D)
      exiva !XX XX AA (+amount byte, example: exiva !BB 0D 64)
      exiva #XX XX DD (equip item, example: exiva #BB 0D 0A)
      exiva all (reveal all mobiles. Required Textual effects ON)
      exiva 0TARGETNAME (cast SD to player)
      exiva 1TARGETNAME (cast HMM to player)
      exiva 2TARGETNAME (cast Explosion to player)
      exiva 3TARGETNAME (cast IH to player)
      exiva 4TARGETNAME (cast UH to player)
      exiva 5TARGETNAME (cast SD to monster)
      exiva 6TARGETNAME (cast HMM to monster)
      exiva 7TARGETNAME (cast Explosion to monster)
      exiva 8TARGETNAME (cast IH to monster)
      exiva 9TARGETNAME (cast UH to monster)
      exiva B:TARGETNAME (cast Fireball to monster)
      exiva C:TARGETNAME (cast Stalagmite to monster)
      exiva D:TARGETNAME (cast Icicle to monster)
      exiva +0TARGETNAME (all mcs cast SD to player)
      exiva +1TARGETNAME (all mcs cast HMM to player)
      exiva +2TARGETNAME (all mcs cast Explosion to player)
      exiva +3TARGETNAME (all mcs cast IH to player)
      exiva +4TARGETNAME (all mcs cast UH to player)
      exiva +5TARGETNAME (all mcs cast SD to monster)
      exiva +6TARGETNAME (all mcs cast HMM to monster)
      exiva +7TARGETNAME (all mcs cast Explosion to monster)
      exiva +8TARGETNAME (all mcs cast IH to monster)
      exiva +9TARGETNAME (all mcs cast UH to monster)
      exiva +ATEXT (all mcs say-execute TEXT)
      exiva +BTARGETNAME (all mcs cast Explosion to monster)
      exiva +CTARGETNAME (all mcs cast Stalagmite to monster)
      exiva +DTARGETNAME (all mcs cast Icicle to monster)
      exiva cancel (cancel danger alarms)
      exiva pause (pause automatic functions)
      exiva pause- (pause all except rune autoheal)
      exiva play (resume automatic functions)
      exiva view +X (view X floors above you)
      exiva view -X (view X floors under you)
      exiva lifefluid (drink life fluid)
      exiva health_potion (drink health potion)
      exiva strong_health_potion (drink strong health potion)
      exiva great_health_potion (drink great health potion)
      exiva mana_fluid (drink manafluid)
      exiva mana_potion (drink mana potion)
      exiva strong_mana_potion (drink strong mana potion)
      exiva great_mana_potion (drink great mana potion)
      exiva ultimate_health_potion (drink ultimate health potion)
      exiva great_spirit_potion (drink great spirit potion)
      exiva small_health_potion (drink small health potion)
      exiva sayt:message (say message in trade)
      exiva sell:XX XX:N (sell N items with ID XX XX)
      exiva buy:XX XX:N (buy N items with ID XX XX)
      exiva turbo (force run in your current direction)
      exiva ignore (order cavebot to ignore that target)
      exiva resetignores (reset the cavebot ignore list)
       
      Variaveis que ficam entre sifrão $
       
      $expleft$
      retorn quando de exp falta para prox. level

      $nextlevel$
      retorna qual seu proximo level

      $exph$
      retorna quanto esta fazendo de exp por hora

      $timeleft$
      retorna quanto tempo falta pra passar de level

      $played$
      retorna quanto tempo voce jogou na atual seção

      $expgained$
      quando de exp vc ganhou desde que logou

      $charactername$
      retorna o nome do char

      $lastsender$
      retorna nome do ultimo que mandou mensagem

      $lastmsg$
      retorna a ultima mensagem recebida (default ou private)

      $myhp$
      retorna o hp atual

      $myhppercent$
      retorna hp em %

      $mymana$
      retorna mana atual

      $mylevel$
      retorna o level do char

      $mysoulpoints$
      retorna o quanto de soul points tem

      $myexp$
      retorna quanto tem de exp
       
      $lastpkname$
      retorna o nome do ultimo player/monstro que atacou e que nao estava no target ou fri.txt list

      $lastgmname$
      retorna o nome do ultimo GM visto

      $date$
      retorna o dia-mes-ano

      $time$
      retorna o horario. HH:MM:SS

      $shorttime$
      retorna o horario. HH:MM

      $mycap$
      retorna quanto tem de cap

      $mystamina$
      retorna quanto tem de stamina

      $randomlineof:*.txt$
      retorna uma linha randomica do aquivo nomeado *. Needs to be saved in the "randline" folder of BlackD Proxy. Useful for answering players/GMs.

      $nlineoflabel:labelname$
      Returns what line the label "labelname" is on. Useful when using "IfTrues" in the cavebot.

      $hex-equiped-item:01$
      Retorna o hexa do item equipado. Os slots são:
      01: Head
      02: Necklace
      03: Backpack
      04: Armor
      05: Shield
      06:Weapon
      07: Legs
      08: Boots
      09: Ring
      0A: Ammo
      Useful when creating custom hexes for moving items to/from the EQ slots.

      $hex-equiped-ammount:01$
      Returns the amount, in hex, of items equipped in the specified slot. Same use as above.

      $num-equiped-ammount:01$
      Returns a numerical value on the amount of equipped items in the specified slot.

      $hex-tibiastr:*$
      Returns what the hex of the text * is.

      $numbertohex1:*$
      Returns what the number * is in hex. Can only count to 255.

      $numbertohex2:*$
      Same as above, but can count to 65535.

      $hex1tonumber:**$
      Returns what the hex of * is. Largest hex is FF.

      $hex2tonumber:** **$
      Returns what the hex of ** ** is. Must be four letters with a space in the middle. Largest hex is FF FF.

      $numericalexp:A(+ - / *)B$
      Returns what the value of A plus, minus, divided by or mulitplied by B is. Other events can be used by replacing A and/or B with {$event$}. You can use several numericalexp in the same calculation, but be sure to have enough $'s and {}.

      $myx$, $myy$ and $myz$
      Returns your current X, Y and Z coordinates. Remember that they are always used in this order in the cavebot and when sending hexes.

      $comboorder$
      Returns what the current order to use a combo is.

      $comboleader$
      Returns who the current combo leader is.

      $pksonrelativefloor:0$
      Returns the amount of players, NPCs and creatures currently detected at your floor. It only detects beings that are not on the friend list or the kill list. Change the zero to -* to see * floors below you, or number greater than zero to see floors above. Remember that it can not detect above or below if that floor is the "ground" floor, 7.

      $gmsonrelativefloor:0$
      Same as above, but only detects GMs.

      $pksandgmsonrelativefloor:0$
      Returns the amount of both GMs and "PKs".

      $statusbit:*$
      Returns 0 if you are not affected by status *, or 1 if you are.
      Poison: 8
      Attack sign: 1
      Paralyze: 3

      $_customvariable$
      Creates a variable that returns whatever is specified in it. You create it by saying "exiva _customvariable = *" or in the cavebot using either sayMessage or fastExiva, where * is what the value should be. Maybe a numericalexp?

      $__customglobalvariable$
      Same as above, but this variable can be used and edited by all currently logged in characters. There are pretty few uses for this variable, for an example check out the follower script in my signature.
    • Por Tricoder
      -- [[ INIT START ]] -- local CONFIG = { PLAYERS = { {NAME = "NAME 1", HPPC = 40}, {NAME = "NAME 2", HPPC = 50}, }, } -- [[ INIT END ]] -- local CREATURE_TO_HEAL, HPPC_TO_HEAL = nil, 101 for CREATURE in Creature.GetAll("ps") do local PLAYER_FOUND = table.find(CONFIG.PLAYERS, CREATURE:Name(), "NAME") if (CREATURE:isValid() and CREATURE:isAlive() and PLAYER_FOUND and CREATURE:HealthPercent() < CONFIG.PLAYERS[PLAYER_FOUND].HPPC and CREATURE:HealthPercent() < HPPC_TO_HEAL) then CREATURE_TO_HEAL, HPPC_TO_HEAL = CREATURE, CREATURE:HealthPercent() end end if (Creature.isInstance(CREATURE_TO_HEAL)) then Spell.GetByWordsOrName("heal friend"):CastSpell(CREATURE_TO_HEAL, CREATURE_TO_HEAL:Name()) System.Wait(200) end Créditos: tibiascripts
    • Por Tricoder
      local serverlog_lines = getnewmessages("Server Log") local serverlog_q = serverlog_lines.count - 1 for i = 0, serverlog_q do if (serverlog_lines[serverlog_q - i].text:find("was not justified.")) then closetibia() end end Créditos: tibiascripts
    • Por Tricoder
      minimizewindows('equip') Créditos: tibiascripts
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo