karazu 33 Posted December 2, 2013 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. Quote Share this post Link to post Share on other sites
0 Mumbles 193 Posted December 2, 2013 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;} Quote Share this post Link to post Share on other sites
0 karazu 33 Posted December 2, 2013 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): Quote Share this post Link to post Share on other sites
0 Mumbles 193 Posted December 2, 2013 We don't use item_db2.txt anymore; we use item_db2.conf, which uses libconfig formatting. ----- Pseudocode: http://simple.wikipedia.org/wiki/Pseudocode Quote Share this post Link to post Share on other sites
0 karazu 33 Posted December 2, 2013 even item_db2? T_T ok2.. --- so its a SRC. I am dead haha! Quote Share this post Link to post Share on other sites
0 Mumbles 193 Posted December 2, 2013 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 Quote Share this post Link to post Share on other sites
0 karazu 33 Posted December 2, 2013 (edited) 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 December 2, 2013 by karazu Quote Share this post Link to post Share on other sites
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