Reklama
Pokazuje wyniki od 1 do 4 z 4

Temat: [XenoBot] Exori

  1. #1
    Avatar Astiliapl
    Data rejestracji
    2012
    Położenie
    Polska B
    Wiek
    30
    Posty
    955
    Siła reputacji
    13

    Domyślny [XenoBot] Exori

    Siema może mi ktoś powiedzieć jak zrobić żeby bot bił z exori i exori min jak jest więcej niż 3 potwory (chodzi o 3 rodzaje cyclopów). Bardzo mi zależy :)

  2. #2
    Avatar Astiliapl
    Data rejestracji
    2012
    Położenie
    Polska B
    Wiek
    30
    Posty
    955
    Siła reputacji
    13

    Domyślny

    naprawdę nikt ? :(

  3. #3
    Avatar kisiel_dawid
    Data rejestracji
    2007
    Położenie
    unknown
    Wiek
    31
    Posty
    96
    Siła reputacji
    18

    Domyślny

    Wklej to do pliku *.lua w documents/xenobot/scripts, dostosuj. Widzialem kiedys taki ze sie ustawialo przy jakich potworach ma uzywac. Czary mozesz sobie oczywiscie pousuwac.

    --[[
    Instructions:
    Attacks are prioritized least to greatest.

    Required parameters:
    words = spell words or rune id
    min = minimum monster amount to trigger spell/rune
    distance = the max range of the attack

    Optional parameters:
    max = the max monsters the spell will attack
    mana = the minimum mana you want to have before casting
    padding = the extra sqm's to check for players PAST the attack distance (default is 0)
    needsTarget = the attack needs a target (exori hur, etc)
    needsDirection = spells most effective when facing target (exori min)
    multiFloor = check for players above/below (stairhop skulling)
    ignoreParty = ignore player checks for party members
    whiteList = table of players to ignore
    targetList = table of monsters to attack, to attack all do not specify this option

    ]]


    attack = {}
    attack[1] = {words="exori gran", min = 7, distance = 1, padding=3, multiFloor=true}
    attack[2] = {words="exori", min = 4, distance = 1, padding=3, multiFloor=true}
    attack[3] = {words="exori min", min = 6, distance = 1, padding=3, needsDirection=true, multiFloor=true}
    attack[4] = {words="exori ico", min = 2, distance = 1, max = 1, needsTarget=true, multiFloor=true}
    attack[5] = {words="exori hur", min = 3, distance = 4, max = 1, needsTarget=true, multiFloor=true}


    function getTargetCount(distance, padding, multiFloor, ignoreParty, whiteList, targetList)
    local n = 0
    padding = padding or 0
    whiteList = whiteList or {}
    targetList = targetList or {}
    for i = CREATURES_LOW, CREATURES_HIGH do
    local cid = Creature.GetFromIndex(i)
    local checkPad = cid:isPlayer() and padding or 0
    if(cid:isValid() and cid:isVisible() and cid:isAlive() and cid:DistanceFromSelf() <= (distance + checkPad) and not cid:isSelf())then
    if(getSelfPosition().z == cid:Position().z or (multiFloor and cid:isPlayer()))then
    if(cid:isPlayer() and (not cid:isPartyMember() or not ignoreParty) and not table.find(whiteList, cid:Name(), false))then
    return 0
    elseif(cid:isMonster() and (table.find(targetList, cid:Name(), false) or #targetList<1))then
    n = n + 1
    end
    end
    end
    end
    return n
    end

    function main()
    for i = 1, #attack do
    local atk = attack[i]
    local count = getTargetCount(atk.distance, atk.padding, atk.multiFloor, atk.ignoreParty, atk.whiteList, atk.targetList)
    if(count > 0)then
    if(count >= atk.min and count <= ((atk.max == nil) and count or atk.max))then
    if(type(atk.words) == 'number')then
    Self.UseItemWithMe(atk.words)
    wait(900, 1200)
    elseif(Self.CanCastSpell(atk.words) and (not atk.mana or Self.Mana() >= atk.mana))then
    local target = Creature.GetByID(Self.TargetID())
    if(atk.needsTarget or atk.needsDirection)then
    if(target:isOnScreen() and target:isVisible() and target:isAlive())then
    if(target:DistanceFromSelf() <= atk.distance)then
    if(atk.needsDirection)then
    local pos, toPos = getSelfPosition(), target:Position()
    local dir = pos.x > toPos.x and WEST or pos.x < toPos.x and EAST or pos.y > toPos.y and NORTH or SOUTH
    Self.Turn(dir)
    wait(100, 200)
    else
    Self.Say(atk.words)
    end
    end
    end
    end
    if(not atk.needsTarget)then
    Self.Say(atk.words)
    end
    wait(600, 1000)
    end
    end
    end
    end
    end

    print([[
    Name: Auto Area Attack
    Description: Shoots area spells/rune on certain conditions
    Author: Cavitt Glover (Syntax)
    Version: 5.0.00 (updated 11.26.2012)]])
    wait(2000)

    registerEventListener(TIMER_TICK, "main")

  4. Reklama
  5. #4
    Avatar Noru$
    Data rejestracji
    2008
    Wiek
    31
    Posty
    923
    Siła reputacji
    17

    Domyślny

    w creatures zmien sobie na jakie potwory ma reagowac i w count przy ilu potworach ma bic exori (oczywisice zapisz jako .lua) i wrzuc do folderu scripts w dokumenty/xenobot
    Kod :
    local PvPSafe = false
    local Attacks = {} 
    --[[
        Options:
            words - words of spell to cast
            creatures - table of creatures to consider, if you disclude this it will consider all
            count - amount of creatures in order to cast
            range - distance from self to consider creatures
            padding - for pvpsafe, if enabled each spell must have a padding setting, distance from self players must be in order to cast
            needTarget - for spells that require a target, no need for a count or padding if this is enabled
    ]]--
    Attacks[1] = { words = 'exori', creatures = {'Poison Spider', 'Orc', 'Snake', 'Orc Berserker'}, count = 4, range = 1, padding = 2} 
    Module.New('auto_attack', function()
        for _, data in ipairs(Attacks) do
            if (not PvPSafe) or (Self.isAreaPvPSafe(data.padding, true)) then
                if data.needTarget then
                    local target = Creature.New(Self.TargetID())
                    if (data.creatures and table.find(data.creatures, target:Name(), false)) or (not data.creatures) then
                        if target:DistanceFromSelf() <= data.range and Self.CanCastSpell(data.words) then
                            Self.Say(data.words)
                        end
                    end
                else
                    local count, mob = 0, Self.GetTargets(data.range)
                    if data.creatures then
                        for i = 1, #mob do
                            if mob[i]:isOnScreen() and table.find(data.creatures, mob[i]:Name(), false) then
                                count = count + 1
                            end
                        end
                    else
                        count = #mob
                    end
                    if count >= data.count and Self.CanCastSpell(data.words) then
                        Self.Say(data.words)
                    end
                end
            end
        end
    end)

Reklama

Informacje o temacie

Użytkownicy przeglądający temat

Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)

Podobne tematy

  1. exori con vs san
    Przez solp w dziale Tibia
    Odpowiedzi: 5
    Ostatni post: 23-10-2014, 01:32
  2. Exori con, a exori san
    Przez bombiuel w dziale Tibia
    Odpowiedzi: 10
    Ostatni post: 26-10-2012, 22:40
  3. Exori.net lub inny podobny
    Przez kck w dziale Open Tibia Server
    Odpowiedzi: 2
    Ostatni post: 19-02-2012, 18:51
  4. [8.54 - OTS] Bot do leczenia i exori
    Przez Bartloo w dziale Tibia
    Odpowiedzi: 5
    Ostatni post: 16-06-2010, 08:24
  5. [ELF][8.54]Szybciejsze bicie z exori frigo
    Przez nielimitowany w dziale Tibia
    Odpowiedzi: 3
    Ostatni post: 27-03-2010, 20:31

Zakładki

Zakładki

Zasady postowania

  • Nie możesz pisać nowych tematów
  • Nie możesz pisać postów
  • Nie możesz używać załączników
  • Nie możesz edytować swoich postów
  •