Jump to content
  • 0
Sign in to follow this  
karazu

Warp Scroll

Question

Is it possible to make an Item that if you click it you are allowed to choose what location do u want to warp to..


Just like warp portal of priest but the different is you can change the coordinates and the MAP Via script.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

You would add a script like this (pseudocode):

 

switch (select("Option 1:Option 2:Option 3")) {		// Map names	setarray .@map_name$[0],	"map_name",					"map_name2",					"map_name3";		// Coordinates	setarray .@coords[0],	50, 50,				60, 60,				70, 70;		// Menu options	setarray .@options$[0],	"Option 1",				"Option 2",				"Option 3";	// Menu dialogue	menu implode(.@options$, ":"), -;	.@i = @menu - 1;	.@x = .@i * 2;	.@y = .@x + 1;		// Warp to target map		specialeffect2 EF_PORTAL	warp .@map_name$[.@i], .@coords[.@x], .@coords[.@y];	close;}

Share this post


Link to post
Share on other sites
  • 0

 

You would add a script like this (pseudocode):

switch (select("Option 1:Option 2:Option 3")) {		// Map names	setarray .@map_name$[0],	"map_name",					"map_name2",					"map_name3";		// Coordinates	setarray .@coords[0],	50, 50,				60, 60,				70, 70;		// Menu options	setarray .@options$[0],	"Option 1",				"Option 2",				"Option 3";	// Menu dialogue	menu implode(.@options$, ":"), -;	.@i = @menu - 1;	.@x = .@i * 2;	.@y = .@x + 1;		// Warp to target map		specialeffect2 EF_PORTAL;	warp .@map_name$[.@i], .@coords[.@x], .@coords[.@y];	close;}

 

 

 

 

So How I am going to put that in Item_db2.txt?

 

 

 

 

Also I dont know what is

 

 (pseudocode):

 

 

Share this post


Link to post
Share on other sites
  • 0

It's not a source modification; it was just an example script. You would have to configure it to your liking and place it in the Script field in your item_db2.conf

Share this post


Link to post
Share on other sites
  • 0

 

Pseudocode (sometimes written as pseudo-code) is a form of source code that is written for humans, not machines, to read. It is often written to show how an algorithm works.

Just according to the link.

 

 

 

well anyways thank you for the answer

Edited by karazu

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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