XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 9 of 9

Thread: When item X > droped.

  1. #1
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    When item X > droped.

    Hello my friend, i need one script.

    * When item on ID (238) or name (mana potions) is more than 300+ my bot drop 1 each.
    This is impossible?

    Please healp...

  2. #2

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    something like this maybe

    Code:
    Manas = "Mana Potion"
    DropManasAbove = 300
    AmountToDrop = 1
    
    Module.New('DropPots', function(module)
        if Self.ItemCount(Item.GetID(Manas)) > DropManasAbove then
            Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, Manas, AmountToDrop)
        end
    	module:Delay(1000,1500)
    end)

  3. #3

    Join Date
    Feb 2014
    Posts
    24
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by yompa93 View Post
    something like this maybe

    Code:
    Manas = "Mana Potion"
    DropManasAbove = 300
    AmountToDrop = 1
    
    Module.New('DropPots', function(module)
        if Self.ItemCount(Item.GetID(Manas)) > DropManasAbove then
            Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, Manas, AmountToDrop)
        end
    	module:Delay(1000,1500)
    end)
    Hey I would need the same script, but for itemid 12724 - The script won't recognize the name of the item for me.

  4. #4

    Join Date
    Feb 2014
    Posts
    24
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    lua code:

    local idlist = "12724" -- id of item to drop

    Module.New("drop", function()
    Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, idlist)
    wait(5000)
    end)


    This should work, just change the id to the empty manas you want to drop and it will try to drop them every 5 seconds. Not only if you have above 300 though.

  5. #5
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by yompa93 View Post
    something like this maybe

    Code:
    Manas = "Mana Potion"
    DropManasAbove = 300
    AmountToDrop = 1
    
    Module.New('DropPots', function(module)
        if Self.ItemCount(Item.GetID(Manas)) > DropManasAbove then
            Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, Manas, AmountToDrop)
        end
    	module:Delay(1000,1500)
    end)
    I have 300 mana potions and scripts don't droped potions, why?

  6. #6
    Oscagi's Avatar
    Join Date
    Aug 2014
    Location
    Spain
    Posts
    237
    Mentioned
    27 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Elizabeth View Post
    I have 300 mana potions and scripts don't droped potions, why?
    lua code:


    ManaID = 238 -- 238 = GMP
    DropManasAbove = 300
    AmountToDrop = 1

    Module.New('DropPots', function(module)
    if Self.ItemCount(ManaID) > DropManasAbove then
    Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, ManaID, AmountToDrop)
    end
    module:Delay(1000,1500)
    end)



    Try this, I just changed Mana = 'Name', for the ID and maybe the problem was on Self.DoopItem() u had the name of mana and not the id, but im not sure.


    REMEMBER TO SAY THANKS.

  7. #7
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Oscagi View Post
    lua code:


    ManaID = 238 -- 238 = GMP
    DropManasAbove = 300
    AmountToDrop = 1

    Module.New('DropPots', function(module)
    if Self.ItemCount(ManaID) > DropManasAbove then
    Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, ManaID, AmountToDrop)
    end
    module:Delay(1000,1500)
    end)



    Try this, I just changed Mana = 'Name', for the ID and maybe the problem was on Self.DoopItem() u had the name of mana and not the id, but im not sure.
    Ok, this is work, thank u brother

  8. #8

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Elizabeth View Post
    I have 300 mana potions and scripts don't droped potions, why?
    Did you change the mana potions to the ones you're using ?
    Well, this would also work if the ID is the problem:
    Code:
    Manas = "Great Mana Potion"
    ManaID = Item.GetID(Manas)
    DropManasAbove = 90
    AmountToDrop = 1
     
    Module.New('DropPots', function(module)
        if Self.ItemCount(ManaID) > DropManasAbove then
            Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, ManaID, AmountToDrop)
        end
        module:Delay(1000,1500)
    end)
    Last edited by yompa93; 04-28-2016 at 09:26 PM.

  9. #9
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by yompa93 View Post
    Did you change the mana potions to the ones you're using ?
    Well, this would also work if the ID is the problem:
    Code:
    Manas = "Great Mana Potion"
    ManaID = Item.GetID(Manas)
    DropManasAbove = 90
    AmountToDrop = 1
     
    Module.New('DropPots', function(module)
        if Self.ItemCount(ManaID) > DropManasAbove then
            Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, ManaID, AmountToDrop)
        end
        module:Delay(1000,1500)
    end)
    Yep, i was changed, but don't work.
    Fortunately Oscagi helped.

    Again thanks all for the desire.

Posting Permissions

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