Not sure how do use this, and the guide on here tells me to just put numbers.
How do I seperate the location I want to be around? say like this:
lockMap pay_fild02
lockMap_x
lockMap_y
lockMap_randX 33 102
lockMap_randY 43 102
would that keep my char within 33 and 43 location? or am I to only put the x and y values like 33 for x and 102 for y and he stays in the surrounding area?
Hope I made sense, thanks for any help!
lockMap_randX and lockMap_randY
Moderator: Moderators
-
- Human
- Posts: 24
- Joined: 15 Oct 2008, 09:23
- Noob?: Yes
Re: lockMap_randX and lockMap_randY
I'll give you an example:
lockMap pay_fild02
lockMap_x 120
lockMap_y 150
lockMap_randX 50
lockMap_randY 25
This means the centre of where your bot will randomly walk is (120, 150) and it will randomly walk to points that are between 50 x-coordinates left or right of your centre and also between 25 y-coordinates up or down from your centre as well. So your bot can walk anywhere from (70, 175 which is the top left corner of your rectangle) to (200, 125, which is the bottom right corner of your rectangle). As far as I know, this only allows your bot to walk in random points in a set rectangle and not any other shapes.
lockMap pay_fild02
lockMap_x 120
lockMap_y 150
lockMap_randX 50
lockMap_randY 25
This means the centre of where your bot will randomly walk is (120, 150) and it will randomly walk to points that are between 50 x-coordinates left or right of your centre and also between 25 y-coordinates up or down from your centre as well. So your bot can walk anywhere from (70, 175 which is the top left corner of your rectangle) to (200, 125, which is the bottom right corner of your rectangle). As far as I know, this only allows your bot to walk in random points in a set rectangle and not any other shapes.
-
- Human
- Posts: 24
- Joined: 15 Oct 2008, 09:23
- Noob?: Yes
Re: lockMap_randX and lockMap_randY
thanks thats exactly what I was looking for yoshi, your awesome!
-
- Super Moderators
- Posts: 801
- Joined: 06 May 2008, 12:47
- Noob?: No
Re: lockMap_randX and lockMap_randY
Here's a visual representation and some examples:
http://forums.openkore.com/viewtopic.ph ... 663#p11351
http://forums.openkore.com/viewtopic.ph ... 663#p11351
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...
Mount Doom awaits us, fellowship of OpenKore!
One ST_kRO to bring them all and in the darkness bind them...
Mount Doom awaits us, fellowship of OpenKore!