Page 1 of 1

Getting Rombot to loot the magic giftbags from Tergothen?

Posted: Mon Nov 28, 2011 11:46 pm
by klassik1
Hello,
I forget the name, but you know the giftbags that randomly drop in Tergothen bay from mobs? that contain bay necklaces and recipes... could anyone help me with scripting for getting the bot to recognize when the magic giftbags drop and to loot them? It would be greatly appreciated!

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Mon Nov 28, 2011 11:55 pm
by lisa
Can you please post queries about RoM in the RoM section of web site.
This section is for other games.

--=== Moved ===--

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Tue Nov 29, 2011 4:41 am
by rubenr
Lootomatic doesn't work with them?

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Tue Nov 29, 2011 5:38 am
by Marlb0ro
I'm sure a very simple code in the
<onLeaveCombat>

section should be able to check for those bags everytime a monster is defeated. I'm not at home at the moment so unable to give that a try.

Did not know they dropped recipe's too, nice.

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Tue Nov 29, 2011 7:51 am
by rock5
Basically the bot does not loot the bodies. All it does is "click" on them when they are dead. It doesn't loot the bodies or see what's in the loot window. That's left to your auto loot addon or auto loot settings in game.

So the bot can't decide what to loot. If you have an auto loot addon then check it's filter. If you don't then install one.

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Wed Nov 30, 2011 1:13 am
by klassik1
I am sorry for posting this in the wrong section.

Well, The bag doesnt drop on the body itself... its an extra bag that drops ontop of the dead body. Im not sure of how it would work, maybe everytime the bot kills something, to check if said "ID" drops.. then Click the ID of the Gift bag. Then loot as normal... Im asking because i am not sure how to find these "ID's" of things. Maybe if someone can point me in the direction on how to find the ID's of stuff in rom i could try to figure it out myself.

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Wed Nov 30, 2011 1:18 am
by lisa
in MM type this.

Code: Select all

rom/getid
then point mouse at what you want the ID of.

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Wed Nov 30, 2011 2:15 am
by rock5
You don't really need the id. You should be able to target it by name.

Such as

Code: Select all

player:target_Object("Gift Bag") -- if that's the name

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Wed Nov 30, 2011 3:34 am
by klassik1
thanks rock...
Now, what would be the most efficient way of have it to check for the bags since they don't drop on every kill... actually, they drop pretty rarely.
Sorry, I'm still sort of new to this.

Like, heres one of my TP farming waypoints in Tergothen.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-25925" z="30018" y="6">	</waypoint>
	<!-- #  2 --><waypoint x="-25516" z="29674" y="37">	</waypoint>
	<!-- #  3 --><waypoint x="-25381" z="29445" y="12">	</waypoint>
	<!-- #  4 --><waypoint x="-25455" z="29177" y="12">	</waypoint>
	<!-- #  5 --><waypoint x="-25407" z="29068" y="11">	</waypoint>
	<!-- #  6 --><waypoint x="-25183" z="28924" y="9">	</waypoint>
	<!-- #  7 --><waypoint x="-25426" z="28682" y="46">	</waypoint>
	<!-- #  8 --><waypoint x="-25437" z="28337" y="8">	</waypoint>
	<!-- #  9 --><waypoint x="-25578" z="28011" y="14">	</waypoint>
	<!-- # 10 --><waypoint x="-25598" z="27788" y="42">	</waypoint>
	<!-- # 11 --><waypoint x="-25515" z="27757" y="41">	</waypoint>
	<!-- # 12 --><waypoint x="-25327" z="27932" y="10">	</waypoint>
	<!-- # 13 --><waypoint x="-25013" z="27991" y="11">	</waypoint>
	<!-- # 14 --><waypoint x="-24877" z="28421" y="45">	</waypoint>
	<!-- # 15 --><waypoint x="-25080" z="28999" y="6">	</waypoint>
	<!-- # 16 --><waypoint x="-24872" z="29375" y="42">	</waypoint>
	<!-- # 17 --><waypoint x="-24875" z="29537" y="35">	</waypoint>
	<!-- # 18 --><waypoint x="-24597" z="29666" y="47">	</waypoint>
	<!-- # 19 --><waypoint x="-24413" z="30062" y="35">	</waypoint>
	<!-- # 20 --><waypoint x="-24438" z="30267" y="10">	</waypoint>
	<!-- # 21 --><waypoint x="-24628" z="30453" y="7">	</waypoint>
	<!-- # 22 --><waypoint x="-24741" z="30313" y="6">	</waypoint>
	<!-- # 23 --><waypoint x="-25036" z="30357" y="4">	</waypoint>
	<!-- # 24 --><waypoint x="-25422" z="30015" y="6">	</waypoint>
	<!-- # 25 --><waypoint x="-25751" z="30077" y="11">	</waypoint>
	<!-- # 26 --><waypoint x="-25883" z="30154" y="12">	</waypoint>
</waypoints>
pretty basic, just waypoints. what do you think would check around if the Bag has dropped or not?

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Wed Nov 30, 2011 4:37 am
by rock5
The bag drops after you kill one right?

So try doing a check after leaving combat.

Code: Select all

</onLeaveCombat>
    if player:findNearestNameOrId("Gift Bag") then
        player:target_Object("Gift Bag")
        yrest(500) -- If not enough time to pick up bag, increase it.
    end
</onLeaveCombat>

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Wed Nov 30, 2011 6:08 am
by sfrattini
never seen any. May I ask what do they contain? I can't even find a reference in runesdatabase.com

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Sat Dec 03, 2011 3:07 am
by klassik1
they drop randomly.. they contain recipes and armor with yellow stats on them. arrows. maybe more
but thank you rock.. i will try that out and see how it works.

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Mon Nov 19, 2012 7:49 am
by Niko
does de onleavecombat haves to be into every waypoint? or on the onload part of the script? or where?

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Mon Nov 19, 2012 9:08 am
by Jandrana
onLeaveCombat is a function that is called each time you leaveCombat. You can provide it in the profile.xml for your char.
I found it more usefull, using this function specific to certains scripts.

You can change it in onLoad or at any waypoint that seems appropriate.

Example:

Code: Select all

<onLoad>
   settings.profile.events.onLeaveCombat = function()
      -- do something after leaving combat
   end
</onLoad>

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Thu Nov 22, 2012 9:19 pm
by Niko
Ok i'v done this

Code: Select all

<onLoad>
   settings.profile.events.onLeaveCombat = function()
    if player:findNearestNameOrId("Bolsa Misteriosa") then
        player:target_Object("Gift Bag")
        yrest(500) -- If not enough time to pick up bag, increase it.
    end
end
</onLoad>
and i didn't got any problem... i still have to prove if it really gets the bag...

Thank's Jandrana

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Thu Nov 22, 2012 10:51 pm
by lisa
the target object will have to be the same name or ID as the findnearestname or id

Code: Select all

<onLoad>
   settings.profile.events.onLeaveCombat = function()
    if player:findNearestNameOrId("Bolsa Misteriosa") then
        player:target_Object("Bolsa Misteriosa")
        yrest(500) -- If not enough time to pick up bag, increase it.
    end
end
</onLoad>

Re: Getting Rombot to loot the magic giftbags from Tergothen

Posted: Fri Nov 23, 2012 5:49 am
by Niko
lisa wrote:the target object will have to be the same name or ID as the findnearestname or id

Code: Select all

<onLoad>
   settings.profile.events.onLeaveCombat = function()
    if player:findNearestNameOrId("Bolsa Misteriosa") then
        player:target_Object("Bolsa Misteriosa")
        yrest(500) -- If not enough time to pick up bag, increase it.
    end
end
</onLoad>
Yes i saw that fail this morning... now it works perfect, thank's to you all!