Jump to content
  • 0

for teleporting when you level up in 99 lvl go back in prontera


Question

Posted

how to make a command when you get level 99 you will back in prontera


also i need when you log out you can't back on there or nosave how to implement in certain map

1 answer to this question

Recommended Posts

Posted

how to make a command when you get level 99 you will back in prontera

-	script	auto_warp_	-1,{
OnPCBaseLvUpEvent:
	if( BaseLevel == 99 )
		warp "prontera",0,0;// auto warp when reached level 99
	end;
}

 

 

 

 

 

also i need when you log out you can't back on there

I suggest Mapflag#nosave

 

conf/mapflag/nosave.txt

 

//===== rAthena Script =======================================

//= Mapflag: Disable auto-save.

...

//= Characters logging out on the specified map will be warped

//= to the map specified in the last field, or "SavePoint".

 

 

 

 

 

nosave how to implement in certain map

If you want to prohibit @save command on a map, I suggest this npc script

-	script	nosave_	-1,{
OnInit:
	setarray .@map_restrited$, "prontera", "geffen";// add more restricted maps here - players can't use @save on these maps
	bindatcmd "save",strnpcinfo(3)+"::OnAtcommand";
	.map_nosave$ = implode( .@map_restrited$, "|" );
	end;
OnAtcommand:
	getmapxy .@map$, .@x, .@y, 0;
	if( compare( .map_nosave$, .@map$ ) )
		message strcharinfo(0), "You can't save here.";
	else {
		savepoint .@map$, .@x, .@y;
		message strcharinfo(0), "Your save point has been changed.";
	}
	end;
}

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