Hello, i'm not sure if this is a bug (pleasemove if is not the correct section and sorry DD: ), but the following happened while i was testing some stuff:
Since progressbar says that if the player moves, the scrip stops and to resume the player would need to talk again to the npc o do the action that starts the script
*progressbar "<color>",<seconds>;
This command works almost like sleep2, but displays a progress bar
above the head of the currently attached character (like cast bar).
Once the given amount of seconds passes, the script resumes. If the
character moves while the progress bar progresses, it is aborted and
the script ends. The color format is in RGB (0xRRGGBB). The color is
currently ignored by the client and appears always green.
I tried to prevent the script to stop if the player moves, so i used pbblockmove so the player won't move
*pcblockmove <id>,<option>;
Prevents the given GID from moving when the option is 1, and enables the ID to
move again when the option is 0. This command will run for the attached player
if the given GID is zero.
Examples:
// Prevents the current char from moving away.
pcblockmove getcharid(3),1;
// Enables the current char to move again.
pcblockmove getcharid(3),0;
The problem is, that even if i use pcblockmove to prevent the player to move while the progressbar is there, the player can try to move by clicking out and the progressbar will still make the script stop.
I'm not sure if it's a bug, but it would be awesome to make it work as i tried to do, just saying.
Hmm also, the progressbar only displays in green, it wold be awesome too if someone somehow can make it display other colors.
Hmm i think this both 2 commands can be improved, any ideas o: ? thanks to all for your attention (: