Jump to content
  • 0

Save Spot Issue


Question

Posted

My Kafra script uses @save to save the player's location. After recently updating my svn to the latest, my players have been complaining that they can't save anywhere.

I checked the map server and saw the following debug.

[Debug]: Source (NPC): Kafra Employee#gonr1 at gonryun (159,122)
[Warning]: script: buildin_atcommand: failed to execute command '@save '
The gms are able to save (since their levels are higher) but normal players can't save.

This is the saving part of the script:

prontera,147,171,5	script	Kafra Employee#E1	114,{
	cutin .cutin$[atoi(strnpcinfo(2))],2;
	mes "^00C5EF[Kafra Employee]^000000";
	mes "Welcome~!";
	mes "The Kafra Services";
	mes "are always on your side.";
	mes "So how can I help you?";
	next;
	switch(select("^FF6F60Save^000000:^79D305Heal^000000:^29E67DUse Storage^000000:^00BBEAUse Teleport Service^000000:^A84BD3Rent a Pushcart^000000")) {
		case 1:
			mes "^00C5EF[Kafra Employee]^000000";
			mes "Your Respawn Point";
			mes "has been saved here.";
			atcommand "@save "+@player$;
			close2;
			cutin "",255;
			end;

2 answers to this question

Recommended Posts

Posted
getmapxy(.@map$,.@x,.@y,0);
savepoint .@map$,.@x,.@y;

Or you can try detaching the player from the script so the npc uses the command.

mes "^00C5EF[Kafra Employee]^000000";
mes "Your Respawn Point";
mes "has been saved here.";
set(.@char$,strcharinfo(0));
close2;
cutin "",255;
detachrid;
atcommand "@save "+.@char$;
end;
  • Upvote 1

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