Jump to content
  • 0

Reset last warp map and coordinates OnPCLogOutEvent


Question

Posted

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

2 answers to this question

Recommended Posts

  • 1
Posted

This?
 

-	script	remove#var	-1,{
OnPCLogoutEvent:
	if(lastwarp$ != "")
		lastwarp$ = "";
	if(lastwarpx != 0)
		lastwarpx = 0;
	if(lastwarpy != 0)
		lastwarpy = 0;
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...