nanakiwurtz Posted March 16, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted March 16, 2013 Is there any chance that any developer will finish the getmapxy code, especially for type #3? (Search for mob coordinate) Quote Link to comment Share on other sites More sharing options...
lekkereten Posted March 20, 2013 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 148 Reputation: 46 Joined: 11/02/11 Last Seen: November 25, 2024 Share Posted March 20, 2013 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. Quote Link to comment Share on other sites More sharing options...
Cydh Posted March 31, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted March 31, 2013 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 Quote Link to comment Share on other sites More sharing options...
Cydh Posted April 20, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted April 20, 2013 but, it's maybe possible if for getmapxy for mob, the result is stored on array.. Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted April 20, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Author Share Posted April 20, 2013 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 Quote Link to comment Share on other sites More sharing options...
Capuche Posted April 21, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted April 21, 2013 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. Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted April 21, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Author Share Posted April 21, 2013 @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. Quote Link to comment Share on other sites More sharing options...
Cydh Posted April 21, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted April 21, 2013 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 Quote Link to comment Share on other sites More sharing options...
Akinari Posted April 27, 2013 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 247 Reputation: 207 Joined: 10/23/12 Last Seen: March 2, 2022 Share Posted April 27, 2013 Linking to a bug report filed on this topic. http://rathena.org/board/tracker/issue-6206-getmapxy-mob-support/?catfilter=2 Quote Link to comment Share on other sites More sharing options...
Cydh Posted July 1, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted July 1, 2013 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 Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted July 2, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Author Share Posted July 2, 2013 I wonder why this idea doesn't get discussed Quote Link to comment Share on other sites More sharing options...
Cydh Posted July 2, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted July 2, 2013 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. Quote Link to comment Share on other sites More sharing options...
Stolao Posted July 3, 2013 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: March 19 Share Posted July 3, 2013 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. Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 3, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 3, 2013 Then it should be useful to return the gid of monster in monster, summon, clone commands Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 9, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: 22 hours ago Share Posted July 9, 2013 (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 July 9, 2013 by Skorm Quote Link to comment Share on other sites More sharing options...
Cydh Posted July 18, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted July 18, 2013 btw, I was waiting, u can use this mobsearch and getmapxy until they become official release getmapxy_type3-mobsearch-r17410.patch Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.