XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 20

Thread: Help If NO spears

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #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!

Posting Permissions

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