SRL Archive - Help

General question about random solving


litoris

2011-07-27 12:18:01

So, let's say that in a scripts, nothing is specified as to what to do with the reward of a random event, but the script does check for randoms. Which reward will be taken, and if it is xp, how will the xp be used?

footballjds

2011-07-27 12:37:54

Found in antirandoms.simba i believe.
By default if nothing is set for box rewards XP is selected.
if (Length(Trim(srl_Implode(Players[CurrentPlayer].BoxRewards, ''))) = 0) then
Players[CurrentPlayer].BoxRewards := ['XP'];

Found in SRL.scar
So by default the lamp skill is mining
  LampSkill := 'mining';

litoris

2011-07-27 12:48:40

Mining= Why mining? Why not prayer or something? >_>
Thanks for the info, I'm editing that now :D

footballjds

2011-07-27 12:52:39

mining is pretty much the basis of autoing since scar was release :D

Harry

2011-07-27 12:53:06

From: litoris
Mining= Why mining? Why not prayer or something? >_>
Thanks for the info, I'm editing that now :D

Because Mining is the least obtrusive skill. If someone gets extra mining levels it probably won't break their account's goals.

bolshak25

2011-07-27 13:07:18

From: litoris
Mining= Why mining? Why not prayer or something? >_>
Thanks for the info, I'm editing that now :D


you dont need to edit those files, you can just add it into your script what you want for a reward, and if its xp, what xp to take. idr what the exact lines are, but someone here will. just put it in your declare players

litoris

2011-07-27 13:08:38

From: bolshak25
you dont need to edit those files, you can just add it into your script what you want for a reward, and if its xp, what xp to take. idr what the exact lines are, but someone here will. just put it in your declare players


I'm editing it so that I don't get useless mining xp with scripts that don't have it. cba to edit every single script without LampSkill.

bolshak25

2011-07-27 13:34:15

its not that hard to add two lines to each script, plus if you want different skills on different accounts, it works nicely