canditw 0 Posted April 24, 2016 Is it possible to add a progress bar to the @go command so its like 3seconds before warping? so players cant quickly teleport away from danger, like I'd prefer them using butterfly wings to safety instead of @go command. Quote Share this post Link to post Share on other sites
0 Ridley 295 Posted April 24, 2016 try Mumbles @go script Quote Share this post Link to post Share on other sites
0 canditw 0 Posted April 24, 2016 Hmm, but it seems that the delay in mumble script is between usage. I would like something like after typing @go they'll have to wait for 3seconds before warping to the area. Quote Share this post Link to post Share on other sites
0 kenik 12 Posted April 24, 2016 (edited) You can place progressbar script command there. Simple example: function go { if (.deadlock && !Hp) { message strcharinfo(0), "You may not use @go when you are dead."; } else if (.town && !getmapflag(strcharinfo(3), mf_town)) { message strcharinfo(0), "You may only use @go in towns."; } else if (.delay && @go_delay > gettimetick(2)) { message strcharinfo(0), "You must wait "+ (@go_delay - gettimetick(2)) +" seconds before warping again."; } else if (BaseLevel < getarg(3)) { message strcharinfo(0), "You must be at least level "+ getarg(3) +" to warp to this map."; } else if (getgroupid() < getarg(4) || getmapflag(getarg(0), mf_nowarp)) { message strcharinfo(0), "You are not authorised to warp to this map."; } else if (.charge && Zeny < getarg(5)) { message strcharinfo(0), "You must have at least "+ getarg(5) +" zeny to warp to this map."; } else { if (.delay) { @go_delay = gettimetick(2) + .delay; } if (.charge) { Zeny -= getarg(5); } progressbar "0x000000",3; warp getarg(0), getarg(1), getarg(2); end; } message strcharinfo(0), "@go failed."; end; } P.S. I used function go from that topic Edited April 24, 2016 by kenik Quote Share this post Link to post Share on other sites
Is it possible to add a progress bar to the @go command so its like 3seconds before warping? so players cant quickly teleport away from danger, like I'd prefer them using butterfly wings to safety instead of @go command.
Share this post
Link to post
Share on other sites