Jump to content
  • 0

Save Spot Issue


Dori

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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;
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

Thank you so much Skorm! As always you are my savior~ xD

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