Warp Scroll

karazu

New member
Messages
1,115
Points
0
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.

 
You would add a script like this (pseudocode):

Code:
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;}
 
Last edited by a moderator:
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):

 
Last edited by a moderator:
even item_db2? T_T ok2..

---

so its a SRC.

I am dead haha!

 
Last edited by a moderator:
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

 
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

 
Last edited by a moderator:
Back
Top