Jump to content
  • 0

Reset last warp map and coordinates OnPCLogOutEvent


iraciz

Question


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Good day, This is [Euphy] rathena custom npc default warper.

Any way to reset last warp map and coordinates OnPCLogOutEvent

 

	if (lastwarp$ == "")
		message strcharinfo(0),"You haven't warped anywhere yet. Last warp resets with logout.";
	else
		warp lastwarp$,lastwarpx,lastwarpy;
	end;

 

 

function Go {
    set lastwarp$, getarg(0);
    set lastwarpx, getarg(1,0);
    set lastwarpy, getarg(2,0);
    warp getarg(0),getarg(1,0),getarg(2,0);
    end;
}

 

Help please

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   68
  • Joined:  10/25/20
  • Last Seen:  

This?
 

-	script	remove#var	-1,{
OnPCLogoutEvent:
	if(lastwarp$ != "")
		lastwarp$ = "";
	if(lastwarpx != 0)
		lastwarpx = 0;
	if(lastwarpy != 0)
		lastwarpy = 0;
end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Thankyou @cook1e, It worked perfect!

 

image.thumb.png.720cb132490131cb24cea578d2ed9ace.png

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