Jump to content
  • 0

Random gift box with progress bar


Mabuhay

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

basically, a box when opened will give random item reward with a success chance. sample, yggdrasil berry will be attained with a chance of 60%, yggdrasil seed will be attained with a chance of 40%, gold will be attained for 2%. the thing here is that, once the box is opened, there will be  a progress bar for like 2 secs before the item is attained. my purpose of this is to prevent unwanted spam of the box.

 

also, if someone happens to receive an item with a success chance of 5% and below will announce to the whole server that player1 has attain a rare item [item name]

 

 

Thanks in advance :3

 

Done with the box and rewards, all i need is the progress bar thingy. Please help :(

Edited by MrVandalBus
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Item script part :

{ addtimer 1,"Dummy::Onmachin"; progressbar "FFFF00",2; /* give item */ },{},{}

NPC part :

-	script	Dummy	-1,{ Onmachin: }
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...