SRL Archive - Research & Development Lounge

Constantly hopping NPCs!


Zota

2010-12-02 08:10:58

Ok so I'm not a very good scripter :P.. the way I learn is I just take bits and pieces from different scripts and piece them together. Eventually learning what each part does.

So right now I got a few thieving scripts, pulled out procedures and changed certain parts here and there to make it do what I needed it to do. It's a thieving script for the Thieving guild. It's simply meant to find Npc, right click npc, left click 'pickpocket'. Repeat.

It IS possible to get 150k+ exp per hour doing this manually. For this however, the time between mousemovements and clicking pickpocket need to be minimal.

problem 1: Often the Mouse function wont be able to accurately click a moving NPC. Anyway to fix this so it's a perfect right click each time? I'm using BMPtostring. Would it help if I used NPC ID instead?

problem/annoyance 2: R_chooseoption/Multi doesn't seem to work at all for 'pickpocket'. In the list there is Talk-to, pickpocket and check-points. If I tell it to pickpocket it decides to click 'Talk-to'.

Problem 3: NPC Hopping……… I have absolutley no idea how that could be stopped lol… You know when there's multiple of one NPC and instead of just constantly pickpocketing the nearest mob, it will decide to go ahead and pickpocket it twice then pickpocket the guy across the damn map :duh:
Probably some sort of distancefrom/to function that I have no idea about XD..

Sorry if this is the wrong section O_o..

Luke-

Shuttleu

2010-12-02 08:49:07

From: Zota
Ok so I'm not a very good scripter :P.. the way I learn is I just take bits and pieces from different scripts and piece them together. Eventually learning what each part does.

So right now I got a few thieving scripts, pulled out procedures and changed certain parts here and there to make it do what I needed it to do. It's a thieving script for the Thieving guild. It's simply meant to find Npc, right click npc, left click 'pickpocket'. Repeat.

It IS possible to get 150k+ exp per hour doing this manually. For this however, the time between mousemovements and clicking pickpocket need to be minimal.

problem 1: Often the Mouse function wont be able to accurately click a moving NPC. Anyway to fix this so it's a perfect right click each time? I'm using BMPtostring. Would it help if I used NPC ID instead?

problem/annoyance 2: R_chooseoption/Multi doesn't seem to work at all for 'pickpocket'. In the list there is Talk-to, pickpocket and check-points. If I tell it to pickpocket it decides to click 'Talk-to'.

Problem 3: NPC Hopping……… I have absolutley no idea how that could be stopped lol… You know when there's multiple of one NPC and instead of just constantly pickpocketing the nearest mob, it will decide to go ahead and pickpocket it twice then pickpocket the guy across the damn map :duh:
Probably some sort of distancefrom/to function that I have no idea about XD..

Sorry if this is the wrong section O_o..

Luke-


1. use the NPC ID and find the nearest NPC then you will get the tile, you can use that to find the position on the screen

2. use SRL ChooseOptionMulti, the reflection one only seems to check for the first string

3. see 1.

~shut

Zota

2010-12-02 08:56:08

Sweet thanks Shut, I'll try what you said now :).


Edit:

I've done what Shut has said and it is actually much more accurate in general now. If the NPC moves though the mouse is always half a tile away from the NPC =/ I guess there's no way to make it 100% track the NPC. Not without insanely complex functions anyway lol.

Either way I'm probably getting 40k exp p/h :P

Cstrike

2010-12-02 11:52:05

If you have some code I can look over it and give you my recommendations, if you want that is :)

lordsaturn

2010-12-02 16:06:51

Apply for members!

Zota

2010-12-02 16:36:25

SRL member? :P I only know how to piece scripts together using others procedures/functions. I'm no good at doing it from scratch. lol =/

Luke-

Bad Boy JH

2010-12-02 20:32:46

I have offered him my assistance on MSN, so he can fix any issues.

i luffs yeww

2010-12-02 20:43:44

Zota, I can always help on msn, too. :) [email]panic._@live.com[/email]

Cstrike

2010-12-02 23:02:11

If you're going to use Reflection, you might as well FULLY do it in reflection and not use and BMP's. If you're missing something I can add it to the reflection core.