SRL Archive - Outdated Tutorials

[#43] UseRewardBox Drops Box By Default


ZephyrsFury

2010-04-15 04:45:11

If you have not set any preferences for which rewards to pick on finding a reward box in your inventory then SRL will now choose XP by default meaning a lamp or book.

You can set preferences by adding (changing) a line in the DeclarePlayers; generally at the top of the script:

eg.

Players[0].BoxRewards := ['ithril', 'Gem', 'XP', 'Emote', 'Costume'];

You may put as many preferences as you wish and SRL will search for and attempt to select each preference in order.

If you want to collect boxes then add a random string that SRL will never find as an available option to your BoxRewards array:

eg.

Players[0].BoxRewards := ['ZexyIsSt00peed'];

Thanks,
ZephyrsFury

YoHoJo

2010-04-15 05:47:41

So if we don't sex box rewards, it will get us lamp/book?
And then FindNormalRandoms will also handle using the lamp/book, and choosing a skill?
Where do we (can we) define what skill we would like to gain the xp in?

Sabzi

2010-04-15 15:22:16

I believe you can set it like:

LampSkill := 'skill here'
after SetupSRL.

Dgby714

2010-04-15 16:54:39

From: Sabzi
I believe you can set it like:

LampSkill := 'skill here'
after SetupSRL.


Yep, the default is mining =)

YoHoJo

2010-04-15 18:57:04

Sweet, mining ftw don't have to change much then.

Ejjman

2010-04-17 03:12:50

Just a heads up

Boxes cannot be banked anymore. :\ So no collecting them in bank, per say. Keeping in inventory is all good though.

i luffs yeww

2010-04-18 01:15:13

I'm still kinda confused about this. >_>