CusT

Untitled

Dec 28th, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.89 KB | None | 0 0
  1. #=========================================#
  2. # #
  3. # RPGQuest #
  4. # CusT #
  5. # #
  6. #=========================================#
  7.  
  8. options:
  9. Tag: &9[RPGQuest]
  10. WiadomoscPrzyjeciaQuestu1: Zadanie zostalo przyjete !
  11. WiadomoscPrzyjeciaQuestu2: Zadanie zostalo przyjete !
  12. WiadomoscPrzyjeciaQuestu3: Zadanie zostalo przyjete !
  13. WiadomoscPrzyjeciaQuestu4: Zadanie zostalo przyjete !
  14. WiadomoscPrzyjeciaQuestu5: Zadanie zostalo przyjete !
  15. WiadomoscPrzyjeciaQuestu6: Zadanie zostalo przyjete !
  16. WiadomoscPrzyjeciaQuestu7: Zadanie zostalo przyjete !
  17. WiadomoscPrzyjeciaQuestu8: Zadanie zostalo przyjete !
  18. WiadomoscPrzyjeciaQuestu9: Zadanie zostalo przyjete !
  19. WiadomoscPrzyjeciaQuestu10: Zadanie zostalo przyjete !
  20. WiadomoscPrzyjeciaQuestu11: Zadanie zostalo przyjete !
  21.  
  22. #=========================================#
  23. # #
  24. # Zmienne #
  25. # CusT #
  26. # #
  27. #=========================================#
  28.  
  29. variables:
  30. {Quest1.%player%} = false
  31. {Quest1.wtrakcie.%player%} = false
  32. {Quest2.%player%} = false
  33. {Quest2.wtrakcie.%player%} = false
  34. {Quest3.%player%} = false
  35. {Quest3.wtrakcie.%player%} = false
  36. {Quest4.%player%} = false
  37. {Quest4.wtrakcie.%player%} = false
  38. {Quest5.%player%} = false
  39. {Quest5.wtrakcie.%player%} = false
  40. {Quest6.%player%} = false
  41. {Quest6.wtrakcie.%player%} = false
  42. {Quest7.%player%} = false
  43. {Quest7.wtrakcie.%player%} = false
  44. {Quest8.%player%} = false
  45. {Quest8.wtrakcie.%player%} = false
  46. {Quest9.%player%} = false
  47. {Quest9.wtrakcie.%player%} = false
  48. {Quest10.%player%} = false
  49. {Quest10.wtrakcie.%player%} = false
  50. {Quest11.%player%} = false
  51. {Quest11.wtrakcie.%player%} = false
  52.  
  53. #=========================================#
  54. # #
  55. # Eventy #
  56. # CusT #
  57. # #
  58. #=========================================#
  59.  
  60. on spawn:
  61. entity is villager:
  62. set name of entity to "&2Quester"
  63.  
  64. on damage:
  65. victim is Villager:
  66. player is op:
  67. send " "
  68. else:
  69. cancel event
  70.  
  71. on join:
  72. wait 10 second
  73. send "&aWykonuj zadania u Questera %player% !"
  74.  
  75.  
  76. on mine of stone:
  77. if {Quest5.wtrakcie.%player%} is true:
  78. add 1 to {Stone.%player%}
  79.  
  80. on chat:
  81. if {Quest5.%player%} is true:
  82. set the player's displayname to "&6[Weteran] &f%name of player%"
  83.  
  84. #=========================================#
  85. # #
  86. # Questy #
  87. # CusT #
  88. # #
  89. #=========================================#
  90.  
  91. on rightclick on villager:
  92. name of villager is "&2Quester":
  93. cancel event
  94. if {Quest1.%player%} is false:
  95. if {Quest1.wtrakcie.%player%} is false:
  96. cancel event
  97. send "&8============================================"
  98. send "&7Witaj przybyszu ! Mam nadzieje ze mi pomozesz poniewaz ostatnio mam problemy z zdobyciem 10 kamienia na moj dom, czy moglbys mi je przynies ?"
  99. send "&7Nagrode zobaczysz po wykonaniu zadania :)"
  100. send "&8============================================"
  101. send " "
  102. send " "
  103. send "{@Tag} {@WiadomoscPrzyjeciaQuestu1}"
  104. set {Quest1.wtrakcie.%player%} to true
  105. stop
  106. if {Quest1.wtrakcie.%player%} is true:
  107. player has 10 stone:
  108. cancel event
  109. remove 10 stone from the player
  110. send "&8============================================"
  111. send "&aDziekuje ze mi przyniosles ten kamien, teraz bede mogl dokonczyc moj dom !"
  112. send "&aW nagrode otrzymujesz 2 sztabki zelaza !"
  113. send "&8============================================"
  114. add 2 iron ingot to the player
  115. strike lightning effect at the player
  116. set {Quest1.%player%} to true
  117. stop
  118. else:
  119. send "&cNie przyniosles dla mnie 10 kamienia !"
  120. if {Quest1.%player%} is true:
  121. if {Quest2.%player%} is false:
  122. if {Quest2.wtrakcie.%player%} is false:
  123. cancel event
  124. send "&8============================================"
  125. send "&7Ohoho, kogo ja tu widze, to w roli samej %player%, mam nadzieje ze i tym razem mi pomozesz i zdobedziesz dla mnie diamentowy miecz"
  126. send "&7Abym mogl sie bronic przed tym dziwactwem w nocy."
  127. send "&8============================================"
  128. send " "
  129. send " "
  130. send "{@Tag} {@WiadomoscPrzyjeciaQuestu2}"
  131. set {Quest2.wtrakcie.%player%} to true
  132. stop
  133. if {Quest2.wtrakcie.%player%} is true:
  134. player has diamond sword:
  135. cancel event
  136. remove diamond sword from the player
  137. send "&8============================================"
  138. send "&aTakich ludzi jak ty na tym swiecie powinno byc wiecej, swietna robota !"
  139. send "&aProsze, w nagrode otrzymujesz 300 exp"
  140. send "&8============================================"
  141. execute console command "/xp 300 %player%"
  142. strike lightning effect at the player
  143. set {Quest2.%player%} to true
  144. stop
  145. else:
  146. send "&cJa potrzebuje diamentowy miecz !"
  147. if {Quest1.%player%} is true:
  148. if {Quest2.%player%} is true:
  149. if {Quest3.%player%} is false:
  150. if {Quest3.wtrakcie.%player%} is false:
  151. cancel event
  152. send "&8============================================"
  153. send "&7Witaj po raz kolejny, musisz dla mnie zrobic przysluge i przyniesc dla mnie 64 zgnilego miesa z zombiakow ;)"
  154. send "&8============================================"
  155. send " "
  156. send " "
  157. send "{@Tag} {@WiadomoscPrzyjeciaQuestu3}"
  158. set {Quest3.wtrakcie.%player%} to true
  159. stop
  160. if {Quest3.wtrakcie.%player%} is true:
  161. player has 64 rotten flesh:
  162. cancel event
  163. remove 64 rotten flesh from the player
  164. send "&8============================================"
  165. send "&aOO dziekuje ci za to, aktualnie niestety nie mam zabardzo co ci dac jako nagrode, lecz dam ci narazie troche kurczakow ;)"
  166. send "&aLapaj 25 kurczaczkow prosto z pieca ;)"
  167. send "&8============================================"
  168. add 25 cooked chicken to the player
  169. strike lightning effect at the player
  170. set {Quest3.%player%} to true
  171. stop
  172. else:
  173. send "&cNie przyniosles dla mnie tego oco Ciebie prosilem !"
  174. if {Quest1.%player%} is true:
  175. if {Quest2.%player%} is true:
  176. if {Quest3.%player%} is true:
  177. if {Quest4.%player%} is false:
  178. if {Quest4.wtrakcie.%player%} is false:
  179. cancel event
  180. send "&8============================================"
  181. send "&7Twoje kolejne zadanie bedzie troche uciazliwe, poniewaz potrzebuje 20 obsydianu ! "
  182. send "&8============================================"
  183. send " "
  184. send " "
  185. send "{@Tag} {@WiadomoscPrzyjeciaQuestu4}"
  186. set {Quest4.wtrakcie.%player%} to true
  187. stop
  188. if {Quest4.wtrakcie.%player%} is true:
  189. player has 20 obsidian:
  190. cancel event
  191. remove 20 obsidian from the player
  192. send "&8============================================"
  193. send "&aDzieki ci wielkie ! to juz kolejny raz kiedy mi pomagasz %player%"
  194. send "&aMusze cie wynagrodzic za to zadanie, otrzymujesz 500 exp"
  195. send "&8============================================"
  196. execute console command "/xp 500 %player%"
  197. set {Quest4.%player%} to true
  198. stop
  199. else:
  200. send "&cNie posiadasz 20 obsydianu !"
  201. if {Quest1.%player%} is true:
  202. if {Quest2.%player%} is true:
  203. if {Quest3.%player%} is true:
  204. if {Quest4.%player%} is true:
  205. if {Quest5.%player%} is false:
  206. if {Quest5.wtrakcie.%player%} is false:
  207. cancel event
  208. send "&8============================================"
  209. send "&7Dzisiaj bedziesz musial sie troche napracowac, poniewaz musze ciebie sprawdzic w pewnym zadaniu"
  210. send "&7Potrzebuje, abys przyniusl mi 10 diamentow"
  211. send "&8============================================"
  212. send " "
  213. send " "
  214. send "{@Tag} {@WiadomoscPrzyjeciaQuestu5}"
  215. set {Quest5.wtrakcie.%player%} to true
  216. if {Quest5.wtrakcie.%player%} is true:
  217. player has 10 diamond::
  218. cancel event
  219. send "&8============================================"
  220. send "&aOkej, tak wiec jednak jestes kims wiecej niz tylko czlowiekiem tej planety"
  221. send "&aTrzymaj twoja nagrode, lecz pamietaj ze od teraz twoje zadanie beda coraz to ciezsze !"
  222. send "&8============================================"
  223. send " "
  224. send " "
  225. send "&6Otrzymujesz przedrostek !Weteran! "
  226. give diamond pickaxe of efficiency 5 named "&aNagorda" to the player
  227. set {Stone.%player%} to 0
  228. set {Quest5.%player%} to true
  229. set {Quest5.wtrakcie.%player%} to false
  230. stop
  231. else:
  232. send "&cAktualnie wykopales %{Stone.%player%}% stona ! (Musisz wykopac 500)"
  233. if {Quest1.%player%} is true:
  234. if {Quest2.%player%} is true:
  235. if {Quest3.%player%} is true:
  236. if {Quest4.%player%} is true:
  237. if {Quest5.%player%} is true:
  238. if {Quest6.%player%} is false:
  239. if {Quest6.wtrakcie.%player%} is false:
  240. cancel event
  241. send "&8============================================"
  242. send "&7Dobrze, a wiec ostatnio widzialem ze potrafisz dosc wiele"
  243. send "&7Potrzebuje, abys przyniosl mi 60 sztabek zelaza !"
  244. send "&8============================================"
  245. send " "
  246. send " "
  247. send "{@Tag} {@WiadomoscPrzyjeciaQuestu6}"
  248. set {Quest6.wtrakcie.%player%} to true
  249. if {Quest6.wtrakcie.%player%} is true:
  250. player has 60 iron ingot:
  251. cancel event
  252. remove 60 iron ingot from the player
  253. send "&8============================================"
  254. send "&aDziekuje ci ! Wiedzialem ze moge na tobie polegac !"
  255. send "&aW nagrode otrzymujesz 2x wiecej sztabek zelaza (120)"
  256. send "&8============================================"
  257. give 60 iron ingot named "&aNagorda" to the player
  258. give 60 iron ingot named "&aNagorda" to the player
  259. set {Quest6.%player%} to true
  260. set {Quest6.wtrakcie.%player%} to true
  261. stop
  262. else:
  263. send "&cNie posiadasz 60 zelaza !"
  264. if {Quest1.%player%} is true:
  265. if {Quest2.%player%} is true:
  266. if {Quest3.%player%} is true:
  267. if {Quest4.%player%} is true:
  268. if {Quest5.%player%} is true:
  269. if {Quest6.%player%} is true:
  270. if {Quest7.%player%} is false:
  271. if {Quest7.wtrakcie.%player%} is false:
  272. cancel event
  273. send "&8============================================"
  274. send "&7Mam pewien problem, poniewaz ostatio rozbila mi sie doniczka, moglbys mi ja przyniesc ?"
  275. send "&8============================================"
  276. send " "
  277. send " "
  278. send "{@Tag} {@WiadomoscPrzyjeciaQuestu7}"
  279. set {Quest7.wtrakcie.%player%} to true
  280. if {Quest7.wtrakcie.%player%} is true:
  281. player has flower pot:
  282. cancel event
  283. remove flower pot from the player
  284. send "&8============================================"
  285. send "&aOO, jest moja doniczka, bardzo ci dziekuje teraz bede mogl wsadzic moja czerwona roze do doniczki !"
  286. send "&aTrzymaj tutaj 1 sztabke zlota ;)"
  287. send "&8============================================"
  288. give gold ingot named "&aNagroda" to the player
  289. set {Quest7.%player%} to true
  290. set {Quest7.wtrakcie.%player%} to true
  291. stop
  292. else:
  293. send "&c A Gdzie moja doniczka ? !"
  294. if {Quest1.%player%} is true:
  295. if {Quest2.%player%} is true:
  296. if {Quest3.%player%} is true:
  297. if {Quest4.%player%} is true:
  298. if {Quest5.%player%} is true:
  299. if {Quest6.%player%} is true:
  300. if {Quest7.%player%} is true:
  301. if {Quest8.%player%} is false:
  302. if {Quest8.wtrakcie.%player%} is false:
  303. cancel event
  304. send "&8============================================"
  305. send "&7Dobrze ze jestes, bo potrzebuje troche szkla na okna, moglbys mi przyniesc 30 szkla ?"
  306. send "&8============================================"
  307. send " "
  308. send " "
  309. send "{@Tag} {@WiadomoscPrzyjeciaQuestu8}"
  310. set {Quest8.wtrakcie.%player%} to true
  311. if {Quest8.wtrakcie.%player%} is true:
  312. player has 30 glass:
  313. cancel event
  314. remove 30 glass from the player
  315. send "&8============================================"
  316. send "&aOO Dziekuje ci bardzo, prosze dostaniesz troszeczke expa"
  317. send "&8============================================"
  318. set {Quest8.%player%} to true
  319. execute console command "/xp 200 %player%"
  320. stop
  321. else:
  322. send "&cNie przyniosles mi szkla !"
  323. if {Quest1.%player%} is true:
  324. if {Quest2.%player%} is true:
  325. if {Quest3.%player%} is true:
  326. if {Quest4.%player%} is true:
  327. if {Quest5.%player%} is true:
  328. if {Quest6.%player%} is true:
  329. if {Quest7.%player%} is true:
  330. if {Quest8.%player%} is true:
  331. if {Quest9.%player%} is false:
  332. if {Quest9.wtrakcie.%player%} is false:
  333. cancel event
  334. send "&8============================================"
  335. send "&7Siema ! Potrzebuje abys przyniosl mi diamentowa siekiere !"
  336. send "&8============================================"
  337. send " "
  338. send " "
  339. send "{@Tag} {@WiadomoscPrzyjeciaQuestu9}"
  340. set {Quest9.wtrakcie.%player%} to true
  341. if {Quest9.wtrakcie.%player%} is true:
  342. player has diamond axe:
  343. cancel event
  344. remove diamond axe from the player
  345. send "&8============================================"
  346. send "&aDzieki %player%, Ide troche poscinac drzewa na opal !"
  347. send "&8============================================"
  348. set {Quest9.%player%} to true
  349. give diamond axe of unbreaking 1 named "&aNagroda" to the player
  350. stop
  351. else:
  352. send "&cNie posiadasz siekiery !"
  353. if {Quest1.%player%} is true:
  354. if {Quest2.%player%} is true:
  355. if {Quest3.%player%} is true:
  356. if {Quest4.%player%} is true:
  357. if {Quest5.%player%} is true:
  358. if {Quest6.%player%} is true:
  359. if {Quest7.%player%} is true:
  360. if {Quest8.%player%} is true:
  361. if {Quest9.%player%} is true:
  362. if {Quest10.%player%} is false:
  363. if {Quest10.wtrakcie.%player%} is false:
  364. cancel event
  365. send "&8============================================"
  366. send "&7Czesc ! Potrzebuje pilnie Marchewke !"
  367. send "&8============================================"
  368. send " "
  369. send " "
  370. send "{@Tag} {@WiadomoscPrzyjeciaQuestu10}"
  371. set {Quest10.wtrakcie.%player%} to true
  372. if {Quest10.wtrakcie.%player%} is true:
  373. player has carrot:
  374. cancel event
  375. remove carrot from the player
  376. send "&8============================================"
  377. send "&aDziekuje, ide zrobic surowke na obiad ! :)"
  378. send "&8============================================"
  379. set {Quest10.%player%} to true
  380. execute console command "/xp 50 %player%"
  381. stop
  382. else:
  383. send "&cNie posiadasz marchewki !"
  384. if {Quest1.%player%} is true:
  385. if {Quest2.%player%} is true:
  386. if {Quest3.%player%} is true:
  387. if {Quest4.%player%} is true:
  388. if {Quest5.%player%} is true:
  389. if {Quest6.%player%} is true:
  390. if {Quest7.%player%} is true:
  391. if {Quest8.%player%} is true:
  392. if {Quest9.%player%} is true:
  393. if {Quest10.%player%} is true:
  394. if {Quest11.%player%} is false:
  395. if {Quest11.wtrakcie.%player%} is false:
  396. cancel event
  397. send "&8============================================"
  398. send "&7Te obiady, zabraklo mi ziemniakow, moglbys mi przyniesc z 30 ziemniakow ?"
  399. send "&8============================================"
  400. send " "
  401. send " "
  402. send "{@Tag} {@WiadomoscPrzyjeciaQuestu11}"
  403. set {Quest11.wtrakcie.%player%} to true
  404. if {Quest11.wtrakcie.%player%} is true:
  405. player has 30 potato:
  406. cancel event
  407. remove potato from player
  408. send "&8============================================"
  409. send "&aOO Dzieki, do zobaczenia nastepnym razem !"
  410. send "&8============================================"
  411. set {Quest11.%player%} to true
  412. give 10 emerald named "&aNagroda" to the player
  413. stop
  414. else:
  415. send "&cNie masz ziemniakow ? :("
  416.  
  417. #=========================================#
  418. # #
  419. # Komendy #
  420. # CusT #
  421. # #
  422. #=========================================#
  423.  
  424. command /RPGQuest [<Text>] [<player>]:
  425. trigger:
  426. arg 1 is not set:
  427. send "&7[RPGQuest]&9Uzyj komendy /RPGQuest help !"
  428. stop trigger
  429. arg 1 is "Help" or "Pomoc":
  430. player has permissions "RPGQuest.Help":
  431. send "&7=======&8Pomoc Dot. Skryptu&7======="
  432. send "&6/RPGQuest Help - Pomoc Dotyczaca Skryptu"
  433. send "&6/RPGQuest Author - Informacje o autorze skryptu"
  434. send "&6/RPGQuest reload - Przeladowanie skryptu"
  435. send "&6/RPGQuest version - Informacje o Versji Skryptu"
  436. send "&6/RPGQuest Spawn - Spawnuje Questera"
  437. send "&6/RPGQuest Reset [Player] - Resetuje wszystkie Questy gracza"
  438. else:
  439. send "&cNie posiadasz uprawnien !"
  440. arg 1 is "Author" or "Autor":
  441. player has permissions "RPGQuest.Autor":
  442. send "&cAutor skryptu: &9CusT"
  443. send "http://www.mpcforum.pl/user/909894-cust/"
  444. else:
  445. send "&cNie posiadasz uprawnien !"
  446. arg 1 is "reload" or "Przeladuj":
  447. player has permissions "RPGQuest.Przeladuj":
  448. send "&aRozpoczecie przeladowania skryptu..."
  449. wait 1 second
  450. send "&aPrzeladowuje konfiguracje skryptu..."
  451. wait 1 second
  452. send "&aSprawdzam logi..."
  453. wait 1 second
  454. send "&aSprawdzam kod skryptu..."
  455. wait 1 second
  456. execute console command "/sk reload RPGQuests"
  457. wait 1 second
  458. send "&aSkrypt pomyslnie zaladowany !"
  459. else:
  460. send "&cNie posiadasz uprawnien !"
  461. arg 1 is "version" or "Wersja":
  462. player has permissions "RPGQuest.version":
  463. send "&aAktualna Wersja skryptu: &cBUILD v0.1"
  464. else:
  465. send "&cNie posiadasz uprawnien !"
  466. arg 1 is "Spawn" or "Villager":
  467. player has permissions "RPGQuest.Quester":
  468. send "&aPoczekaj, spawnuje Questera !"
  469. wait 1 second
  470. wait 1 second
  471. execute player command "/spawnmob villager"
  472. wait 1 second
  473. send "&aPomyslnie zrespiono Quester ! !"
  474. else:
  475. send "&cNie posiadasz uprawnien !"
  476. arg 1 is "Reset" or "Resetuj":
  477. player has permissions "RPGQuest.Reset":
  478. send "&aResetuje questy gracza !"
  479. wait 3 second
  480. set {Quest1.%player%} to false
  481. set {Quest2.%player%} to false
  482. set {Quest3.%player%} to false
  483. set {Quest4.%player%} to false
  484. set {Quest5.%player%} to false
  485. set {Quest6.%player%} to false
  486. set {Quest7.%player%} to false
  487. set {Quest8.%player%} to false
  488. set {Quest9.%player%} to false
  489. set {Quest10.%player%} to false
  490. set {Quest11.%player%} to false
  491. set {Quest1.wtrakcie.%player%} to false
  492. set {Quest2.wtrakcie.%player%} to false
  493. set {Quest3.wtrakcie.%player%} to false
  494. set {Quest4.wtrakcie.%player%} to false
  495. set {Quest5.wtrakcie.%player%} to false
  496. set {Quest6.wtrakcie.%player%} to false
  497. set {Quest7.wtrakcie.%player%} to false
  498. set {Quest8.wtrakcie.%player%} to false
  499. set {Quest9.wtrakcie.%player%} to false
  500. set {Quest10.wtrakcie.%player%} to false
  501. set {Quest11.wtrakcie.%player%} to false
  502. set {Stone.%player%} to 0
  503. wait 1 second
  504. send "&aQuesty zostaly zresetowane !"
  505. else:
  506. send "&cNie posiadasz uprawnien !"
  507.  
  508. #=========================================#
  509. # #
  510. # Koniec #
  511. # CusT #
  512. # #
  513. #=========================================#
Advertisement
Add Comment
Please, Sign In to add comment