XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 2 of 2

Thread: Wrath Of The Emperor - NEED ONE SCRIPT

  1. #1
    germanzel's Avatar
    Join Date
    Dec 2015
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wrath Of The Emperor - NEED ONE SCRIPT

    Hey Brothers, i make scripts to make wrath and i have small problem.
    I need one script:

    - if on screen dont see monster "The Keeper" my walker goto label "X"


    Please help me, PEACE @Oscagi @Jontor @Fatality
    Last edited by germanzel; 03-02-2016 at 11:13 PM.

  2. #2
    Senior Member Jontor's Avatar
    Join Date
    Sep 2014
    Posts
    446
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    Code:
    function findMonster(name)
        for n, c in Creature.iMonsters() do
            if (n == name and n:isOnScreen()) then
                return true
            end
        end
        return false
    end
    
    registerEventListener(WALKER_SELECTLABEL, "onLabel")
    
    function onLabel(labelName)
        if (labelName == "checkMonster") then
            if (not findMonster("The Keeper")) then
                Walker.Goto("X")
            end
        end
    end

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •