XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Help If NO spears

  1. #1
    Saionz's Avatar
    Join Date
    Jan 2013
    Location
    Barcelona, Spain
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help If NO spears

    Hi dudes,

    can someone help me? Im not really good making .lua so I dont know how to do this.

    I want to disable targeting if I dont have spears left, can someone help me please?

    Thank you!
    It's a bird... it's a plane... NO IT'S SAIONZ!

  2. #2

    Join Date
    Feb 2013
    Location
    brazil
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try this one.

    lua code:

    local spearID = 7378 -- set the spear id. [7378 = royal spear], [3277 = regular spear]
    while(true)do
    if(Self.ItemCount(spearID) == 0)then
    setLooterEnabled(false)
    lootEnabled = false
    wait(200, 600)
    end


    create a new file.lua and run it on the scripter.
    said no one ever

  3. #3
    Saionz's Avatar
    Join Date
    Jan 2013
    Location
    Barcelona, Spain
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okey I fix that there wasnt another "end" but there is a problem, when I dont have spears it disables the targeting, but when I have spears again, it doesnt enable it, help please?

    Thanks @icaro43 !

    Edit: Okey I fix it.

    lua code:

    Code:
    local spearID = 7378 -- set the spear id.  [7378 = royal spear], [3277 = regular spear]
    while(true)do
        if(Self.ItemCount(spearID) == 0)then
            setTargetingEnabled(false)
            TargetingEnabled = false
        wait(200, 600)
    	
    	elseif(Self.ItemCount (spearID) == 34) then
    		setTargetingEnabled(true)
    		TargetingEnable = true
    	wait (200, 600)
    	
    end 
    end
    But how can I change the amount of the spears, without change anything in the .lua?
    Last edited by Saionz; 04-01-2013 at 12:41 PM.
    It's a bird... it's a plane... NO IT'S SAIONZ!

  4. #4
    Senior Member Tobjun's Avatar
    Join Date
    Feb 2013
    Location
    Sweden, Skellefteċ
    Posts
    496
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Use a spike sword or something when u dont have spears, and just target with that one, thats how i dis with my paladin lvl 8-80

  5. #5
    Saionz's Avatar
    Join Date
    Jan 2013
    Location
    Barcelona, Spain
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Tobjun View Post
    Use a spike sword or something when u dont have spears, and just target with that one, thats how i dis with my paladin lvl 8-80
    I think I cant kill bonebeast/vamps/ds with sword haha, anyway ty for the help!
    It's a bird... it's a plane... NO IT'S SAIONZ!

  6. #6
    Senior Member Tobjun's Avatar
    Join Date
    Feb 2013
    Location
    Sweden, Skellefteċ
    Posts
    496
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    hehe kk, tought u wanted it for a lower lvl since if ur using the script Tarpit tomb (as i guess seeing the kind of creatures u kill and thats the best tomb script) Just set your min spears to a higher value, and if u still want to have a script like that, i cant help you xD gl tho

  7. #7
    Saionz's Avatar
    Join Date
    Jan 2013
    Location
    Barcelona, Spain
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    which script u mean is the best of tarpit tomb? I did my own cuz @Joshwa534 didnt help me to fix his script xdd, u mean his script ?
    It's a bird... it's a plane... NO IT'S SAIONZ!

  8. #8
    Senior Member Tobjun's Avatar
    Join Date
    Feb 2013
    Location
    Sweden, Skellefteċ
    Posts
    496
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Yeah @Joshwa534 has the best scripts (in my opinion) so i recommend using hes, tho what do you mean by not helping you fix it? ;o I just paid and got linked to the downloadpage right away?

  9. #9
    Saionz's Avatar
    Join Date
    Jan 2013
    Location
    Barcelona, Spain
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I bought it too, but its not working for me, it does somethings strange, it gets walker stuck on the "Nohardcore" part and I told him and sent screen about it and he didnt fix it Uu... and it always goes to refill, no matter if I have enough supplies, it always leave...
    It's a bird... it's a plane... NO IT'S SAIONZ!

  10. #10
    Senior Member Tobjun's Avatar
    Join Date
    Feb 2013
    Location
    Sweden, Skellefteċ
    Posts
    496
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Well its a bug for me too there, i spoke to him about it he said u can go passed blue flame all the time, no matter what lvl, so i did, much better exp/h, so i suggest you do that xD tho mine is not refilling all the time, so that problem is most likely from your side, tho just check hes lua, set everything right, set true at go passed the blue flame (hardcore) and try it again, u will have a good time!

    Edit: "mine is not refilling all the time" What i mean is, it only refills when it should refill

Posting Permissions

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