CusT

RPGQuest

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