Jump to content
  • 1

@maprecall command


Question

Posted

Hi,

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

Thank you in advance.

19 answers to this question

Recommended Posts

  • 0
Posted
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

  • 0
Posted
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
  • 0
Posted
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.
  • 0
Posted
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?

  • 0
Posted
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
  • 0
Posted
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!

  • 0
Posted
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

  • 0
Posted
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 

  • 0
Posted
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

  • 0
Posted
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 

  • 0
Posted

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 

  • 0
Posted (edited)
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
  • 0
Posted (edited)

@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
  • 0
Posted (edited)
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
  • 0
Posted
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

  • 0
Posted
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...