Jump to content
  • 0
IvanD

when equiped script / portal script

Question

1:: hello is there script that when you equip an item... it will automatically teleports you to certain location? (prontera, 99,99)

2:: portal that will return you to last location.

Edited by IvanD
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

1. { Script },{ OnEquip_Script },{ OnUnequip_Script }
On the onequip script you can use warp "prontera",99,99;

2. Last location before you equip the item?
You can save the current location before you execute warp command.

{},{ getmapxy(@last_map$,@last_x,@last_y,UNITTYPE_PC); warp "prontera",99,99; }, {}

Then for the portal

prontera,150,150,4	script	warp#lastmap	45,2,2,{
	if( @last_map$ != "")
		warp @last_map$,@last_x,@last_y;
	else
		warp "SavePoint",0,0;
	end;
}

 

Link to comment
Share on other sites

  • 0
5 minutes ago, Technoken said:

1. { Script },{ OnEquip_Script },{ OnUnequip_Script }
On the onequip script you can use warp "prontera",99,99;

2. Last location before you equip the item?
You can save the current location before you execute warp command.

{},{ getmapxy(@last_map$,@last_x,@last_y,UNITTYPE_PC); warp "prontera",99,99; }, {}

Then for the portal

prontera,150,150,4	script	warp#lastmap	45,2,2,{
	if( @last_map$ != "")
		warp @last_map$,@last_x,@last_y;
	else
		warp "SavePoint",0,0;
	end;
}

 

thank you very much for the fast answer.... i will try it soon.... thank you again! :]

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.