Adding progressbar to @go command

canditw

New member
Messages
78
Points
0
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.

 

 
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.

 
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

 
Last edited by a moderator:
Back
Top