Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #item generator by haverex
- on script load:
- send "&ePomyslnie załadowano: items_005" to all players
- #set {ig.dmg2} to {_ig.lvl} * 1
- #set {ig.dmg3} to {_ig.lvl} * 2
- command /ig [<text>] [<text>] [<text>] [<text>]:
- permission: generatoritem
- trigger:
- if arg 1 is not set:
- send ""
- send "&a/ig stworz &7 (id) (od lvl) (nazwa)"
- send ""
- send "&6(item) - Helm, Napiersnik, Spodnie, Buty"
- send ""
- if arg 1 is "stworz":
- set {_ig.id} to "%arg 2%"
- set {_ig.lvl} to arg-3
- set {_ig.lvl} to {_ig.lvl} parsed as integer
- if {_ig.lvl} > 2:
- set {ig.dmg2} to {_ig.lvl} * 1
- else:
- set {ig.dmg2} to 1
- set {ig.dmg3} to {_ig.lvl} * 2
- set {ig.dmg2} to {ig.dmg2} parsed as integer
- set {ig.dmg3} to {ig.dmg3} parsed as integer
- set {_lvl} to 0
- set {_attnb} to 0
- if {_ig.lvl} > 1:
- loop 100 times:
- add 0.10 to {_attnb}
- add 1 to {_lvl}
- if {_ig.lvl} is {_lvl}:
- set {ig.att1.1} to {_attnb}
- set {ig.att1.2} to {_attnb} + 0.08
- if {_ig.lvl} > 1:
- set {ig.att1.1} to {ig.att1.1} - 0.09
- else:
- set {ig.att1.1} to 0
- set {ig.att1.2} to 0.10
- set {ig.att1.1} to {ig.att1.1} parsed as integer
- set {ig.att1.2} to {ig.att1.2} parsed as integer
- send "Attrubty: %{ig.att1.1}% %{ig.att1.2}%"
- set {ig.dmg} to a random integer between {ig.dmg2} and {ig.dmg3}
- send "Dmg od %{ig.dmg2}% do %{ig.dmg3}%"
- set {ig.d1} to ""
- set {ig.d2} to ""
- set {ig.d3} to ""
- set {ig.status.d1} to false
- set {ig.status.d2} to false
- set {ig.status.d3} to false
- set {ig.status.d4} to false
- loop 3 times:
- chance of 50%:
- set {ig.numer.attrybut} to 1 or 2 or 3 or 4
- if {ig.numer.attrybut} is 1:
- if {ig.status.d1} is false:
- set {ig.numer.rodzaj.d1} to 1 or 2
- if {ig.numer.rodzaj.d1} is 1:
- set {ig.status.d1} to true
- chance of 90%:
- set {ig.numer.moc.d1} to random number between {ig.att1.1} and {ig.att1.2}
- set {ig.d1} to "Dodatkowe obrażenia: +%{ig.numer.moc.d1}%%%"
- if {ig.numer.rodzaj.d1} is 2:
- set {ig.status.d1} to true
- set {ig.numer.moc.d1} to random number between 0 and 0.5
- set {ig.d1} to "Szybkosc uderzenia: -%{ig.numer.moc.d1}%"
- 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