Results 1 to 5 of 5

Thread: [How To] New function Battle List

  1. #1
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6

    [How To] New function Battle List

    Just saw the update and there i says its now possible to check if a monsters is a summon or not:

    Battle List
    - Now its possible to know if creature is a player/monster/npc/summon. In creature object add value CreatureType.
    0 - Player
    1 - Monster
    2 - NPCs
    3 - Summon [Yours]
    4 - Summon [Others]
    My question is: Where can i add CreatureType?

    I got bugged everytime with some ppl who summon to stuck my bot, i would like to make a hotkey that doenst consider summons a target.
    Somebody can explain those functions?
    click the image below to see my thread.



  2. #2
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Humm... It should be like that:
    Code:
    if target.CreatureType == 4 then
    	stopattack()
    	wait(200, 400)
    end

  3. #3
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Thanks Raph_

    But it wont make the bot stop bugging, cause it will stopattack and retarget instantly

    i was thinking about something that doesnt allow bot to target those summons, so i wouldnt stuck.

    Maybe another method in mind?


    Edit: maybe this work for non-hardcore hunting :

    PHP Code:
    if target.CreatureType == 4 then
    setsettings
    ('....monster//onlyiftrapped' 'yes')
    stopattack()
    wait(10000)
    setsettings('....monster//onlyiftrapped' 'no')
    end 
    gonna test
    Last edited by mexicowss; 09-26-2013 at 08:57 AM.
    click the image below to see my thread.



  4. #4
    Banned
    Join Date
    Jun 2012
    Location
    Ceará
    Posts
    2,114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    81
    Rep Power
    0
    it doesn't work for target pointers.

    you must use getcreature always to use this pointer

    Code:
    local cre = getcreature(target.id)
    if cre.CreatureType == 3 then
        ignorecreature(cre.id, true)
        if target.id == cre.id then
            stopattack()
        end
    end
    Last edited by GabrielTOTS; 09-26-2013 at 09:28 AM.

  5. #5
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Quote Originally Posted by GabrielTOTS View Post
    it doesn't work for target pointers.

    you must use getcreature always to use this pointer

    Code:
    local cre = getcreature(target.id)
    if cre.CreatureType == 3 then
        ignorecreature(cre.id, true)
        if target.id == cre.id then
            stopattack()
        end
    end
    Gonna test asap and come back for feedback


    Edit: It does work like a gold, thanks sir. just had to change a number
    Last edited by mexicowss; 09-27-2013 at 07:31 PM.
    click the image below to see my thread.



Posting Permissions

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