Lissandra 0 Posted May 16, 2013 Hi guys, im looking for @maprecall but i didnt found one yet Quote Share this post Link to post Share on other sites
0 Enko 9 Posted May 16, 2013 (edited) I took the code from BrianL and I updated the code for Hercules. I didnt test it but it should work. Let me know if it works. maprecall.txt Edited May 16, 2013 by Enko Quote Share this post Link to post Share on other sites
0 Lissandra 0 Posted May 16, 2013 I testet it then @reloadatcommand but it dont work =/ Quote Share this post Link to post Share on other sites
0 Enko 9 Posted May 16, 2013 (edited) Test this second version, I changed something that it may fix your problem. maprecall.txt Edited May 16, 2013 by Enko Quote Share this post Link to post Share on other sites
0 Lissandra 0 Posted May 16, 2013 It still wont work =/ It still say Unk Command =/ Quote Share this post Link to post Share on other sites
0 Yommy 265 Posted May 16, 2013 are you recompiling the source code when you added the edit ? Quote Share this post Link to post Share on other sites
0 Lissandra 0 Posted May 16, 2013 It wont work T_____T Quote Share this post Link to post Share on other sites
0 Zopokx 7 Posted May 17, 2013 /*========================================== * Recall all characters on your map to your location *------------------------------------------*/ACMD(maprecall){ struct map_session_data* pl_sd; struct s_mapiterator* iter; int count; nullpo_retr(-1, sd); memset(atcmd_output, '0', sizeof(atcmd_output)); if (sd->bl.m >= 0 && map[sd->bl.m].flag.nowarpto) { clif->message(fd, "You are not authorized to warp someone to your actual map."); return false; } count = 0; iter = mapit_getallusers(); for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) ) { if (sd->status.account_id != pl_sd->status.account_id && pc_get_group_level(sd) >= pc_get_group_level(pl_sd) && pl_sd->bl.m == sd->bl.m) { if ( pl_sd->vender_id || pl_sd->chatID ) //Skip recalling players who are vending or in a chatroom count++; else { // atcommand_raise_sub(pl_sd); //Ressurect dead people pc_setpos(pl_sd, sd->mapindex, sd->bl.x, sd->bl.y, 2); } } } mapit_free(iter); clif->message(fd, "All characters on your map recalled!"); if (count) { sprintf(atcmd_output, "%d player(s) have not been recalled because they are vending or in a chatroom.", count); clif->message(fd, atcmd_output); } return true;} Remember to add ACMD_DEF(maprecall), in the atcommand_basecommands section, at the bottom. Quote Share this post Link to post Share on other sites
0 Lissandra 0 Posted May 17, 2013 It wont work T_T Quote Share this post Link to post Share on other sites
0 Zopokx 7 Posted May 17, 2013 It wont work T_T It is working for me, so... Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted May 17, 2013 You know you have to recompile your server with those modifications applied? In case you didn't, you will never get that command. Just do what Yommy said before and if you have that command properly installed and recompile your server (and have a recent Hercules version) you are 99% sure to get it working. Quote Share this post Link to post Share on other sites
0 mleo1 36 Posted May 18, 2013 this should be included in hercules. Ontopic just edit your source then recompile.or use this script if you dont like to edit source - script atcmd_maprecall -1,{ OnInit: bindatcmd("maprecall",strnpcinfo(3)+"::OnATC"); end; OnATC: if(getgmlevel()==0) end; getmapxy .@map$,.@x,.@y,0; mapwarp .@map$,.@map$,.@x,.@y,0;} 1 vBrenth reacted to this Quote Share this post Link to post Share on other sites
Hi guys,
im looking for @maprecall but i didnt found one yet
Share this post
Link to post
Share on other sites