lockMap_randX and lockMap_randY

International

Moderator: Moderators

Message
Author
nuberamous
Human
Human
Posts: 24
Joined: 15 Oct 2008, 09:23
Noob?: Yes

lockMap_randX and lockMap_randY

#1 Post by nuberamous »

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!

yoshi
Noob
Noob
Posts: 11
Joined: 04 Apr 2008, 19:26

Re: lockMap_randX and lockMap_randY

#2 Post by yoshi »

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.

nuberamous
Human
Human
Posts: 24
Joined: 15 Oct 2008, 09:23
Noob?: Yes

Re: lockMap_randX and lockMap_randY

#3 Post by nuberamous »

thanks thats exactly what I was looking for yoshi, your awesome!

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: lockMap_randX and lockMap_randY

#4 Post by Technology »

Here's a visual representation and some examples:
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!

Post Reply