itemtypestable

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

itemtypestable

#1 Post by gloover » Mon Nov 11, 2013 11:22 am

Hey Rock, Lisa.

in itemtypestable.lua are most of the items such like weapons etc but not such like eggs. I'm using some scrips to cleaning baggs so how to define eggs not to be dropped.

I've tried using the names, but in cause of german umlauts seems this one item.Name == "Nat\129rliches Begleiter-Ei" to be ignored.

So is it possible to define the types for the eggs, f.e. item.isType==("egg")?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: itemtypestable

#2 Post by rock5 » Mon Nov 11, 2013 12:10 pm

You can't use 'type' because egg type is "other" which is pretty useless.

You could do it by id

Code: Select all

if item.id > 204475 and 204510 > item.Id then
     -- Is an egg!
end
Future note: If you ever have problems with names with special characters because they mess up string searches, try changing the special characters with a dot '.'. Dots mean 'any character' in string patterns so it usually works.
  • 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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 44 guests