Jump to content
  • 0

Devil Square, that will automaticaly warp a dead player


Question

Posted (edited)

hello.. everyone..

When player killed automaticly warp back to save point or any map..

I've tried this one but it was not working..

 

OnPCDieEvent:
	getmapxy(.@map$,.@x,.@y,0);
	if(.@map$=="input event map here") {
		warp "map where the player will be warped",x position,y position; // to check the map,x,y just type in game /where
		end;
	}
	end;

 

or this one

 

OnPCDieEvent:
	getmapxy .@mapnvz$,.@xnvz,.@ynvz,0;
	if ( .@mapnvz$ == "g_room1-3") {
		sleep2 1;
		warp "brasilis",200,149;
	}

 

and where I should put that script?

thank you so much ^^

Edited by Skorm
Added Code Tags

1 answer to this question

Recommended Posts

Posted
-	script	GrimReaperEffect	-1,{
OnPCDieEvent:
	if(strcharinfo(3)=="devilsquaremapname")
		warp "SavePoint",0,0;
	end;
}

 

You have to change devilsquaremapname to the map that devil square is on... You can get that name with /where.

 

I'm not sure if the labels were changed from eAthena -> rAthena, but may I ask what emulator are you using?

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