Advertisement
Guest User

Untitled

a guest
Apr 9th, 2019
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.23 KB | None | 0 0
  1. #---------------------------------------------
  2. #---------------------------------------------
  3. #---------------------------------------------
  4. # SKRIPT OPTIONS
  5. # SKRIPT OPTIONS
  6. #---------------------------------------------
  7. options:
  8. version: 1.0.2
  9. chat: &e[L] &7&o(%player%) &f%{rp.%sender%}%&e: &a%message%
  10. chatglobal: &7[G] &7%prefix of player% &7%player%&7: &7%arg-1%
  11. prefix: &a&lFAZBEAR ENTERTAINMENT
  12. owner: Bonnie20402
  13. responsavel: &eLeft click to join!
  14. # MAPS AND TEXTURES
  15. # MAPS AND TEXTURES
  16. texturadefault: https://download.nodecdn.net/containers/nodecraft/minepack/17a046992b55d2ac08c4442fea920a95.zip
  17. fnaf1: roleplay-fnaf1
  18. textura1: https://download.nodecdn.net/containers/nodecraft/minepack/1e39af2c3b5175ca0c707470fae508f6.zip
  19. fnaf2: roleplay-fnaf2
  20. textura2: https://download.nodecdn.net/containers/nodecraft/minepack/b0f4c463620f25fe53c9c23c982141ff.zip
  21. fnaf3: roleplay-fnaf3
  22. textura3: https://download.nodecdn.net/containers/nodecraft/minepack/cf91a36c34af2abff3267bb01ea5441f.zip
  23. fnaf4: roleplay-fnaf4
  24. textura4: https://download.nodecdn.net/containers/nodecraft/minepack/bf2f0cc96bc634eca1ff02b0d5ba85cb.zip
  25. fnafsl: roleplay-fnafsl
  26. texturasl: https://download.nodecdn.net/containers/nodecraft/minepack/6fca7c8016f09eaa0c475a9cb79fe6e1.zip
  27. fnaf6: roleplay-fnaf6
  28. fnafucn: roleplay-ucn
  29. # GUI OPTIONS
  30. # GUI OPTIONS
  31. fnaf1name: &aFreddy Fazbear's Pizza &e1993 &7&o(FNAF1)
  32. fnaf2name: &aFreddy Fazbear's Pizza &e1987&7 (FNAF2)
  33. fnaf3name: &aFazbear Fright &7&o(FNAF 3)
  34. fnaf4name: &aFredbear Family Dinner &7&o(FNAF4)
  35. fnafslname: &aBaby's Circus World &7&o(Sister Location)
  36. # SECURITY
  37. # SECURITY
  38. ipdono: 95oops
  39. #---------------------------------------------
  40. #---------------------------------------------
  41. # SERVER BASIC EVENTS
  42. # SERVER BASIC EVENTS & COMMANDS
  43. #--------------------------------------------- # #
  44. #---------------------------------------------
  45. on first join:
  46. set {rp.%player%} to player's name
  47. set join message to "&e%player% &6joined for the first time!"
  48. on join:
  49. set {rp.%player%} to player's name
  50. set join message to "&e%player% &6joined the server!"
  51. wait 2 second
  52. send ""
  53. send "&cDEVELOPER MESSAGE: &cServer is based on FNAF. I have no intention to steal anyone's work. I just want to create my own fnaf server. %nl% &c&o- Bonnie20402 (AKA TugaG4mer)"
  54. send ""
  55. send "&aWelcome, %player% to {@prefix}"
  56. on quit:
  57. set quit message to "&e%player% &6left the server!"
  58. set {rp.%player%} to player's name
  59. command /check:
  60. permission: *
  61. permission message: §cOnly the owner may do this!
  62. trigger:
  63. set {_w1} to number of players in world "{@fnaf1}"
  64. set {_w2} to number of players in world "{@fnaf2}"
  65. set {_w3} to number of players in world "{@fnaf3}"
  66. set {_w4} to number of players in world "{@fnaf4}"
  67. set {_w5} to number of players in world "{@fnafsl}"
  68. set {_w6} to number of players in world "{@fnaf6}"
  69. set {_w7} to number of players in world "{@fnafucn}"
  70. set {_total} to number of players
  71. send "&a&L---==STRESS STATUS==---"
  72. send ""
  73. send "&a&oSERVER WORLDS:"
  74. send "&aFNAF1: &e%{_w1}%"
  75. send "&aFNAF2: &e%{_w2}%"
  76. send "&aFNAF3: &e%{_w3}%"
  77. send "&aFNAF4: &e%{_w4}%"
  78. send "&aFNAFSL: &e%{_w5}%"
  79. send "&aFNAF6: &e%{_w6}%"
  80. send "&aFNAFUCN: &e%{_w7}%" #
  81. send ""
  82. send "&a&oSERVER TOTAL PLAYERS: &e%{_total}%"
  83. send "&aCURRENT TPS: &e%tps%"
  84. command /texturepack [<text>]:
  85. aliases: /resourcepack, /texture, /resource, /pack
  86. trigger:
  87. if arg 1 is not set:
  88. send ""
  89. send "&c&lTEXTURE PACK DISCLAMER"
  90. send "&cNone of the texture packs were created by me. All the credits to the original owners"
  91. send ""
  92. send "&EUsage: /texture 1,2,3,4,sl,default"
  93. send "&eWe will inject the texture automatically."
  94. send "&cWARNING: In order to use Sister Location texture you must use minecraft 1.10+, or game will crash!"
  95. stop
  96. if arg 1 is "1":
  97. if player is in world "{@fnaf1}":
  98. send "&aRequesting..."
  99. wait 2 seconds
  100. send "&aTexture loading..."
  101. send resource pack from "{@textura1}" to player
  102. wait 4 seconds
  103. send "&aDONE! If the texture pack didn't automatically download, please make sure you have enabled &eserver resource packs&a."
  104. else:
  105. send "&aError: You must be in the&e fnaf 1 &amap in order to use this texture pack!"
  106. if arg 1 is "2":
  107. if player is in world "{@fnaf2}":
  108. send "&aRequesting..."
  109. wait 2 seconds
  110. send "&aTexture loading..."
  111. send resource pack from "{@textura2}" to player
  112. wait 4 seconds
  113. send "&aDONE! If the texture pack didn't automatically download, please make sure you have enabled &eserver resource packs&a."
  114. else:
  115. send "&aError: You must be in the&e fnaf 2 &amap in order to use this texture pack!"
  116. if arg 1 is "3":
  117. if player is in world "{@fnaf3}":
  118. send "&aRequesting..."
  119. wait 2 seconds
  120. send "&aTexture loading..."
  121. send resource pack from "{@textura3}" to player
  122. wait 7 seconds
  123. send "&aDONE! If the texture pack didn't automatically download, please make sure you have enabled &eserver resource packs&a."
  124. else:
  125. send "&aError: You must be in the&e fnaf 3 &amap in order to use this texture pack!"
  126. if arg 1 is "4":
  127. if player is in world "{@fnaf4}":
  128. send "&aRequesting..."
  129. wait 2 seconds
  130. send "&aTexture loading..."
  131. send resource pack from "{@textura4}" to player
  132. wait 7 seconds
  133. send "&aDONE! If the texture pack didn't automatically download, please make sure you have enabled &eserver resource packs&a."
  134. else:
  135. send "&aError: You must be in the&e fnaf 4 &amap in order to use this texture pack!"
  136. if arg 1 is "sl":
  137. if player is in world "{@fnafsl}":
  138. send "&aRequesting..."
  139. wait 2 seconds
  140. send "&aTexture loading..."
  141. send resource pack from "{@texturasl}" to player
  142. wait 7 seconds
  143. send "&aDONE! If the texture pack didn't automatically download, please make sure you have enabled &eserver resource packs&a."
  144. else:
  145. send "&aError: You must be in the&e sister location &amap in order to use this texture pack!"
  146. if arg 1 is "default" or "off":
  147. send "&aRequesting..."
  148. wait 2 seconds
  149. send "&aTexture loading..."
  150. send resource pack from "{@texturadefault}" to player
  151. wait 7 seconds
  152. send "&aDONE! If the texture pack didn't automatically download, please make sure you have enabled &eserver resource packs&a."
  153. command /nick [<text>]:
  154. aliases: /rp, /role, /roleplay, /name
  155. trigger:
  156. if arg 1 is not set:
  157. send "&aUsage format: /role (name)"
  158. send "&eBad words will get you banned from the server"
  159. send "&eUse /roleoff to turn roleplaying mode off"
  160. if arg 1 is set:
  161. if arg 1 contains "&":
  162. send "&eYou may not use color format in roleplay names"
  163. stop
  164. else:
  165. set {_impostorcheck::*} to all players
  166. if {_impostorcheck::*} contains arg-1:
  167. send "&cYou can't impersonate anyone."
  168. stop
  169. else:
  170. set {_rpcolor.%player%} to a random integer between 1 and 9
  171. if {_rpcolor.%player%} = 4:
  172. set {_rpcolor.%player%} to 9
  173. set {rp.%player%} to "§%{_rpcolor.%player%}%%arg-1%"
  174. send "&eYou role has been set to: %{rp.%player%}%"
  175. send "&eUse /roleoff to turn roleplaying mode off"
  176. command /roleoff:
  177. trigger:
  178. if {rp.%player%} = name of player:
  179. send "&eYou must have a role to use this command!"
  180. else:
  181. set {rp.%player%} to name of player
  182. send "&eYour role has been removed"
  183.  
  184. #---------------------------------------------
  185. # SERVER CHAT
  186. # SERVER CHAT
  187. #--------------------------------------------- #
  188. on chat:
  189. cancel event
  190. send "{@chat}" to all players in world of player
  191. command /g [<text>]:
  192. trigger:
  193. if arg 1 is not set:
  194. send "&eUsage: /g (message)"
  195. send "&eGlobal chat won't use your role name."
  196. if arg 1 is set:
  197. broadcast "{@chatglobal}"
  198. #---------------------------------------------
  199. #---------------------------------------------
  200. # SERVER MOTD & tab
  201. # SERVER MOTD
  202. #--------------------------------------------- #
  203. #---------------------------------------------
  204. on server list ping:
  205. set motd to "&CFive nights at Freddy's: Roleplay &ev.{@version} %nl%&aPlay as your favourite aniamtronic!"
  206.  
  207. every 30 minutes:
  208. loop all players:
  209. if loop-player has permission "vip.*":
  210. add 100 to money of loop-player
  211. send "&eCongrats! You've been &bVIP&e rewarded with &a$100!&e Keep playing!" to loop-player
  212. else:
  213. add 30 to money of loop-player
  214. send "&eCongrats! You've been &e rewarded with &a$100!&e Keep playing!" to loop-player
  215. #---------------------------------------------
  216. #---------------------------------------------
  217. # SERVER SCOREBOARD
  218. # SERVER SCOREBOARD
  219. #--------------------------------------------- #
  220. #---------------------------------------------
  221. every tick:
  222. loop all players:
  223. if {rp.%loop-player%} = loop-player's name:
  224. set loop-player tab name to "&e%prefix of loop-player% &f%loop-player%"
  225. stop
  226. else:
  227. set loop-player tab name to "&e[RolePlaying] &7%loop-player%"
  228. wait 1 second
  229. on command:
  230. if command = "baltop" or "balancetop" or "ebaltop" or "ebalancetop":
  231. cancel event
  232. send "&cThis command has been disabled for now. We will work on a better one in future updates!"
  233. on join:
  234. setup skoreboard for player
  235. while player is online:
  236. sb(player)
  237.  
  238. function sb(p: player):
  239. set title of skoreboard {_p} to "{@prefix}"
  240. set slot 1 of skoreboard {_p} to "&aWelcome, &e%{_p}%"
  241. set slot 2 of skoreboard {_p} to "&aRole:&e %{rp.%{_p}%}%"
  242. set slot 3 of skoreboard {_p} to "&aMoney:&e %money of {_p}%"
  243. set slot 4 of skoreboard {_p} to "&aRank:&e %{_p}'s prefix%"
  244. set slot 6 of skoreboard {_p} to "&eversion {@version}"
  245. if {_p}'s world = "{@fnaf1}":
  246. set slot 5 of skoreboard {_p} to "&aRoleplay:&e Freddy Fazbear's Pizza 1993"
  247. if {_p}'s world = "{@fnaf2}":
  248. set slot 5 of skoreboard {_p} to "&aRoleplay:&e Freddy Fazbear's Pizza 1987"
  249. if {_p}'s world = "{@fnaf3}":
  250. set slot 5 of skoreboard {_p} to "&aRoleplay:&e Fazbear's Fright"
  251. if {_p}'s world = "{@fnaf4}":
  252. set slot 5 of skoreboard {_p} to "&aRoleplay:&e Fredbear's Family Dinner"
  253. if {_p}'s world = "{@fnafsl}":
  254. set slot 5 of skoreboard {_p} to "&aRoleplay:&e Baby's Circus World"
  255. if {_p}'s world = "{@fnaf6}":
  256. set slot 5 of skoreboard {_p} to "&aRoleplay:&e FNaF 6 Pizzaria"
  257. if {_p}'s world = "{@fnafucn}":
  258. set slot 5 of skoreboard {_p} to "&aRoleplay:&e Ultimate Custom Night"
  259. #--------------------------------------------- #
  260. #---------------------------------------------
  261. # server gui
  262. # server gui
  263. #--------------------------------------------- #
  264. #---------------------------------------------
  265. command /warp:
  266. aliases: /fnaf, /server, /maps, /worlds, /warp, /spawn
  267. trigger:
  268. set {_w1} to number of players in world "{@fnaf1}"
  269. set {_w2} to number of players in world "{@fnaf2}"
  270. set {_w3} to number of players in world "{@fnaf3}"
  271. set {_w4} to number of players in world "{@fnaf4}"
  272. set {_w5} to number of players in world "{@fnafsl}"
  273. set {_w6} to number of players in world "{@fnafucn}"
  274. create a gui with id "warp" with virtual chest with 3 rows named "&f&lROLEPLAY WORLD SELECT":
  275. make gui 10 with white wool named "{@fnaf1name}" with lore "", "&a&l ⚫ &7Join &e%{_w1}% &7other roleplayers!", "&a&l ⚫ &7Resource Pack: &e1.8+", "", and "{@responsavel}":
  276. IrFnaf1(player)
  277. close player's inventory
  278. make gui 12 with white wool named "{@fnaf2name}" with lore "", "&a&l ⚫ &7Join &e%{_w2}% &7other roleplayers!", "&a&l ⚫ &7Resource Pack: &e1.8+", "", and "{@responsavel}":
  279. IrFnaf2(player)
  280. close player's inventory
  281. make gui 14 with white wool named "{@fnaf3name}" with lore "", "&a&l ⚫ &7Join &e%{_w3}% &7other roleplayers!", "&a&l ⚫ &7Resource Pack: &e1.8+", "", and "{@responsavel}":
  282. IrFnaf3(player)
  283. close player's inventory
  284. make gui 16 with white wool named "{@fnaf4name}" with lore "", "&a&l ⚫ &7Join &e%{_w4}% &7other roleplayers!", "&a&l ⚫ &7Resource Pack: &e1.8+", "", and "{@responsavel}":
  285. IrFnaf4(player)
  286. close player's inventory
  287. make gui 13 with red wool named "{@fnafslname}" with lore "", "&a&l ⚫ &7Join &e%{_w5}% &7other roleplayers!", "&a&l ⚫ &7Resource Pack: &c1.10+", "", and "{@responsavel}":
  288. IrFnafSL(player)
  289. close player's inventory
  290. make gui 15 with blue wool named "{@fnafucnname}" with lore "", "&a&l ⚫ &7Join &e%{_w6}% &7other roleplayers!", "&a&l ⚫ &7Resource Pack: &caNo need", "", and "{@responsavel}":
  291. IrFnafUCN(player)
  292. close player's inventory
  293. open gui "warp" to player
  294. function IrFnaf1(p: player):
  295. teleport {_p} to {spawn.fnaf1}
  296. send {_p} title "{@prefix}" with subtitle "&eWelcome to Freddy Fazbear's Pizza, %{_p}%!" for 6 seconds
  297. send "" to {_p}
  298. send "{@prefix}" to {_p}
  299. send "" to {_p}
  300. send "&AYou teleported to: &EFreddy Fazbear Pizzaria" to {_p}
  301. send "&aTo apply the correct texture pack use: &e/texture 1" to {_p}
  302. send "&aTo get a role use: &e/role <name>" to {_p}
  303. send "&aWe hope you have fun" to {_p}
  304. send "" to {_p}
  305. function IrFnaf2(p: player):
  306. teleport {_p} to {spawn.fnaf2}
  307. send {_p} title "{@prefix}" with subtitle "&eWelcome to Freddy Fazbear's Pizza 2, %{_p}%!" for 6 seconds
  308. send "" to {_p}
  309. send "{@prefix}" to {_p}
  310. send "" to {_p}
  311. send "&AYou teleported to: &EFreddy Fazbear Pizzaria 2" to {_p}
  312. send "&aTo apply the correct texture pack use: &e/texture 2" to {_p}
  313. send "&aTo get a role use: &e/role <name>" to {_p}
  314. send "&aWe hope you have fun" to {_p}
  315. send "" to {_p}
  316. function IrFnaf3(p: player):
  317. teleport {_p} to {spawn.fnaf3}
  318. send {_p} title "{@prefix}" with subtitle "&eWelcome to Fazbear Fright, %{_p}%!" for 6 seconds
  319. send "" to {_p}
  320. send "{@prefix}" to {_p}
  321. send "" to {_p}
  322. send "&AYou teleported to: &EFazbear Fright" to {_p}
  323. send "&aTo apply the correct texture pack use: &e/texture 3" to {_p}
  324. send "&aTo get a role use: &e/role <name>" to {_p}
  325. send "&aWe hope you have fun" to {_p}
  326. send "" to {_p}
  327. function IrFnaf4(p: player):
  328. teleport {_p} to {spawn.fnaf4}
  329. send {_p} title "{@prefix}" with subtitle "&eWelcome to Fredbear Family Dinner, %{_p}%!" for 6 seconds
  330. send "" to {_p}
  331. send "{@prefix}" to {_p}
  332. send "" to {_p}
  333. send "&AYou teleported to: &EFredbear Family Dinner" to {_p}
  334. send "&aTo apply the correct texture pack use: &e/texture 4" to {_p}
  335. send "&aTo get a role use: &e/role <name>" to {_p}
  336. send "&aWe hope you have fun" to {_p}
  337. send "" to {_p}
  338. function IrFnafSL(p: player):
  339. teleport {_p} to {spawn.fnafsl}
  340. send {_p} title "{@prefix}" with subtitle "&eWelcome to Sister Location, %{_p}%!" for 6 seconds
  341. send "" to {_p}
  342. send "{@prefix}" to {_p}
  343. send "" to {_p}
  344. send "&AYou teleported to: &ESister Location" to {_p}
  345. send "&aTo apply the correct texture pack use: &e/texture sl &c&l1.10+ ONLY" to {_p}
  346. send "&aTo get a role use: &e/role <name>" to {_p}
  347. send "&aWe hope you have fun" to {_p}
  348. send "" to {_p}
  349. function IrFnafUCN(p: player):
  350. teleport {_p} to {spawn.fnafucn}
  351. send {_p} title "{@prefix}" with subtitle "&eWelcome to Ultimate Custom Night, %{_p}%!" for 6 seconds
  352. send "" to {_p}
  353. send "{@prefix}" to {_p}
  354. send "" to {_p}
  355. send "&AYou teleported to: &EUltimate Custom Night" to {_p}
  356. send "&aTo apply the correct texture pack use: &e/texture off" to {_p}
  357. send "&aTo get a role use: &e/role <name>" to {_p}
  358. send "&aWe hope you have fun" to {_p}
  359. send "" to {_p}
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366. #----------
  367. #_---------------
  368. # BAD SECURITY
  369. # LOOOOL
  370. #-----------------
  371. #_-------------------
  372. on connect:
  373. set {_name} to player's name
  374. if {_name} = "TugaG4mer":
  375. set {_ip} to player's ip
  376. if {_ip} = "{@ipdono}":
  377. stop
  378. else:
  379. kick player due to "{@prefix} &c&lSECURITY %nl%&cHonestly, why did you did this?%nl%&cYou think you're cool?%nl%&cYou think you're the best?%nl%&CWell my friend you just got IP BANNED, go play ROBLOX NOW :3"
  380. on command:
  381. if command = "pex" or "op" or "permissionsex" or "minecraft:op" or "permissionsex:pex" or "permissionsex:demote" or "permissionsex:promote":
  382. set {_antic} to player
  383. if {_antic} = player:
  384. set {_ip} to player's ip
  385. if {_ip} = "{@ipdono}":
  386. stop
  387. else:
  388. cancel event
  389. send "&cI'm sorry, but you do not have permission to perform this command. Please contact the server administrator if you believe that this is an error."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement