XenoBot Forums - Powered by vBulletin

User Tag List

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

Thread: Lootdropper? Is it possible?

  1. #1

    Join Date
    Nov 2013
    Posts
    57
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Lootdropper? Is it possible?

    Hello!

    I'd like to know if its possible to make a lootdropper (basiclly I want to make my bot chars dump all their loot into my house so I don't have to fix depot-backpacks etc..

    If you know how to do this, please send me the script here or on PM


    Thank you!

  2. #2
    Senior Member
    Join Date
    Sep 2012
    Posts
    1,070
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Yes that is possible, you would have to be more specific tho if anyone would try to script it.

  3. #3

    Join Date
    Nov 2013
    Posts
    57
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    @dinmamma

    I'm sorry I thought I was quite clear, alright well basiclly what I would like to have is a script that checks for some specific IDs and throws all of the items with that ID on a certain spot

  4. #4
    Bafucin's Avatar
    Join Date
    Jan 2012
    Location
    Sweden
    Posts
    285
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    @Kungza to be able to create that script for you we would need the ids of the items you would like to drop and the cordinations of which spots you want to drop it on in ur house

  5. #5

    Join Date
    Nov 2013
    Posts
    57
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    @Bafucin

    I just need the basics, I can do the rest myself

    thanks

  6. #6

    Join Date
    Apr 2013
    Posts
    314
    Mentioned
    65 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Kungza View Post
    Hello!

    I'd like to know if its possible to make a lootdropper (basiclly I want to make my bot chars dump all their loot into my house so I don't have to fix depot-backpacks etc..

    If you know how to do this, please send me the script here or on PM


    Thank you!
    This maybe:

    lua code:

    Items = {"Arrow", "shovel", 16277, 3003} -- Item names enclosed with quotes or item IDs


    function itemDrop()
    pos = Self.Position()
    for i=1, #Items do
    Self.DropItem(pos.x, pos.y, pos.z, Items[i])
    end
    end


    -- in your walker labels --

    elseif(Label == "InHouse") then
    Walker.Stop()
    itemDrop()
    Walker.Start()


    Regards,
    O4T

  7. #7

    Join Date
    Nov 2013
    Posts
    57
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    @only4tibia

    Thank you very much!

    I'll test it out later and check if it works, either may I appreciate it so much! :*


    (I am not very good with coding, I mean the actual means of a certain line, I get how to tweek it for my own use etc.. Anyhow, will this script throw all the items of the certain ID's I put in?)

    Thanks in advance
    Last edited by Kungza; 04-28-2014 at 10:23 AM.

  8. #8
    Senior Member Tripkip's Avatar
    Join Date
    Aug 2012
    Location
    Netherlands
    Posts
    1,310
    Mentioned
    105 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Kungza View Post
    @only4tibia

    Thank you very much!

    I'll test it out later and check if it works, either may I appreciate it so much! :*


    (I am not very good with coding, I mean the actual means of a certain line, I get how to tweek it for my own use etc.. Anyhow, will this script throw all the items of the certain ID's I put in?)

    Thanks in advance
    Yeah it will, you just need to make a label name called "InHouse" in the walker, when it reaches that label, but if I were you, I would add a selfcheck position in it aswell, else if you get stuck somewhere (if someone bugs your bot) you will start throwing out the items once the walker reaches the labelname Inhouse

    so add this

    lua code:


    Items = {"Arrow", "shovel", 16277, 3003} -- Item names enclosed with quotes or item IDs


    function itemDrop()
    pos = Self.Position()
    for i=1, #Items do
    Self.DropItem(pos.x, pos.y, pos.z, Items[i])
    end
    end


    -- in your walker labels --

    elseif(Label == "InHouse") then
    Walker.Stop()
    itemDrop()
    Walker.Start()

    elseif (labelName == "CheckPosition") then
    if Self.Position(x, y, z) then Walker.Goto("InHouse") --Add your X, Y, Z coordinates between the ()
    else Walker.Goto ("ReachHouse")
    end


    Add the following labelnames in the walker.

    - CheckPosition (put this label in front of your "inhouse" label and after the stand/node, thats infront of your "inhouse" label
    - Inhouse
    - ReachHouse (this will be the label somewhere close to ur house, and after that waypoints that lead you into your house)

    PS I didnt test the code, could give an error. But you get the point :P
    Last edited by Tripkip; 04-28-2014 at 12:56 PM.
    Tripkips Selling Thread

    Chars Sold
    Sold 445 MS to @zemmer
    Sold 430 RP to @Spanirl
    Sold 395 ED to @Poppy218
    Sold 381 ED to @Diixon
    Sold 370 MS to @Starcream
    Sold 325 ED to @itscolbys
    Sold 325 ED to @Diixon
    Sold 320+ ED to @rickmyth
    Sold 280 ED to @Lavi
    Sold 280 MS to @Nostrax Junior
    Sold 245 EK to @zgredzikq10
    Sold 204 MS to @avian45
    Sold 185 ED to @Scherp Schutter
    Sold 140 EK to @GuiCyp
    Sold 104 RP +107 ED to @zetashion

    Money Sold
    Sold 50kk to @kimse
    Sold 30kk @Diixon

  9. #9

    Join Date
    Nov 2013
    Posts
    57
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    @Tripkip

    Thank you, much appreciated

  10. #10
    Senior Member Tripkip's Avatar
    Join Date
    Aug 2012
    Location
    Netherlands
    Posts
    1,310
    Mentioned
    105 Post(s)
    Tagged
    0 Thread(s)
    let me know when you got it working!
    Tripkips Selling Thread

    Chars Sold
    Sold 445 MS to @zemmer
    Sold 430 RP to @Spanirl
    Sold 395 ED to @Poppy218
    Sold 381 ED to @Diixon
    Sold 370 MS to @Starcream
    Sold 325 ED to @itscolbys
    Sold 325 ED to @Diixon
    Sold 320+ ED to @rickmyth
    Sold 280 ED to @Lavi
    Sold 280 MS to @Nostrax Junior
    Sold 245 EK to @zgredzikq10
    Sold 204 MS to @avian45
    Sold 185 ED to @Scherp Schutter
    Sold 140 EK to @GuiCyp
    Sold 104 RP +107 ED to @zetashion

    Money Sold
    Sold 50kk to @kimse
    Sold 30kk @Diixon

Posting Permissions

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