Jump to content
  • 0

Teleport with condition


Question

Posted

Hello everyone,

 

I explain my idea: i want that a player who click on 'to village' is teleported to a special destination (teletolocation(x,y,z)) but ONLY if he click on to village..

So I've just add this in L2Character.java

if ((this instanceof L2PcInstance) && (((L2PcInstance) this).iskarma() ))
			                   {
									teleToLocation(Config.KARMAX, Config.KARMAY, Config.KARMAZ);
			                   } 

 

But when a player or a GM resurrect him, he go on the teletolocation..

How can i do this?

 

Cordially,

Bleadd

 

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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