Wheemangga

Class Skript

Jul 19th, 2014
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.70 KB | None | 0 0
  1. #By Wheemango
  2. #Class Skript
  3. Options:
  4.     L: &7[&bClass&7]
  5. Command /Class [<Text>] [<Text>]:
  6.     Trigger:
  7.         Arg 1 is "List":
  8.             Send "{@L} &6Classes"
  9.             send "{@L} -------"
  10.             send "{@L} &aWarrior &f-&7 &aMain Class"
  11.             send "{@L} &eArcher &f-&7 &aMain Class"
  12.             send "{@L} &dMage &f-&7 &aMain Class"
  13.             send "{@L} -------"
  14.             send "{@L} &aAssassin &f-&7 &a$120"
  15.             send "{@L} &dWizard &f-&7 &a*Medieval Age"
  16.             send "{@L} &eSharpshooter &f-&7 $300"
  17.             send "{@L} &3Exorcist &f-&7 &a$800 | *Soul of Odine"
  18.             send "{@L} -------"
  19.             send "{@L} * : &cRequired"
  20.             Send "{@L} &cMore Coming Soon!"
  21.             send "{@L} &a/Class join <Class> &7to Join a Class"
  22.             Stop
  23.  
  24.         Arg 1 is "Admin":
  25.             Send "{@L} &aAdmin Mode"
  26.             send "{@L} ----------"
  27.             send "{@L} &a/Class SetSpawn <Class> &f-&7 Set the Default Class Spawn"
  28.             send "{@L} &a/Class DelSpawn <Class> &f-&7 Delete the Default Class Spawn"
  29.             Stop
  30.  
  31.         Arg 1 is "Setspawn":
  32.             Arg 2 is "Warrior":
  33.                 Set {WarriorSpawn} to location of the player
  34.                 send "{@L} &aSuccessfully Set the Spawn for Warrior Class in &b%{WarriorSpawn}%"
  35.                 Stop
  36.             Arg 2 is "Archer":
  37.                 Set {ArcherSpawn} to location of the player
  38.                 send "{@L} &aSuccessfully Set the Spawn for Archer Class in &b%{ArcherSpawn}%"
  39.                 Stop
  40.             Arg 2 is "Mage":
  41.                 Set {MageSpawn} to location of the Player
  42.                 send "{@L} &aSuccessfully Set the Spawn for Mage Class in &b%{MageSpawn}%"
  43.                 Stop
  44.             send "{@L} &aWarrior&7, &eArcher&7, &dMage&7."
  45.             Stop
  46.         Arg 1 is "Join":
  47.             Arg 2 is not set:
  48.                 send "{@L} Input your Class!"
  49.                 Stop
  50.             Arg 2 is "Warrior":
  51.                 Clear player's inventory
  52.                 Set {Class.%Player%} to "Warrior"
  53.                 Send "{@L} &aCongratulations! You've joined Warrior Class!"
  54.                 Equip player with all iron armor named "{@L} &eWarrior Armor"
  55.                 teleport player to {WarriorSpawn}
  56.                 Give player iron spade of unbreaking 10 named "{@L} &eWarrior Spear &6| &b1"
  57.                 Set {Mage.%player%} to false
  58.                 Set {Archer.%player%} to false
  59.                 Set {Warrior.%player%} to true
  60.                 Add 5 to {Stat.%player%}
  61.                 Stop
  62.             Arg 2 is "Archer":
  63.                 Clear player's Inventory
  64.                 Set {Class.%player%} to "Archer"
  65.                 Send "{@L} &aCongratulations! You've joined Archer Class!"
  66.                 Equip player with all iron armor named "{@L} &eArcher Armor"
  67.                 teleport player to {ArcherSpawn}
  68.                 Give player bow of unbreaking 10 named "{@L} &eArcher Bow &6| &b1"
  69.                 Set {Mage.%player%} to false
  70.                 Set {Archer.%player%} to true
  71.                 Set {Warrior.%player%} to false
  72.                 Add 5 to {Stat.%player%}
  73.                 Stop
  74.             Arg 2 is "Mage":
  75.                 Clear player's Inventory
  76.                 Set {Class.%player%} to "Mage"
  77.                 Send "{@L} &aCongratulations! You've joined Mage Class!"
  78.                 Equip player with all iron armor named "{@L} &eArcher Armor"
  79.                 teleport player to {MageSpawn}
  80.                 Give player blaze rod of unbreaking 10 named "{@L} &eMage Wand &6| &b1"
  81.                 Set {Mage.%player%} to true
  82.                 Set {Archer.%player%} to false
  83.                 Set {Warrior.%player%} to false
  84.                 Add 5 to {Stat.%player%}
  85.                 Stop
  86.             Send "{@L} &6Classes"
  87.             send "{@L} -------"
  88.             send "{@L} &aWarrior &f-&7 &aMain Class"
  89.             send "{@L} &eArcher &f-&7 &aMain Class"
  90.             send "{@L} &dMage &f-&7 &aMain Class"
  91.             send "{@L} -------"
  92.             send "{@L} &aAssassin &f-&7 &a$120"
  93.             send "{@L} &dWizard &f-&7 &a*Medieval Age"
  94.             send "{@L} &eSharpshooter &f-&7 $300"
  95.             send "{@L} &3Exorcist &f-&7 &a$800 | *Soul of Odine"
  96.             send "{@L} -------"
  97.             send "{@L} * : &cRequired"
  98.             Send "{@L} &cMore Coming Soon!"
  99.             send "{@L} &a/Class join <Class> &7to Join a Class"
  100.             Stop
  101.         Send "{@L} &a/Class List &f-&7 See list of Classes"
  102.         send "{@L} &a/Class Join <Class> &f-&7 Join a Class"
  103.         send "{@L} &a/Class Admin &f-&7 Admin Only"
  104.         Send "{@L} &a/Class Me &f-&7 See your Class Info"
  105.         Send "{@L} &a/Class Upgrade &f-&7 Upgrade your Class Skills"
  106.         Stop
  107. #Fight Event
  108. on leftclick with blaze rod:
  109.     tool of player is a Blaze rod of unbreaking 10 named "{@L} &eMage Wand &6| &b1":
  110.         targeted entity is not player:
  111.             set {wanddamage} to a random integer between 1 and 10
  112.             damage targeted entity by {wanddamage}
  113.             execute console command "playsound random.orb %player%"
  114.             stop
  115. On rightclick with blaze rod:
  116.     tool of player is a Blaze rod of unbreaking 10 named "{@L} &eMage Wand &6| &b1":
  117.         create a fake explosion 1 meters in front of the player
  118.         wait 2 ticks
  119.         create a safe explosion of force 1 2 meters in front of the player
  120.         wait 2 ticks
  121.         create a safe explosion of force 1 4 meters in front of the player
  122.         wait 2 ticks
  123.         create a safe explosion of force 1 6 meters in front of the player
  124.         wait 2 ticks
  125.         create a safe explosion of force 1 8 meters in front of the player
  126.         wait 2 ticks
  127.         create a safe explosion of force 1 10 meters in front of the player
  128.         wait 2 ticks
  129.         create a safe explosion of force 1 12 meters in front of the player
  130.         wait 2 ticks
  131.         create a safe explosion of force 1 14 meters in front of the player
  132.         wait 2 ticks
  133.         create a safe explosion of force 1 16 meters in front of the player
  134.         wait 2 ticks
  135.         create a safe explosion of force 1 18 meters in front of the player
  136.         wait 2 ticks
  137.         create a safe explosion of force 1 20 meters in front of the player
  138.         wait 2 ticks
  139.         create a safe explosion of force 1 22 meters in front of the player
  140.         wait 2 ticks
  141.         create a safe explosion of force 1 24 meters in front of the player
  142.         wait 2 ticks
  143.         create a safe explosion of force 1 16 meters in front of the player
  144.         wait 2 ticks
  145.         create a safe explosion of force 1 26 meters in front of the player
  146.         wait 2 ticks
  147.         create a safe explosion of force 1 28 meters in front of the player
  148.         wait 2 ticks
  149.         create a safe explosion of force 1 30 meters in front of the player
  150.         wait 2 ticks
  151.         create a safe explosion of force 1 32 meters in front of the player
Advertisement
Add Comment
Please, Sign In to add comment