Jump to content
  • 0

when equiped script / portal script


IvanD

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

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