Advertisement
nunonuno_riku

Untitled

Jul 17th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on load:
  2. #1つ目のリスト:パック番号
  3. #2つ目のリスト:カード番号
  4. set {Gacha.PackName::1} to "&a&lガチャ券"
  5. set {Gacha.IncludeItem::1::0} to 1 pumpkin named "&7[N]&6かぼ&r" with lore "&5---Lore---||&f普通の弱いカード||&5---効果---||&cATK:1500||&bSP:1||&f場に1匹まで出せる"
  6. set {Gacha.IncludeWeight::1::0} to 1750
  7.  
  8. on load:
  9. clear {Gacha.Gacha::*}
  10. wait 1 tick
  11. loop {Gacha.PackName::*}:
  12. set {Gacha.GachaLong::%loop-index-1%} to 0
  13. loop {Gacha.IncludeItem::%loop-index-1%::*}:
  14. loop {Gacha.IncludeWeight::%loop-index-1%::%loop-index-2%} times:
  15. set {Gacha.Gacha::%loop-index-1%::%{Gacha.GachaLong::%loop-index-1%}%} to {Gacha.IncludeItem::%loop-index-1%::%loop-index-2%}
  16. set {Gacha.GachaLong::%loop-index-1%} to {Gacha.GachaLong::%loop-index-1%} + 1
  17.  
  18. on right click holding feather:
  19. loop {Gacha.PackName::*}:
  20. loop-value is the name of event-item
  21. set {_Gacha.PackName%player%} to loop-index
  22. {_Gacha.PackName%player%} is set
  23. if player is not sneaking:
  24. set {_Gacha.Gacha.Chance} to random integer between 0 to {Gacha.GachaLong::%{_Gacha.PackName%player%}%} - 1
  25. give {Gacha.Gacha::%{_Gacha.PackName%player%}%::%{_Gacha.Gacha.Chance}%} to player
  26. wait 1 tick
  27. remove 1 of event-item from player
  28. else:
  29. if item amount of event-item is bigger than 63:
  30. loop 64 times:
  31. set {_Gacha.Gacha.Chance} to random integer between 0 to {Gacha.GachaLong::%{_Gacha.PackName%player%}%} - 1
  32. give {Gacha.Gacha::%{_Gacha.PackName%player%}%::%{_Gacha.Gacha.Chance}%} to player
  33. wait 1 tick
  34. remove 64 of event-item from player
  35. stop
  36. else:
  37. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement