Jump to content
  • 0

Request > Sample of use progress bar


Dolphin86

Question


  • Group:  Members
  • Topic Count:  255
  • Topics Per Day:  0.06
  • Content Count:  706
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

hye i need a sample simple use of progress bar, 

situasion :

player click to npc, npc will ask start or cancel,

if player pick start it will start progress bar for 1 minute,

if player move during 1 minute progress bar will cancel all process are cancel

if player complete that 1 mins progress bar, player recive item

i just need a sample or an example to make this type of script...

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  255
  • Topics Per Day:  0.06
  • Content Count:  706
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

Posted (edited)
new_1-3,114,64,6    script    Stone Pile    11003,{

    mes "Hello!";
    next;
    addtimer 10,strnpcinfo(0)+"::OnTest";
    progressbar "0x00ff00",5;
    mes "OK";
    close;
OnTest:
    end;

}

 

Edited by Dolphin86
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  132
  • Reputation:   53
  • Joined:  06/02/12
  • Last Seen:  

Hey

new_1-3,114,64,6	script	Stone Pile	1_JOURNEY_STONE_D,{

	mes "I need to stay put for 60 seconds so that the stones can activate.";
	next;
	if (select("Start", "Cancel") == 2) {
		close;
	}
	mes "Let's start.";
	close2;

	progressbar "3131FF",60;
	getitem 720, 1;
	
	specialeffect EF_FLOWERCAST;
	end;
}

 

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...