Advertisement
salt0000

Untitled

Sep 15th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. on first join:
  2. setstatus(player)
  3.  
  4. on death
  5.  
  6.  
  7.  
  8. function setstatus(p: player):
  9. set {_random.st} to random integer between 1 and 100
  10. if {_random.st} is between 1 and 3:
  11. set {status.%uuid of %{_p}%%} to "弱"
  12. else if {_random.st} is between 4 and 97:
  13. set {status.%uuid of %{_p}%%} to "普"
  14. else if {_random.st} is between 98 and 100:
  15. set {status.%uuid of %{_p}%%} to "強"
  16.  
  17. function setjobs(p: player):
  18. set {_random.job} to random integer between 1 and 1000
  19. if {_random.job} is 1:
  20. set {Apjobs.%uuid of %{_p}%%} to "勇者"
  21. else if {_random.job} is 2:
  22. set {Apjobs.%uuid of %{_p}%%} to "賢者"
  23. else if {_random.job} is 3:
  24. set {Apjobs.%uuid of %{_p}%%} to "魔王"
  25. else if {_random.job} is 4:
  26. set {Apjobs.%uuid of %{_p}%%} to "聖女"
  27. else if {_random.job} is between 5 and 170:
  28. set {Apjobs.%uuid of %{_p}%%} to "鍛冶師"
  29. else if {_random.job} is between 171 and 337:
  30. set {Apjobs.%uuid of %{_p}%%} to "剣士"
  31. else if {_random.job} is between 338 and 504:
  32. set {Apjobs.%uuid of %{_p}%%} to "弓使い"
  33. else if {_random.job} is between 505 and 671:
  34. set {Apjobs.%uuid of %{_p}%%} to "魔法使い"
  35. else if {_random.job} is between 672 and 838:
  36. set {Apjobs.%uuid of %{_p}%%} to "武闘家"
  37. else if {_random.job} is between 839 and 1000:
  38. set {Apjobs.%uuid of %{_p}%%} to "アサシン"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement