lirycjames Posted October 4, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 08/20/13 Last Seen: January 13, 2017 Share Posted October 4, 2013 Hi everyone!! requesting for @recallmap commands Thanks! Quote Link to comment Share on other sites More sharing options...
1 Capuche Posted November 8, 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 November 8, 2013 The delay is because of the update delay of char.last_map try - script atcmd_examplere -1,{ OnInit: bindatcmd "recallmap",strnpcinfo(3)+"::OnAtcommand",60,60; end; OnAtcommand: getmapxy .map_self$, .x_self, .y_self, 0; .myname$ = strcharinfo(0); .count = 0; addrid 0; if ( strcharinfo(3) == .map_self$ && strcharinfo(0) != .myname$ ) { message strcharinfo(0), "You have been recalled by "+ .myname$ +"."; warp .map_self$, .x_self, .y_self; .count++; } if ( strcharinfo(0) != .myname$ ) end; sleep2 10; if ( .count == 0 ) message strcharinfo(0), "There is none player on this map except you."; else message strcharinfo(0), .count +" player(s) recalled."; end; } 1 Quote Link to comment Share on other sites More sharing options...
Patskie Posted October 4, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 5 hours ago Share Posted October 4, 2013 try http://rathena.org/board/topic/73701-recallmap-command/ Quote Link to comment Share on other sites More sharing options...
Capuche Posted October 4, 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 October 4, 2013 or try - script atcmd_examplere -1,{ OnInit: bindatcmd "recallmap",strnpcinfo(3)+"::OnAtcommand",60,60; end; OnAtcommand: .@count = query_sql( "select `char_id`, name from `char` where `last_map` = '"+ strcharinfo(3) +"' and `char_id` != "+ getcharid(0) +" and online = 1 limit 128", .@char_id, .@name$ ); if ( .@count == 0 ) message strcharinfo(0), "There is none player on this map except you."; else { getmapxy .@map$, .@x, .@y, 0; .@myname$ = strcharinfo(0); while( .@i < .@count ) { warpchar .@map$, .@x, .@y, .@char_id[.@i]; message .@name$[.@i], "You have been recalled by "+ .@myname$ +"."; .@i++; } message strcharinfo(0), .@count +" player(s) recalled."; } end; } 1 Quote Link to comment Share on other sites More sharing options...
lirycjames Posted November 8, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 08/20/13 Last Seen: January 13, 2017 Author Share Posted November 8, 2013 (edited) - script atcmd_examplere -1,{OnInit: bindatcmd "recallmap",strnpcinfo(3)+"::OnAtcommand",60,60; end; OnAtcommand: .@count = query_sql( "select `char_id`, name from `char` where `last_map` = '"+ strcharinfo(3) +"' and `char_id` != "+ getcharid(0) +" and online = 1 limit 128", .@char_id, .@name$ ); if ( .@count == 0 ) message strcharinfo(0), "There is none player on this map except you."; else { getmapxy .@map$, .@x, .@y, 0; .@myname$ = strcharinfo(0); while( .@i < .@count ) { warpchar .@map$, .@x, .@y, .@char_id[.@i]; message .@name$[.@i], "You have been recalled by "+ .@myname$ +"."; .@i++; } message strcharinfo(0), .@count +" player(s) recalled."; } end; } this one is working.. but.. I think theres a 2-3 minutes delay when using @recallmap when I jump in different maps.. Edited November 8, 2013 by lirycjames Quote Link to comment Share on other sites More sharing options...
lirycjames Posted November 8, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 08/20/13 Last Seen: January 13, 2017 Author Share Posted November 8, 2013 The delay is because of the update delay of char.last_map try - script atcmd_examplere -1,{ OnInit: bindatcmd "recallmap",strnpcinfo(3)+"::OnAtcommand",60,60; end; OnAtcommand: getmapxy .map_self$, .x_self, .y_self, 0; .myname$ = strcharinfo(0); .count = 0; addrid 0; if ( strcharinfo(3) == .map_self$ && strcharinfo(0) != .myname$ ) { message strcharinfo(0), "You have been recalled by "+ .myname$ +"."; warp .map_self$, .x_self, .y_self; .count++; } if ( strcharinfo(0) != .myname$ ) end; sleep2 10; if ( .count == 0 ) message strcharinfo(0), "There is none player on this map except you."; else message strcharinfo(0), .count +" player(s) recalled."; end; } error on " line 9 " after i reload the script .. and it can't recall players on map, it always say "There is none player on this map except you." .. thank you for the reply Quote Link to comment Share on other sites More sharing options...
Patskie Posted November 8, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 5 hours ago Share Posted November 8, 2013 If you are using rAthena. Update your files Quote Link to comment Share on other sites More sharing options...
lirycjames Posted November 9, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 08/20/13 Last Seen: January 13, 2017 Author Share Posted November 9, 2013 If you are using rAthena. Update your files how can I update my files? Quote Link to comment Share on other sites More sharing options...
Patskie Posted November 9, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 5 hours ago Share Posted November 9, 2013 I guess you are using SVN. Change to git (http://rathena.org/board/topic/87120-transitioning-from-svn-to-git/) since most of the updates will be commited to git. Quote Link to comment Share on other sites More sharing options...
Question
lirycjames
Hi everyone!!
requesting for @recallmap commands
Thanks!

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