Jump to content
  • 0

Devil Square, that will automaticaly warp a dead player


bluememi

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/08/13
  • Last Seen:  

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

1 answer 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:  

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

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