Jump to content
  • 0

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


hexor9

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   0
  • Joined:  11/16/11
  • Last Seen:  

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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