Jump to content
  • 0

when equiped script / portal script


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 0
Posted

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;
}

 

  • 0
Posted
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! :]

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