View Full Version : Lootdropper? Is it possible?
Kungza
04-26-2014, 11:10 AM
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!
dinmamma
04-26-2014, 11:46 AM
Yes that is possible, you would have to be more specific tho if anyone would try to script it.
Kungza
04-26-2014, 12:08 PM
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 :p
Bafucin
04-26-2014, 12:23 PM
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
Kungza
04-26-2014, 12:35 PM
Bafucin
I just need the basics, I can do the rest myself :)
thanks :)
only4tibia
04-26-2014, 01:54 PM
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:
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
Kungza
04-28-2014, 10:20 AM
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
Tripkip
04-28-2014, 12:44 PM
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
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
Kungza
04-28-2014, 01:01 PM
Tripkip
Thank you, much appreciated :D
Tripkip
04-28-2014, 01:16 PM
let me know when you got it working!
Kungza
07-15-2014, 01:15 PM
Still need help! Bump
Kungza
07-15-2014, 01:15 PM
Tripkip I would appreciate any kind of help! Kind regards (I can pay for help)
ppgab
07-15-2014, 02:33 PM
Tripkip I would appreciate any kind of help! Kind regards (I can pay for help)
Self.DropItems(x,y,z,{item1,item2,item3,item4,etc} )
you can add this into a "add script" in the walker options after you enter your house or something
Tripkip
07-15-2014, 03:58 PM
Tripkip I would appreciate any kind of help! Kind regards (I can pay for help)
I'll need the xyz coordinates from your house
Kungza
07-15-2014, 03:58 PM
Self.DropItems(x,y,z,{item1,item2,item3,item4,etc} )
you can add this into a "add script" in the walker options after you enter your house or something
I tried it and it didn't work
I tried this exact line [code]Self.DropItems(34292, 34723, 7,{golden helmet, winged helmet, horned helmet} )
Also tried writing ID number instead of name and "})", "}, 20)", "}} )", "}})" in the end
Thank you very much for taking your time to help me, incredibly appreciated!
ppgab
07-15-2014, 04:11 PM
I tried it and it didn't work
I tried this exact line [code]Self.DropItems(34292, 34723, 7,{golden helmet, winged helmet, horned helmet} )
Also tried writing ID number instead of name and "})", "}, 20)", "}} )", "}})" in the end
Thank you very much for taking your time to help me, incredibly appreciated!
if you use name it has to be quoted, also is a good idea to stop the walker first, so
Walker.Stop()
Self.DropItems
Walker.Start()
make sure that position is possible to throw items too
Kungza
07-15-2014, 04:14 PM
ppgab gimme the exact lining if u dont mind, im kinda bad at xenobot :p
I just wanna make some scripts for a farm of mine, if you help me out with exactly what I need I can give u a premium scroll for it
ppgab
07-15-2014, 04:15 PM
ppgab gimme the exact lining if u dont mind, im kinda bad at xenobot :p
I just wanna make some scripts for a farm of mine, if you help me out with exactly what I need I can give u a premium scroll for it
add me "ppgab.skype" so it's easier to chat, but thanks i don't want a reward
Kungza
07-23-2014, 03:54 AM
Thank you ppgab for helping me out!
Spectrus
07-23-2014, 04:08 AM
if you use name it has to be quoted, also is a good idea to stop the walker first, so
Walker.Stop()
Self.DropItems
Walker.Start()
make sure that position is possible to throw items too
When the walker hits a label it waits for any label event to finish before resuming. Using Walker.Stop and Walker.Start around code is deprecated.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.