Where to find a list of all items and buffs

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Where to find a list of all items and buffs

#1 Post by spawni »

At the moment i read lot of code-examples for the bot try the exampels and change them to my needs.
A lot of scripts are about checking if player has a buff - and use a item, if the buff is not already there.

When i see it right, the bot takes item-codes out of the consumabels.xml
But there are not all the possible items in it.
Searching the forum has given me no results - so I need your help - is there a complete standard-list? does every coder do his own entries?

Example of what I am looking for - in the consumables.xml the Items 207203 and 207202 are not listet - script gives an error

Code: Select all

<!-- #  1 --><waypoint x="4755" z="900" type="TRAVEL">	
	if (not player:hasBuff("506687")) then
    inventory:useItem(207203);
    end  

	if (not player:hasBuff("506686")) then
    inventory:useItem(207202);
    end 

	if (not player:hasBuff("506684")) then
    inventory:useItem(207200);
    end 
   </waypoint>
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Where to find a list of all items and buffs

#2 Post by lisa »

I use this in profile onleavecombat

Code: Select all

	if (not player:hasBuff(506687)) then
		inventory:useItem(207203);
    end  

	if (not player:hasBuff(506686)) then
		inventory:useItem(207202);
    end 

	if (not player:hasBuff(506684)) then
		inventory:useItem(207200);
    end
You don't need to have it listed in consumables database for it to use the item.

At first I thought that when you use " " in the hasBuff might be the issue but I also use it like that in my profile for another buff, so not sure why it is erroring.
It's probably just a capital instead if lowercase being used somewhere, I always test my code in a userfunction that way the error message tells you exactly what is wrong.
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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Where to find a list of all items and buffs

#3 Post by rock5 »

The actual error message would be useful too.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Where to find a list of all items and buffs

#4 Post by lisa »

WP errors usually just say failed to compile code which doesn't help much. That's why I test in a userfunction first ;)
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
spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: Where to find a list of all items and buffs

#5 Post by spawni »

:oops: I have run the script after a few (other) corrections - and now buffs take place as the should. Thx for the help :)
Post Reply