Bag dropt after kill - looting?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
booting1
Posts: 67
Joined: Wed Jul 20, 2011 2:41 am

Bag dropt after kill - looting?

#1 Post by booting1 » Sun May 25, 2014 9:20 am

hello,

in high maps sometimes an mop Drops the bag. but how the bot loot this bag on the earth? he only loot the killed mop(enemy) but not the bag.
in this bag often accesiorie with good yellow stats.

i hope my english is understandful, and you know what i will :)

ZZZZZ
Posts: 513
Joined: Sun Oct 21, 2012 1:42 am

Re: Bag dropt after kill - looting?

#2 Post by ZZZZZ » Sun May 25, 2014 10:04 am

Not sure what language your client is in, but a search for "Mysterious bags" bought up a thread with this info already in it. http://www.solarstrike.net/phpBB3/viewt ... g&start=20

Code: Select all

local mBag = player:findNearestNameOrId(GetIdName(105930)) 
   if mBag and inventory:itemTotalCount(0) ~= 0 then
      print("\n\n found bag \n\n")
      player:target_Object(mBag.Id)
      yrest(1000) -- If not enough time to pick up bag, increase it.
      player:target_Object(mBag.Id)
      yrest(1000)
   end
Put that in the onLeaveCombat of your characters profile and it should loot the bags.

booting1
Posts: 67
Joined: Wed Jul 20, 2011 2:41 am

Re: Bag dropt after kill - looting?

#3 Post by booting1 » Thu May 29, 2014 3:36 am

thank you i test this next Weekend!

User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Re: Bag dropt after kill - looting?

#4 Post by silinky » Sat Jun 07, 2014 5:47 am

how do you know from this code if it is your bag? for example in party, the bag sometimes drops, but not for you. this caused problems for me in the past.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Bag dropt after kill - looting?

#5 Post by lisa » Sat Jun 07, 2014 6:29 pm

if you are in a party then the bags are randomly for 1 of the party members, other party members will get the message the bag belongs to someone else. If all members are active then it is just a matter of having a different yrest for each character in their profile, keep in mind if using partyhealer that isn't fighting it won't technically do profile onleavecombat code.
So what I did was create a function in the profile onload for party followers and had a different yrest for each char, for the main char I added a line in the posted code which printed in party chat to call the function.
So every character in party would try to open the bag and so it always got looted.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests