Advertisement
Sanwi

Durability HUD label

Jul 6th, 2014
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. $${
  2.  
  3. do;
  4. if((%DURABILITY% != 0) && (%ITEM% != "potion"));
  5. if(%DURABILITY% > 200);
  6. &color = b
  7. elseif(%DURABILITY% > 100);
  8. &color = 6
  9. else;
  10. &color = 4
  11. if(%DURABILITY% < 10);
  12. #volume = %SOUND%;
  13. volume(100);
  14. playsound(note.pling);
  15. wait(200ms);
  16. playsound(note.pling);
  17. wait(200ms);
  18. playsound(note.pling);
  19. wait(200ms);
  20. playsound(note.pling);
  21. volume(%#volume%);
  22. endif;
  23. endif;
  24. setlabel(durability,"&%&color%%DURABILITY%");
  25. else;
  26. setlabel(durability,"");
  27. endif;
  28. loop;
  29.  
  30. stop();
  31. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement