SRL Archive - Reflection Help

Character Orientation


Markus

2011-01-06 13:47:22

does reflection always return orientation 180 in NPCs?
Code:

hoi := GetNPCs;
for i := 0 to high(hoi) do
begin
if pos('Autumn', hoi[i].Name) <> 0 then
begin
writeln('Elemental @ : '+inttostr(hoi[i].Tile.x)+', '+inttostr(hoi[i].Tile.y)+' - '+inttostr(hoi[i].Orientation));
end;
end;

Output:

Elemental @ : 2900, 5454 - 180
Elemental @ : 2905, 5451 - 180
Elemental @ : 2917, 5457 - 180
Elemental @ : 2908, 5455 - 180
Elemental @ : 2907, 5460 - 180
Elemental @ : 2902, 5449 - 180
No that's not right as they're all facing some other side. Using latest reflection using built-in Simba updater.

pyroryan

2011-01-06 14:12:14

I'll take a look at it later (today?).

Edit:
Try it again with the latest hooks. Seems I never updated the character Orientation hook =\

**BANNED The Man

2011-01-06 14:16:12

Iinm orientation is a different hook that we dont have?
I am on my phone atm so might be wrong…

-Boom

Markus

2011-01-06 14:50:26

I wouldn't know, but TNPC has an orientation property and so that one should work (it's actually part of the character class).

Naike

2011-01-06 15:59:43

From: Markus
I wouldn't know, but TNPC has an orientation property and so that one should work (it's actually part of the character class).


Did it work with the latest hook update?

Markus

2011-01-06 16:27:41

Works now, thanks for the quick fix!

TomTuff

2011-01-06 20:13:04

Glad to see you're working on that, Markus ;)

no joke, all the best scripts come from Markus :p (*cough* sudoku *cough*)

Sir R. M8gic1an

2011-01-07 00:57:29

Re-opened. Why do you want character orientation?

I smell a thiever.

~RM

TomTuff

2011-01-07 01:04:46

From: Sir R. Magician
Re-opened. Why do you want character orientation?

I smell a thiever.

~RM


sorc garden

the npc debug says "elemental"

pyroryan

2011-01-07 02:13:05

Its a farming bot. The thieving experience is merely a side-effect of the bot. Or if its desired, then I guess its another advertising point.

Narcle

2011-01-07 04:34:38

From: TomTuff
Glad to see you're working on that, Markus ;)

no joke, all the best scripts come from Markus :p (*cough* sudoku *cough*)


*cough* he always gets his base code from others *cough*

I requested and added Orientation just for this.

Markus

2011-01-07 05:44:58

Yea, Narcle made this first and Narcle also made Sudoku a usable script (it could only solve one and then crash) :) I love him.
Indeed this is for sorcerer's garden. According to Jagex themselves it's a thieving activity. Atm I'm working on Autumn garden (should be done in a week as I got most of it down already) and after I abused that long enough I might do summer garden.
Autumn will be public (if I think it's suitable), summer SRL Members+. And 100% my own code for now, Narcle: I didn't really look at how you did it.

@TomTuff: tbh I was more impressed with Mage Me Fast, the alcher I made with The Claw (for ruby rings in Zanaris). It was good while it lasted and got us a fair amount of mage xp.

Narcle

2011-01-07 06:08:34

From: Markus
Yea, Narcle made this first and Narcle also made Sudoku a usable script (it could only solve one and then crash) :) I love him.
Indeed this is for sorcerer's garden. According to Jagex themselves it's a thieving activity. Atm I'm working on Autumn garden (should be done in a week as I got most of it down already) and after I abused that long enough I might do summer garden.
Autumn will be public (if I think it's suitable), summer SRL Members+. And 100% my own code for now, Narcle: I didn't really look at how you did it.

@TomTuff: tbh I was more impressed with Mage Me Fast, the alcher I made with The Claw (for ruby rings in Zanaris). It was good while it lasted and got us a fair amount of mage xp.


Ah doing it from scratch? I really don't see another way to do it, so will be interesting if you find another way. Its just 'playing the waiting game'.

Markus

2011-01-07 07:18:46

That's exactly what I'm doing, after I played it for a few hours legit to get the right/fastest paths down.