Advertisement
haverex

Untitled

Sep 16th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. #item generator by haverex
  2.  
  3. on script load:
  4. send "&ePomyslnie załadowano: items_005" to all players
  5.  
  6. #set {ig.dmg2} to {_ig.lvl} * 1
  7. #set {ig.dmg3} to {_ig.lvl} * 2
  8.  
  9. command /ig [<text>] [<text>] [<text>] [<text>]:
  10. permission: generatoritem
  11. trigger:
  12. if arg 1 is not set:
  13. send ""
  14. send "&a/ig stworz &7 (id) (od lvl) (nazwa)"
  15. send ""
  16. send "&6(item) - Helm, Napiersnik, Spodnie, Buty"
  17. send ""
  18. if arg 1 is "stworz":
  19. set {_ig.id} to "%arg 2%"
  20. set {_ig.lvl} to arg-3
  21. set {_ig.lvl} to {_ig.lvl} parsed as integer
  22. if {_ig.lvl} > 2:
  23. set {ig.dmg2} to {_ig.lvl} * 1
  24. else:
  25. set {ig.dmg2} to 1
  26. set {ig.dmg3} to {_ig.lvl} * 2
  27. set {ig.dmg2} to {ig.dmg2} parsed as integer
  28. set {ig.dmg3} to {ig.dmg3} parsed as integer
  29. set {_lvl} to 0
  30. set {_attnb} to 0
  31. if {_ig.lvl} > 1:
  32. loop 100 times:
  33. add 0.10 to {_attnb}
  34. add 1 to {_lvl}
  35. if {_ig.lvl} is {_lvl}:
  36. set {ig.att1.1} to {_attnb}
  37. set {ig.att1.2} to {_attnb} + 0.08
  38. if {_ig.lvl} > 1:
  39. set {ig.att1.1} to {ig.att1.1} - 0.09
  40. else:
  41. set {ig.att1.1} to 0
  42. set {ig.att1.2} to 0.10
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. set {ig.att1.1} to {ig.att1.1} parsed as integer
  50. set {ig.att1.2} to {ig.att1.2} parsed as integer
  51. send "Attrubty: %{ig.att1.1}% %{ig.att1.2}%"
  52. set {ig.dmg} to a random integer between {ig.dmg2} and {ig.dmg3}
  53. send "Dmg od %{ig.dmg2}% do %{ig.dmg3}%"
  54. set {ig.d1} to ""
  55. set {ig.d2} to ""
  56. set {ig.d3} to ""
  57. set {ig.status.d1} to false
  58. set {ig.status.d2} to false
  59. set {ig.status.d3} to false
  60. set {ig.status.d4} to false
  61. loop 3 times:
  62. chance of 50%:
  63. set {ig.numer.attrybut} to 1 or 2 or 3 or 4
  64. if {ig.numer.attrybut} is 1:
  65. if {ig.status.d1} is false:
  66. set {ig.numer.rodzaj.d1} to 1 or 2
  67. if {ig.numer.rodzaj.d1} is 1:
  68. set {ig.status.d1} to true
  69. chance of 90%:
  70. set {ig.numer.moc.d1} to random number between {ig.att1.1} and {ig.att1.2}
  71. set {ig.d1} to "Dodatkowe obrażenia: +%{ig.numer.moc.d1}%%%"
  72. if {ig.numer.rodzaj.d1} is 2:
  73. set {ig.status.d1} to true
  74. set {ig.numer.moc.d1} to random number between 0 and 0.5
  75. set {ig.d1} to "Szybkosc uderzenia: -%{ig.numer.moc.d1}%"
  76. give ({_ig.id} parsed as itemtype) named "&e&l%arg 4%" with lore "&8===============||&7Obrazenia: %{ig.dmg}%||&7%{ig.d1}%||&7%{ig.d2}%||&7%{ig.d3}%||&bOd Poziomu: %arg 3%||&8===============" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement