Jump to content

Getmapxy type #3 hasn't written yet?


nanakiwurtz

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Is there any chance that any developer will finish the getmapxy code, especially for type #3? (Search for mob coordinate)  /hmm

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   46
  • Joined:  11/02/11
  • Last Seen:  

I guess it was part of the GID-thingy. It needs to be reworked.

 

Read http://rathena.org/board/tracker/issue-4999-mob-control-command-reference-at-script-commands/'>this and specially AnnieRuru's reply.

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

but, it's maybe possible if for getmapxy for mob, the result is stored on array..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

@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.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  247
  • Reputation:   207
  • Joined:  10/23/12
  • Last Seen:  

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

I wonder why this idea doesn't get discussed

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Then it should be useful to return the gid of monster in monster, summon, clone commands

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

 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
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

btw, I was waiting, u can use this mobsearch and getmapxy until they become official release

 

getmapxy_type3-mobsearch-r17410.patch

Link to comment
Share on other sites

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.

×
×
  • Create New...