undeadrex Posted February 27, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 02/27/12 Last Seen: September 18, 2017 Share Posted February 27, 2012 (edited) Edited February 27, 2012 by undeadrex Quote Link to comment Share on other sites More sharing options...
Brian Posted February 27, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted February 27, 2012 (edited) getmapmobs is not a script command anymore. It was removed in r15530 and merged into mobcount. Edited February 27, 2012 by Brian Quote Link to comment Share on other sites More sharing options...
undeadrex Posted February 27, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 02/27/12 Last Seen: September 18, 2017 Author Share Posted February 27, 2012 im getting this error if i use mobcount [Error]: Loading NPC file: npc/newerth/mvp.txt script error on npc/newerth/mvp.txt line 364 parse_callfunc: not enough arguments, expected ',' 362 : { 363 : if (getmapxy($@mapname$,@mapx,@mapy,0) != 0) goto M_End; * 364 : if (mobcount($@mapname$')') goto l_nos; Quote Link to comment Share on other sites More sharing options...
Brian Posted February 27, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted February 27, 2012 (edited) [Error]: Loading NPC file: npc/newerth/mvp.txtscript error on npc/newerth/mvp.txt line 364 parse_callfunc: not enough arguments, expected ',' 362 : { 363 : if (getmapxy($@mapname$,@mapx,@mapy,0) != 0) goto M_End; * 364 : if (mobcount($@mapname$')') goto l_nos; It's because you are using the command wrong. The syntax is: mobcount("<map name>","<event label>") Read the documentation in /trunk/doc/script_commands.txt or on the wiki page: mobcount. Edited February 27, 2012 by Brian Quote Link to comment Share on other sites More sharing options...
undeadrex Posted February 27, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 02/27/12 Last Seen: September 18, 2017 Author Share Posted February 27, 2012 hmm ... are u sure that " getmapmobs " is not a script command ?? cause i've seen other script, is using the getmapmobs command too Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 27, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 10 hours ago Share Posted February 27, 2012 yes..it is a script command...perhap it is dropped after update..xD correct me if i am wrong hahaa *getmapmobs("<map name>") This function will return the total count of monsters currently located on the specified map. If the map name is given as "this", the map the invoking character is on will be used. If the map is not found, or the invoker is not a character while the map is "this", it will return -1. anyway..use mobcount would be better than using getmapmobs Quote Link to comment Share on other sites More sharing options...
Brian Posted February 27, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted February 27, 2012 (edited) Well, currently it is not in /src/map/script.c I don't remember if it used to be a command and was removed. ah it was removed in r15530 Edited February 27, 2012 by Brian Quote Link to comment Share on other sites More sharing options...
undeadrex Posted February 27, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 02/27/12 Last Seen: September 18, 2017 Author Share Posted February 27, 2012 well ... i seriously have no idea how to use " mobcount " ... unless u can do me one from my script with the mobcount command ... i've tried using mobcount and event label ... but im receiving others errors @@ Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 27, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 10 hours ago Share Posted February 27, 2012 (edited) try this... [ Pastebin ] MVP / MiniBoss Summoner i unable to test script currently..due to my pc spoiled. i just sketch the script only..>.< Edited February 27, 2012 by Emistry Quote Link to comment Share on other sites More sharing options...
undeadrex Posted February 27, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 02/27/12 Last Seen: September 18, 2017 Author Share Posted February 27, 2012 [Error]: Loading NPC file: npc/newerth/mvp.txt script error on npc/newerth/mvp.txt line 15 parse_line: need ';' 10 : warp .@MapList$[ ( (( .@Room * 10 ) - 10 ) + .@Selected ) ],104,97; 11 : end; 12 : 13 : OnInit: 14 : set .MapLists$[0], * 15 : "mvp01"','"mvp02","mvp03","mvp04","mvp05","mvp06","mvp07","mvp08","mvp09","mvp10", // Room 01 - 10 16 : "mvp11","mvp12","mvp13","mvp14","mvp15","mvp16","mvp17","mvp18","mvp19","mvp20", // Room 11 - 20 17 : "mvp21","mvp22","mvp23","mvp24","mvp25","mvp26","mvp27","mvp28","mvp29","mvp30"; // Room 21 - 30 18 : end; 19 : } 20 : [Error]: npc_event: event not found [summoner#10::OnSummoned] Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 27, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 10 hours ago Share Posted February 27, 2012 use this.. [ Pastebin ] MVP / Miniboss Summoner Quote Link to comment Share on other sites More sharing options...
Question
undeadrex

Edited by undeadrexLink to comment
Share on other sites
10 answers to this question
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.