Jump to content
  • 1

@maprecall command


lexaeus

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

Hi,

May I request for a working @maprecall wherein I can recall all characters within the map into one place.

Thank you in advance.

Link to comment
Share on other sites

19 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

16 hours ago, lexaeus said:

Hi,

May I request for a working @maprecall wherein I can recall all characters within the map into one place.

Thank you in advance.

as a GM you can use @recallall for that

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

1 hour ago, lexaeus said:

Hi,

May I request for a working @maprecall wherein I can recall all characters within the map into one place.

Thank you in advance.

-	script	MapRecall	-1,{
		OnInit:        
	bindatcmd "maprecall",strnpcinfo(3)+"::OnMapRecall",70,70;
		end;    
	OnMapRecall:
		if(getgmlevel()==0) end;
		getmapxy .@map$,.@x,.@y,0;
		mapwarp .@map$,.@map$,.@x,.@y,0;
	}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

57 minutes ago, Questune09 said:

as a GM you can use @recallall for that

@recallall - Warps every character online to you. 
I'm looking for a custom command wherein I can recall all players within the area.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

54 minutes ago, Cyro said:

-	script	MapRecall	-1,{
		OnInit:        
	bindatcmd "maprecall",strnpcinfo(3)+"::OnMapRecall",70,70;
		end;    
	OnMapRecall:
		if(getgmlevel()==0) end;
		getmapxy .@map$,.@x,.@y,0;
		mapwarp .@map$,.@map$,.@x,.@y,0;
	}

 

Hi Cyro, in this script I can recall all players within the map? moving forward, where should I put this script and is there any script should I add to make @maprecall work?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

3 minutes ago, lexaeus said:

Hi Cyro, in this script I can recall all players within the map? moving forward, where should I put this script and is there any script should I add to make @maprecall work?

Just add this script as npc script, 

And reloadscript or reloadnpc/restart server to make it work, and thats it

And when command used all players within the map comes the command casting character, and level zero group cant use command

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

12 hours ago, Cyro said:

Just add this script as npc script, 

And reloadscript or reloadnpc/restart server to make it work, and thats it

And when command used all players within the map comes the command casting character, and level zero group cant use command

Thank you very much @Cyro is it safe to say the on a plain notepad I simply add this script. No need to add atcommand. Thanks a lot cheers!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

On 4/25/2017 at 9:54 AM, lexaeus said:

Thank you very much @Cyro is it safe to say the on a plain notepad I simply add this script. No need to add atcommand. Thanks a lot cheers!

Hi Guys,

@maprecall is still not working? help anyone

 

TIA

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

7 hours ago, lexaeus said:

Hi Guys,

@maprecall is still not working? help anyone

 

TIA


any console errors? a bit more information would be helpful 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

11 hours ago, Cyro said:


any console errors? a bit more information would be helpful 

Hi @Cyro I'm not getting any errors. I just followed your guide.

Correct me if I'm wrong I just simply copied the script and save in notepad.

restarted the server and execute the command @maprecall but nothing happens. Also is it possible to make another script for @quest or @mall there will be a pop up window wherein you can buy.

TIA

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

G

Follow this guide and add your script in proper way

https://github.com/rathena/rathena/wiki/Adding-a-Script

 

And regarding your other question there is @minimart script in script release section with callshop function 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   1
  • Joined:  04/14/17
  • Last Seen:  

On 4/24/2017 at 7:03 PM, Cyro said:

-	script	MapRecall	-1,{
		OnInit:        
	bindatcmd "maprecall",strnpcinfo(3)+"::OnMapRecall",70,70;
		end;    
	OnMapRecall:
		if(getgmlevel()==0) end;
		getmapxy .@map$,.@x,.@y,0;
		mapwarp .@map$,.@map$,.@x,.@y,0;
	}

 

dear @Cyro

 

hello sir. can i ask something? how this work? i already inputing the script and yes the commands actually doing something. but it's only doing a black screen for a moment and not warping player or me to other map.

 

what is the proper command to use this script?

 

thank you for your cool script btw 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

this script wont recall players from other map, it will warp the players to the to the gm(the one who used the command) location,

it will also warp gm to same location so it will show as black screen 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

On 4/24/2017 at 6:49 PM, lexaeus said:

wherein I can recall all characters within the map into one place.

@lexaeus @padangyoesa I believe this part:

if(getgmlevel()==0) end;

should be:

if(getgmlevel() > 0) end;

 

with the changes above, all characters will be warped to your current location except GMs.
I hope this would solve your problem ;) 

 

please do add 'end;' after 'mapwarp' and it should look like this:

mapwarp .@map$,.@map$,.@x,.@y,0;
end;

 

Edited by Aureon
no end; at the last part of the script
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   1
  • Joined:  04/14/17
  • Last Seen:  

ah so if i type @maprecall prontera, every players in the prontera will be warped at me right?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

@padangyoesa You don't have to add the name of the map, just use @maprecall and it would automatically warp all players on the map to your current location.

Edited by Aureon
haven't noticed he mentioned the mapname
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   1
  • Joined:  04/14/17
  • Last Seen:  

ah i see. thank you so much @Aureon for the explanation!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

3 hours ago, Aureon said:

@lexaeus @padangyoesa I believe this part:


if(getgmlevel()==0) end;

should be:


if(getgmlevel() > 0) end;

 

with the changes above, all characters will be warped to your current location except GMs.
I hope this would solve your problem ;) 

 

Not quite, that check is for preventing the usage of the command for players. If your check it for everything above 0 than even an gm can't use it, since it will end it immediately.

Regards,

Chris

Edited by llchrisll
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

1 hour ago, llchrisll said:

that check is for preventing the usage of the command for players

bindatcmd "maprecall",strnpcinfo(3)+"::OnMapRecall",70,70;

the first 70 is the command level so no one under the group 70 can use the command

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Just now, sader1992 said:

bindatcmd "maprecall",strnpcinfo(3)+"::OnMapRecall",70,70;

the first 70 is the command level so no one under the group 70 can use the command

I know that, but I meant the getgmlevel, if you check for anything above 0 it, no gm would be able to use this. Would have removed that check anyway, when he uses the parameters anyway.

I hope I made it more understandable, what I wanted to say.

Regards,

Chris

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
Answer this question...

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