Jump to content

Recommended Posts

  • 2 weeks later...
Posted

on script.c, type 3 is commented, not supported.

        case 3:    //Get Mob Position

            break; //Not supported?

.

 

It's not related with GID.

 

so, if use type 3 for mob, the script will return an array?

example, find poring, script will gives all poring coordinates. LOL, a whole map? OMG

not like, getmapxy another type, only for 1 PC, NPC, Pet, Homun, mercenary, elemental

  • 3 weeks later...
Posted

Yes, I thought if there're lots of matches, it will be nice to have 127 nearest mobs from the player on an array ;)



Or maybe 2 arrays, one for X and one for Y

Posted

3 arrays with the map isn't it ?

 

However I don't undersand the use of this command for a mob. getmapxy is currently used to get the exact localisation of a specific object and in the current state, we can't get the gid of a specific mob. If you want the localisation of monsters, I suggest to adapt @whereis or @mobsearch command to npc command (in array) and leave getmapxy to search a specific objet, not a collection.

 

It's just my point of view.

Posted

@Cydh: Yes it's commented because it still doesn't has any code on it.

 

@Capuche: Hmm.. I thought I could use this command to get coords of some specified mobs, so I could mark them on minimap, it will be very useful on quests and games.

Posted

However I don't undersand the use of this command for a mob. getmapxy is currently used to get the exact localisation of a specific object and in the current state, we can't get the gid of a specific mob. If you want the localisation of monsters, I suggest to adapt @whereis or @mobsearch command to npc command (in array) and leave getmapxy to search a specific objet, not a collection.

 

It's just my point of view.

so, delete the type for it. xD
  • 2 months later...
Posted

anyone disagree to make mobsearch script command?

 

*mobsearch "<mapname>",<class id>{,"<event label>"};
 

Returns some arrays that store specified monster's coordinates. Will returns

a value -1 if there is invalid mapname or class id are given.

If the 'event label' is given, only search monster(s) with same 'event label'.

 

$@mobID[]    - monster's GID

$@mobX[]    - monster's x

$@mobY[]    - monster's y

 

Beside can input the mapname value with specified map, can also input "all"

to search all monsters in every map and returns an additional array.

 

$@mobMap$[]    - monster's mapname

 

NOTE: Only show maximum 128 results.

 

and also, related ont his topic fro getmapxy type 3, can use monster GID to support it, so getmapxy will be like this

 

*getmapxy("<variable for map name>",<variable for x>,<variable for y>,<type>{,"<search string>"{,"<event label>"}})
 

NOTE ONLY FOR TYPE IS 3, YOU SHOULD FOLLOW ONE OF THESE

  • If you put the value of 'event label', you must put monster id into  'search string', and you will get the latest one of the matching monsters
  • You also can use GID if you know the GID that you want to use. can use the GID list from mobsearch script command
Posted

I wonder why this idea doesn't get discussed

 

because mobsearch is 'custom' and maybe getmapxy type 3 never be used on official script maybe.

Posted

anyone disagree to make mobsearch script command?

*mobsearch "<mapname>",<class id>{,"<event label>"};

Returns some arrays that store specified monster's coordinates. Will returns

a value -1 if there is invalid mapname or class id are given.

If the 'event label' is given, only search monster(s) with same 'event label'.

$@mobID[] - monster's GID

$@mobX[] - monster's x

$@mobY[] - monster's y

Beside can input the mapname value with specified map, can also input "all"

to search all monsters in every map and returns an additional array.

$@mobMap$[] - monster's mapname

NOTE: Only show maximum 128 results.

and also, related ont his topic fro getmapxy type 3, can use monster GID to support it, so getmapxy will be like this

*getmapxy("<variable for map name>",<variable for x>,<variable for y>,<type>{,"<search string>"{,"<event label>"}})

NOTE ONLY FOR TYPE IS 3, YOU SHOULD FOLLOW ONE OF THESE

  • If you put the value of 'event label', you must put monster id into 'search string', and you will get the latest one of the matching monsters
  • You also can use GID if you know the GID that you want to use. can use the GID list from mobsearch script command

I don't see a problem with adding this, but I also don't see any real usefulness either.

Posted (edited)

 and also, related ont his topic fro getmapxy type 3, can use monster GID to support it, so getmapxy will be like this

 

*getmapxy("<variable for map name>",<variable for x>,<variable for y>,<type>{,"<search string>"{,"<event label>"}})
 

NOTE ONLY FOR TYPE IS 3, YOU SHOULD FOLLOW ONE OF THESE

  • If you put the value of 'event label', you must put monster id into  'search string', and you will get the latest one of the matching monsters
  •  
  • You also can use GID if you know the GID that you want to use. can use the GID list from mobsearch script command
  •  

 

 

I really don't care to much about searching a whole maps worth of monsters when I could just use an event label from the permanent spawn.[2] The ability to return their GIDs is pretty cool though... Which makes me think that we should have a variable for OnMobDeathLabels filled with the gid kinda like Killerrid/killedrid. killedgid...

 

What I'm really interested in is searching the information of one attached mob as he travels the land of RO...

 

With your comment about getmapxy are you saying it could be used to search and return mob position information based on GID as it stands in the current trunk?[1] Or would that be something you'd implement later, and I'm also a little confused on the usage?

 

set .@gid,bg_monster(.@bg,"prontera",100,100,"Poringz0rd",1002);
getmapxy(.@map$,.@x,.@y,3,.@gid+"");

Anyways that's my two cents... Thumbs up to the whole project.

 


[1] Looked at the source...

		case 3:	//Get Mob Position
			break; //Not supported?

 

[2]Thought about it and getting monster information BEFORE it dies could be useful. Nanakiwartz idea helped.

 

Hmm.. I thought I could use this command to get coords of some

specified mobs, so I could mark them on minimap, it will be very useful

on quests and games.

Edited by Skorm
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...