SRL Archive - SRL Archives

FindLamp in AntiRandoms.scar


Daniel

2008-03-12 01:30:37

Ever since i made that post in SRL Help you decided to make this forum, didn't you? One day after i made that post… Anyway, here is the quote from the last topic:
From: IP-Drowner
Well, there is a bug in SRL. Well, not really a bug but an error. Someone left out the summoning skill in the FindLamp function in the AntiRandoms.scar file.

This is the current string settings:

'strength': Mouse(191, 134, 12, 12, True);
'attack': Mouse(222, 136, 12, 12, True);
'ranged': Mouse(256, 134, 12, 12, True);
'magic': Mouse(289, 135, 12, 12, True);
'defence': Mouse(319, 136, 12, 12, True);
'hitpoints', 'hp': Mouse(176, 166, 12, 12, True);
'prayer', 'pray': Mouse(208, 163, 12, 12, True);
'agility': Mouse(239, 165, 12, 12, True);
'herblore': Mouse(271, 165, 12, 12, True);
'thieving', 'thief': Mouse(303, 164, 12, 12, True);
'crafting', 'craft': Mouse(335, 164, 12, 12, True);
'runecraft', 'runecrafting': Mouse(174, 193, 12, 12, True);
'slayer', 'slay': Mouse(205, 195, 12, 12, True);
'farming', 'farm': Mouse(239, 193, 12, 12, True);
'mining', 'mine': Mouse(270, 194, 12, 12, True);
'smithing', 'smith': Mouse(302, 194, 12, 12, True);
'fishing', 'fish': Mouse(334, 192, 12, 12, True);
'cooking', 'cook': Mouse(173, 220, 12, 12, True);
'firemaking', 'fire': Mouse(206, 220, 12, 12, True);
'woodcutting', 'wc': Mouse(240, 220, 12, 12, True);
'fletching', 'fletch': Mouse(274, 220, 12, 12, True);
'construction': Mouse(303, 220, 12, 12, True);
'hunting', 'hunt': Mouse(335, 220, 12, 12, True);
No summoning in that list i see.

Well, it should be an easy fix. Just thought i'd let you guys know.

Wizzup?

2008-03-12 11:28:11

If someone get's a lamp, please post the coordinates of the summoning box.

SKy Scripter

2008-03-12 20:22:12

From: Wizzup?
If someone get's a lamp, please post the coordinates of the summoning box.


This is what i did… i won't be bothered if you use it..

  Skill := LowerCase(Skill);
if (Pos('hp', Skill) <> 0) then Skill := 'hitpoints';
if (Pos('thief', Skill) <> 0) then Skill := 'theiv';
Skills := ['att', 'str', 'ranged', 'magic','defence','craft','hitpoints', 'pray',
'agility','herb','thiev','fish','runecraft','slay','farm',
'min','smith','hunt','cook','fire','wood','fletch','construct','sum'];

Hi := High(Skills);
for I:= 0 to Hi do
if (Pos(Skills[i], Skill) = 1) then Hi := -1;
if (Hi > 0) then exit;
I := I - 1;
x := 179 + (I mod 6 * 32);
y := 140 + (I div 6 * 30);
MMouse(x, y, 10, 10);

Wizzup?

2008-03-13 12:28:02

  if (Pos('thief', Skill) <> 0) then Skill := 'theiv';

Haha. :p
Why would you do that?

SKy Scripter

2008-03-17 18:47:45

From: Wizzup?
  if (Pos('thief', Skill) <> 0) then Skill := 'theiv';

Haha. :p
Why would you do that?


because some people put 'thief' for the lamp skill i guess :)

Wizzup?

2008-04-03 08:14:11

From: SKy Scripter
because some people put 'thief' for the lamp skill i guess :)


Yes - but 'theiv' isn't the same as 'thiev'. ;)

SKy Scripter

2008-04-03 09:39:29

From: Wizzup?
Yes - but 'theiv' isn't the same as 'thiev'. ;)


ooops :)