gdevent_sch.txt 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538
  1. //===== rAthena Script =======================================
  2. //= Guild dungeon event, Schwarzwald.
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Guild dungeon event, Schwarzwald. Retrieve Morestone's
  11. //= pickaxe from Kublin.
  12. //===== Additional Comments: =================================
  13. //= 1.0 First version
  14. //= 1.1 Changed spawn timer to 1 hour. [L0ne_w0lf]
  15. //= 1.2 Added GM management function. [Euphy]
  16. //============================================================
  17. schg_dun01,1,1,1 script Monster Controler#sch_gd 81,{
  18. OnInit:
  19. donpcevent "Monster Controler1#sch::OnKill";
  20. initnpctimer;
  21. end;
  22. OnTimer3600000:
  23. donpcevent "Monster Controler1#sch::OnEnable";
  24. mapannounce "schg_dun01", "Kublin: Aargh!",bc_map,"0x99CC00";
  25. mapannounce "schg_dun01", "Morestone: Stop righ there! You thief!",bc_map,"0x99CC00";
  26. stopnpctimer;
  27. end;
  28. }
  29. schg_dun01,1,2,1 script Monster Controler1#sch 81,{
  30. OnEnable:
  31. set .@callwhere,rand(1,4);
  32. if (.@callwhere == 1) {
  33. monster "schg_dun01",164,236,"Kublin",1980,1,"Monster Controler1#sch::OnMyMobDead";
  34. }
  35. else if (.@callwhere == 2) {
  36. monster "schg_dun01",172,122,"Kublin",1980,1,"Monster Controler1#sch::OnMyMobDead";
  37. }
  38. else if (.@callwhere == 3) {
  39. monster "schg_dun01",247,159,"Kublin",1980,1,"Monster Controler1#sch::OnMyMobDead";
  40. }
  41. else {
  42. monster "schg_dun01",250,224,"Kublin",1980,1,"Monster Controler1#sch::OnMyMobDead";
  43. }
  44. end;
  45. OnKill:
  46. killmonster "schg_dun01","Monster Controler1#sch::OnMyMObDead";
  47. end;
  48. OnMyMobDead:
  49. if (mobcount("schg_dun01","Monster Controler1#sch::OnMyMObDead") == 0) {
  50. mapannounce "schg_dun01", "Kublin: Aargh!",bc_map,"0x99CC00";
  51. mapannounce "schg_dun01", "Morestone: I thought I heard Kublin screaming!! Who is there? What happened to Kublin? Hey you!",bc_map,"0x99CC00";
  52. donpcevent "Dwarf#sch_gd::OnEnable";
  53. }
  54. end;
  55. }
  56. schg_dun01,194,148,5 script Dwarf#sch_gd 826,{
  57. if (getcharid(2) == 0) {
  58. mes "[Dwarf]";
  59. mes "Hey did you see an ugly Goblin come by? He stole something from me!";
  60. close;
  61. }
  62. set .@chk_urquest,checkquest(2143,PLAYTIME);
  63. set .@chk_yourgdname$,getguildname(getcharid(2));
  64. if ($@gdeventv_s1 == 0) {
  65. if ($@gdevents_s$ == "") {
  66. set $@gdeventv_s1,1;
  67. set $@gdevents_s$,.@chk_yourgdname$;
  68. mes "[Dwarf]";
  69. mes "Help me!";
  70. mes "Please, help me!";
  71. next;
  72. switch(select("What happened?:Nevermind.")) {
  73. case 1:
  74. mes "[Dwarf]";
  75. mes "I am Morestone and I collect rare gems.";
  76. next;
  77. mes "[Morestone]";
  78. mes "In my travels, I was told that there were a lot of gems in Valfreyja and Nidhoggur, so I came down here.";
  79. mes "But here, the soil is very hard to dig into. Fortunately, my ^3131FFPickaxe^000000 never lets me down!";
  80. next;
  81. select("Pickaxe!");
  82. mes "[Morestone]";
  83. mes "Yes, my beloved pickaxe!";
  84. mes "I always carry it with me, you know?";
  85. next;
  86. mes "[Morestone]";
  87. mes "We started working here together.";
  88. mes "After a few days, we finally found something!";
  89. next;
  90. select("Something strange??");
  91. mes "[Morestone]";
  92. mes "No, but it was worth quite a lot.";
  93. mes "But we did not have much time to celebrate. Suddenly, a monster appeared that stole my pickaxe.";
  94. mes "His name was^3131FFKublin^000000!";
  95. next;
  96. mes "[Morestone]";
  97. mes "He stole my Pickaxe!";
  98. mes "I can't live without it...";
  99. next;
  100. if (countitem(6010) > 0) {
  101. mes "[" + strcharinfo(0) + "]";
  102. mes "Is this the pickaxe that you've been looking for?";
  103. next;
  104. mes "[Morestone]";
  105. mes "You found my Pickaxe?";
  106. mes "Show me, please!";
  107. next;
  108. mes "[Morestone]";
  109. mes "Oh, my! You've returned it to me!";
  110. mes "My precious pickaxe, I thought I lost you forever.";
  111. next;
  112. mes "[Morestone]";
  113. mes "You are great! What guild are you from?";
  114. mes "Could it be Gravity or Mercury?";
  115. next;
  116. mes "[" + strcharinfo(0) + "]";
  117. mes "I am a member of the ^3131FF"+.@chk_yourgdname$+"^.";
  118. next;
  119. mes "[Morestone]";
  120. mes "Oh... That guild will receive my greatest respect.";
  121. next;
  122. mes "[Morestone]";
  123. mes "Oh! My friend, I am very grateful for your help.";
  124. mes "As a reward, I will tell you about a mysterious area I have discovered recently.";
  125. next;
  126. select("A mysterious area?");
  127. mes "[Morestone]";
  128. mes "That's right. I found it when I was digging around here.";
  129. mes "It looks like it was made for some special purpose, but since there are no gems around there, I have no interest in it.";
  130. next;
  131. mes "[Morestone]";
  132. mes "Instead of going there alone, I think it would be more fun to go with your friends...";
  133. next;
  134. mes "[Morestone]";
  135. mes "If you want, I can take ^3131FFyou and your guild members^000000 to explore that area.";
  136. mes "Do you want to go there now?";
  137. next;
  138. switch(select("Wait! I'm not ready yet.:Let's go!")) {
  139. case 1:
  140. set $@gdeventv_s1,0;
  141. set $@gdevents_s$,"";
  142. mes "[Morestone]";
  143. mes "Take your time, and find a place to gather your friends.";
  144. close;
  145. case 2:
  146. mes "[Morestone]";
  147. mes "Alright! Let's go.";
  148. mes "If your friends visit me again later, I will guide them to that area again.";
  149. mes "Don't forget, dwarves are grateful beings! Hahaha!";
  150. delitem 6010,1; //Pickaxe
  151. set $@gdeventv_s1,1;
  152. set $@gdevents_s$,.@chk_yourgdname$;
  153. close2;
  154. setquest 2144;
  155. warp "schg_que01",103,133;
  156. end;
  157. }
  158. }
  159. else {
  160. set $@gdeventv_s1,0;
  161. set $@gdevents_s$,"";
  162. mes "[Morestone]";
  163. mes "I will tell you how to find him.";
  164. mes "Kublin wears a ridiculous golden hat, It should be easy to recognise him by that.";
  165. close;
  166. }
  167. case 2:
  168. set $@gdeventv_s1,0;
  169. set $@gdevents_s$,"";
  170. emotion ET_CRY;
  171. mes "[Dwarf]";
  172. mes "Ahhh...";
  173. close;
  174. }
  175. }
  176. else if ($@gdevents_s$ == .@chk_yourgdname$) {
  177. set .@chk_urquest1,checkquest(2144);
  178. if ((.@chk_urquest1 == 0) || (.@chk_urquest1 == 1)) {
  179. mes "[Morestone]";
  180. mes "I, Morestone, have made an alliance with the "+$@gdevents_s$+" guild.";
  181. mes "Oh, you are a member.";
  182. mes "Would you like to go to the mysterious area?";
  183. next;
  184. switch(select("Let's go.:No, thanks.")) {
  185. case 1:
  186. mes "[Morestone]";
  187. mes "I hope you enjoy yourself, my friend.";
  188. close2;
  189. warp "schg_que01",103,133;
  190. end;
  191. case 2:
  192. mes "[Morestone]";
  193. mes "If you need my assistance, just ask.";
  194. mes "Ah! Dont forget, I hate monsters! So I don't want to see them. It will be better if you ask for another favour.";
  195. close;
  196. }
  197. }
  198. else {
  199. set $@gdeventv_s1,1;
  200. set $@gdevents_s$,.@chk_yourgdname$;
  201. mes "[Dwarf]";
  202. mes "Help me!";
  203. mes "Please, help me!";
  204. next;
  205. switch(select("What happened?:Nevermind.")) {
  206. case 1:
  207. mes "[Dwarf]";
  208. mes "I am Morestone and I collect rare gems.";
  209. next;
  210. mes "[Morestone]";
  211. mes "In my travels, I was told that there were a lot of gems in Valfreyja and Nidhoggur, so I came down here.";
  212. mes "But here, the soil is very hard to dig into. Fortunately, my ^3131FFPickaxe^000000 never lets me down!";
  213. next;
  214. select("Pickaxe!");
  215. mes "[Morestone]";
  216. mes "Yes, my beloved pickaxe!";
  217. mes "I always carry it with me, you know?";
  218. next;
  219. mes "[Morestone]";
  220. mes "We started working here together.";
  221. mes "After a few days, we finally found something!";
  222. next;
  223. select("Something strange??");
  224. mes "[Morestone]";
  225. mes "No, but it was worth quite a lot.";
  226. mes "But we did not have much time to celebrate. Suddenly, a monster appeared that stole my pickaxe.";
  227. mes "His name was^3131FFKublin^000000!";
  228. next;
  229. mes "[Morestone]";
  230. mes "He stole my Pickaxe!";
  231. mes "I can't live without it...";
  232. next;
  233. if (countitem(6010) > 0) {
  234. mes "[" + strcharinfo(0) + "]";
  235. mes "Is this the pickaxe that you've been looking for?";
  236. next;
  237. mes "[Morestone]";
  238. mes "You found my Pickaxe?";
  239. mes "Show me, please!";
  240. next;
  241. mes "[Morestone]";
  242. mes "Oh, my! You've returned it to me!";
  243. mes "My precious pickaxe, I thought I lost you forever.";
  244. next;
  245. mes "[Morestone]";
  246. mes "You are great! What guild are you from?";
  247. mes "Could it be Gravity or Mercury?";
  248. next;
  249. mes "[" + strcharinfo(0) + "]";
  250. mes "I am a member of the ^3131FF"+.@chk_yourgdname$+"^.";
  251. next;
  252. mes "[Morestone]";
  253. mes "Oh... That guild will receive my greatest respect.";
  254. next;
  255. mes "[Morestone]";
  256. mes "Oh! My friend, I am very grateful for your help.";
  257. mes "As a reward, I will tell you about a mysterious area I have discovered recently.";
  258. next;
  259. select("A mysterious area?");
  260. mes "[Morestone]";
  261. mes "That's right. I found it when I was digging around here.";
  262. mes "It looks like it was made for some special purpose, but since there are no gems around there, I have no interest in it.";
  263. next;
  264. mes "[Morestone]";
  265. mes "Instead of going there alone, I think it would be more fun to go with your friends...";
  266. next;
  267. mes "[Morestone]";
  268. mes "If you want, I can take ^3131FFyou and your guild members^000000 to explore that area.";
  269. mes "Do you want to go there now?";
  270. next;
  271. switch(select("Wait! I'm not ready yet.:Let's go!")) {
  272. case 1:
  273. set $@gdeventv_s1,0;
  274. set $@gdevents_s$,"";
  275. mes "[Morestone]";
  276. mes "Take your time, and find a place to gather your friends.";
  277. close;
  278. case 2:
  279. mes "[Morestone]";
  280. mes "Alright! Let's go.";
  281. mes "If your friends visit me again later, I will guide them to that area again.";
  282. mes "Don't forget, dwarves are grateful beings! Hahaha!";
  283. delitem 6010,1; //Pickaxe
  284. set $@gdeventv_s1,1;
  285. set $@gdevents_s$,.@chk_yourgdname$;
  286. close2;
  287. setquest 2144;
  288. warp "schg_que01",103,133;
  289. end;
  290. }
  291. }
  292. else {
  293. set $@gdeventv_s1,0;
  294. set $@gdevents_s$,"";
  295. mes "[Morestone]";
  296. mes "I will tell you how to find him.";
  297. mes "Kublin wears a ridiculous golden hat, It should be easy to recognise him by that.";
  298. close;
  299. }
  300. case 2:
  301. set $@gdeventv_s1,0;
  302. set $@gdevents_s$,"";
  303. emotion ET_CRY;
  304. mes "[Dwarf]";
  305. mes "Ah....";
  306. close;
  307. }
  308. }
  309. }
  310. else {
  311. mes "[Morestone]";
  312. mes "I, Morestone, have made an alliance with the "+$@gdevents_s$+" guild.";
  313. mes "Hm, you're not a member.";
  314. mes "Could you please give them my greetings?";
  315. close;
  316. }
  317. }
  318. else {
  319. if ($@gdevents_s$ == .@chk_yourgdname$) {
  320. set .@chk_urquest1,checkquest(2144);
  321. if ((.@chk_urquest1 == 0) || (.@chk_urquest1 == 1)) {
  322. mes "[Morestone]";
  323. mes "I, Morestone, have made an alliance with the "+$@gdevents_s$+" guild.";
  324. mes "Oh, you are a member.";
  325. mes "Would you like to go to the mysterious area?";
  326. next;
  327. switch(select("Let's go.:No, thanks.")) {
  328. case 1:
  329. mes "[Morestone]";
  330. mes "I hope you enjoy yourself, my friend.";
  331. close2;
  332. warp "schg_que01",103,133;
  333. end;
  334. case 2:
  335. mes "[Morestone]";
  336. mes "If you need my assistance, just ask.";
  337. mes "Ah! Dont forget, I hate monsters! So I don't want to see them. It will be better if you ask for another favour.";
  338. close;
  339. }
  340. }
  341. else {
  342. set $@gdeventv_s1,1;
  343. set $@gdevents_s$,.@chk_yourgdname$;
  344. mes "[Dwarf]";
  345. mes "Help me!";
  346. mes "Please, help me!";
  347. next;
  348. switch(select("What happened?:Nevermind.")) {
  349. case 1:
  350. mes "[Dwarf]";
  351. mes "I am Morestone and I collect rare gems.";
  352. next;
  353. mes "[Morestone]";
  354. mes "In my travels, I was told that there were a lot of gems in Valfreyja and Nidhoggur, so I came down here.";
  355. mes "But here, the soil is very hard to dig into. Fortunately, my ^3131FFPickaxe^000000 never lets me down!";
  356. next;
  357. select("Pickaxe!");
  358. mes "[Morestone]";
  359. mes "Yes, my beloved pickaxe!";
  360. mes "I always carry it with me, you know?";
  361. next;
  362. mes "[Morestone]";
  363. mes "We started working here together.";
  364. mes "After a few days, we finally found something!";
  365. next;
  366. select("Something strange??");
  367. mes "[Morestone]";
  368. mes "No, but it was worth quite a lot.";
  369. mes "But we did not have much time to celebrate. Suddenly, a monster appeared that stole my pickaxe.";
  370. mes "His name was^3131FFKublin^000000!";
  371. next;
  372. mes "[Morestone]";
  373. mes "He stole my Pickaxe!";
  374. mes "I can't live without it...";
  375. next;
  376. if (countitem(6010) > 0) {
  377. mes "[" + strcharinfo(0) + "]";
  378. mes "Is this the pickaxe that you've been looking for?";
  379. next;
  380. mes "[Morestone]";
  381. mes "You found my Pickaxe?";
  382. mes "Show me, please!";
  383. next;
  384. mes "[Morestone]";
  385. mes "Oh, my! You've returned it to me!";
  386. mes "My precious pickaxe, I thought I lost you forever.";
  387. next;
  388. mes "[Morestone]";
  389. mes "You are great! What guild are you from?";
  390. mes "Could it be Gravity or Mercury?";
  391. next;
  392. mes "[" + strcharinfo(0) + "]";
  393. mes "I am a member of the ^3131FF"+.@chk_yourgdname$+"^.";
  394. next;
  395. mes "[Morestone]";
  396. mes "Oh... That guild will receive my greatest respect.";
  397. next;
  398. mes "[Morestone]";
  399. mes "Oh! My friend, I am very grateful for your help.";
  400. mes "As a reward, I will tell you about a mysterious area I have discovered recently.";
  401. next;
  402. select("A mysterious area?");
  403. mes "[Morestone]";
  404. mes "That's right. I found it when I was digging around here.";
  405. mes "It looks like it was made for some special purpose, but since there are no gems around there, I have no interest in it.";
  406. next;
  407. mes "[Morestone]";
  408. mes "Instead of going there alone, I think it would be more fun to go with your friends...";
  409. next;
  410. mes "[Morestone]";
  411. mes "If you want, I can take ^3131FFyou and your guild members^000000 to explore that area.";
  412. mes "Do you want to go there now?";
  413. next;
  414. switch(select("Wait! I'm not ready yet.:Let's go!")) {
  415. case 1:
  416. set $@gdeventv_s1,0;
  417. set $@gdevents_s$,"";
  418. mes "[Morestone]";
  419. mes "Take your time, and find a place to gather you friends.";
  420. close;
  421. case 2:
  422. mes "[Morestone]";
  423. mes "Alright! Let's go.";
  424. mes "If your friends visit me again later, I will guide them to that area again.";
  425. mes "Don't forget, dwarves are grateful beings! Hahaha!";
  426. delitem 6010,1; //Pickaxe
  427. set $@gdeventv_s1,1;
  428. set $@gdevents_s$,.@chk_yourgdname$;
  429. close2;
  430. setquest 2144;
  431. warp "schg_que01",103,133;
  432. end;
  433. }
  434. }
  435. else {
  436. set $@gdeventv_s1,0;
  437. set $@gdevents_s$,"";
  438. mes "[Morestone]";
  439. mes "I will tell you how to find him.";
  440. mes "Kublin wears a ridiculous golden hat, It should be easy to recognise him by that.";
  441. close;
  442. }
  443. case 2:
  444. set $@gdeventv_s1,0;
  445. set $@gdevents_s$,"";
  446. emotion ET_CRY;
  447. mes "[Dwarf]";
  448. mes "Ah....";
  449. close;
  450. }
  451. }
  452. }
  453. else {
  454. mes "[Morestone]";
  455. mes "I, Morestone, have made an alliance with the "+$@gdevents_s$+" guild.";
  456. mes "Hm, you're not a member.";
  457. mes "Could you please give them my greetings?";
  458. close;
  459. }
  460. }
  461. end;
  462. OnInit:
  463. disablenpc "Dwarf#sch_gd";
  464. set $@gdeventv_s1,0;
  465. set $@gdevents_s$,"";
  466. end;
  467. OnEnable:
  468. enablenpc "Dwarf#sch_gd";
  469. end;
  470. }
  471. schg_que01,100,81,3 script Pierrot Pier#sch_gd 715,{
  472. specialeffect EF_POISONHIT;
  473. set .@sprchg_gd,rand(1,5);
  474. if (.@sprchg_gd == 1) {
  475. setnpcdisplay "Pierrot Pier#sch_gd",950;
  476. }
  477. else if (.@sprchg_gd == 2) {
  478. setnpcdisplay "Pierrot Pier#sch_gd",715;
  479. }
  480. else if (.@sprchg_gd == 3) {
  481. setnpcdisplay "Pierrot Pier#sch_gd",714;
  482. }
  483. else if (.@sprchg_gd == 4) {
  484. setnpcdisplay "Pierrot Pier#sch_gd",785;
  485. }
  486. else {
  487. setnpcdisplay "Pierrot Pier#sch_gd",876;
  488. }
  489. if (checkweight(1201,1) == 0) {
  490. mes "- Wait!! -";
  491. mes "- You're carrying too many items, -";
  492. mes "- you can't receive the materials. -";
  493. mes "- Please use the Kafra Services, -";
  494. mes "- and come back later. -";
  495. close;
  496. }
  497. if (is_guild_leader() == true) {
  498. if ($@gdeventv_s2 == 0) {
  499. set .@que_2143,checkquest(2143,PLAYTIME);
  500. if (.@que_2143 == -1) {
  501. setnpcdisplay "Pierrot Pier#sch_gd",715;
  502. mes "A lonely clown is juggling.";
  503. next;
  504. mes "When looked at closely, the clown is just a puppet that looks like a human.";
  505. next;
  506. mes "The clown stops, then starts moving in accordance to your movements, noises start to emit from it's mouth.";
  507. next;
  508. mes "[Pierrot Pier]";
  509. mes "Beep beep beep.";
  510. mes "Hello, my friends!";
  511. mapannounce "schg_que01", "Pierrot Pier: Beep beep beep! Hello, my friends!",bc_map,"0x99CC00";
  512. next;
  513. mes "[Pierrot Pier]";
  514. mes "I am the loyal servant of Gergath, and I have finally received my orders.";
  515. mes "I am happy to hear all the laughter, but without my master's permission, I can't do anything.";
  516. mapannounce "schg_que01", "Pierrot Pier: I am happy to hear all the laughter, but without my master's permission, I can't do anything.",bc_map,"0x99CC00";
  517. next;
  518. mes "[Pierrot Pier]";
  519. mes "Did you get permission from Gergath?";
  520. mapannounce "schg_que01", "Pierrot Pier: Did you get permission from Gergath?",bc_map,"0x99CC00";
  521. next;
  522. switch(select("I need to check that.:No.")) {
  523. case 1:
  524. mes "[Pierrot Pier]";
  525. mes "Please give me the palm of your hand.";
  526. mapannounce "schg_que01", "Pierrot Pier: Please give me the palm of your hand.",bc_map,"0x99CC00";
  527. next;
  528. mes "[Pierrot Pier]";
  529. mes "Let me see...";
  530. mapannounce "schg_que01", "Pierrot Pier: Let me see...",bc_map,"0x99CC00";
  531. next;
  532. emotion ET_THINK;
  533. mes "[Pierrot Pier]";
  534. mes "Hm...";
  535. mapannounce "schg_que01", "Pierrot Pier: Hm...",bc_map,"0x99CC00";
  536. next;
  537. emotion ET_THINK;
  538. mes "[Pierrot Pier]";
  539. mes "Okay, I see...";
  540. mapannounce "schg_que01", "Pierrot Pier: Okay, I see...",bc_map,"0x99CC00";
  541. next;
  542. emotion ET_THINK;
  543. mes "[Pierrot Pier]";
  544. mes "Indeed...";
  545. mapannounce "schg_que01", "Pierrot Pier: Indeed...",bc_map,"0x99CC00";
  546. next;
  547. emotion ET_STARE;
  548. mes "[Pierrot Pier]";
  549. mes "Verification completed!";
  550. mapannounce "schg_que01", "Pierrot Pier: Verification completed!",bc_map,"0x99CC00";
  551. next;
  552. break;
  553. case 2:
  554. mes "[Pierrot Pier]";
  555. mes "Hm? that's right.";
  556. mes "When is that person coming? I am very bored~!";
  557. close;
  558. }
  559. mes "[Pierrot Pier]";
  560. mes "^3131FF<You're someone who can only think about nonsense everyday, you have no focus at all.>^000000";
  561. mapannounce "schg_que01", "Pierrot Pier: <You're someone who can only think about nonsense everyday, you have no focus at all.>",bc_map,"0x99CC00";
  562. next;
  563. emotion ET_DELIGHT;
  564. mes "[Pierrot Pier]";
  565. mes "Hm? You don't think so?";
  566. mapannounce "schg_que01", "Pierrot Pier: Hm? You don't think so?",bc_map,"0x99CC00";
  567. next;
  568. emotion ET_SMILE;
  569. mes "[Pierrot Pier]";
  570. mes "Haha, I'm just kidding. Beep beep.";
  571. mes "Ah, you are the one my master speaks of.";
  572. mapannounce "schg_que01", "Pierrot Pier: Haha, I'm just kidding. Beep beep. You are the one my master speaks of.",bc_map,"0x99CC00";
  573. next;
  574. mes "[Pierrot Pier]";
  575. mes "Come, the Gergath has left a message for you.";
  576. mes "It's a bit old, but it should still be legible.";
  577. next;
  578. mes "[Pierrot Pier]";
  579. mes "Alright, let's begin!";
  580. setquest 2143;
  581. donpcevent "Gergath#sch_gd::OnEnable";
  582. close;
  583. }
  584. else if ((.@que_2143 == 0) || (.@que_2143 == 1)) {
  585. mes "[Pierrot Pier]";
  586. mes "Let's talk after I finished reading my master's message. Beep beep.";
  587. close;
  588. }
  589. else {
  590. mes "[Pierrot Pier]";
  591. mes "My master Gergath sincerely wishes you joy for you and your family everyday.";
  592. next;
  593. mes "[Pierrot Pier]";
  594. mes "Alright, would you like to play the game Gergath has prepared for you?";
  595. next;
  596. switch(select("Game instructions.:Skip instructions.:Refuse game.")) {
  597. case 1:
  598. mes "[Pierrot Pier]";
  599. mes "The game prepared by my master is very unique, yet simple and fun!";
  600. mapannounce "schg_que01", "Pierrot Pier: The game prepared by my lord is very unique, yet simple and fun!",bc_map,"0x99CC00";
  601. next;
  602. mes "[Pierrot Pier]";
  603. mes "It's called \"Find the Treasure Map\"!!";
  604. mapannounce "schg_que01", "Pierrot Pier: It's called \"Find the Treasure Map\"!!",bc_map,"0x99CC00";
  605. next;
  606. mes "[Pierrot Pier]";
  607. mes "Do you see this large and green field? Beep, beep?";
  608. mes "I will show you the most incredible magic here.";
  609. mes "I will turn this place very white. Veeery white!";
  610. mapannounce "schg_que01", "Pierrot Pier: I will turn this place very white. Veeery white!",bc_map,"0x99CC00";
  611. next;
  612. mes "[Pierrot Pier]";
  613. mes "The game instruction is just to find the treasure map within the time limit.";
  614. mes "Sounds easy, right?";
  615. mapannounce "schg_que01", "Pierrot Pier: The game instruction is just to find the treasure map within the time limit. ounds easy, right?",bc_map,"0x99CC00";
  616. next;
  617. break;
  618. case 2:
  619. break;
  620. case 3:
  621. emotion ET_CRY;
  622. mes "[Pierrot Pier]";
  623. mes "Oh, you don't want to play?";
  624. close;
  625. }
  626. mes "[Pierrot Pier]";
  627. mes "Okay, I'm ready to begin.";
  628. mes "Shall we start? Beep, beep?";
  629. next;
  630. switch(select("No.:Start.")) {
  631. case 1:
  632. mes "[Pierrot Pier]";
  633. mes "Let me know when you are ready.";
  634. close;
  635. case 2:
  636. mes "[Pierrot Pier]";
  637. mes "Alright! Let us begin!";
  638. next;
  639. mes "[Pierrot Pier]";
  640. mes "Ladies, and gentlemen.";
  641. mapannounce "schg_que01", "Pierrot Pier: Ladies, and gentlemen.",bc_map,"0x99CC00";
  642. next;
  643. mes "[Pierrot Pier]";
  644. mes "Who will find the treasure map in this white world?";
  645. mapannounce "schg_que01", "Pierrot Pier: Who will find the treasure map in this white world?",bc_map,"0x99CC00";
  646. next;
  647. mes "[Pierrot Pier]";
  648. mes "Amongst all of you, who shall be the lucky one?";
  649. mapannounce "schg_que01", "Pierrot Pier: Amongst all of you, who shall be the lucky one?",bc_map,"0x99CC00";
  650. next;
  651. mes "[Pierrot Pier]";
  652. mes "Let the game.. Begin!";
  653. mapannounce "schg_que01", "Pierrot Pier: Let the game.. Begin!",bc_map,"0x99CC00";
  654. set $@gdeventv_s2,1;
  655. donpcevent "Controller#gdevent_s::Ongame_start";
  656. erasequest 2143;
  657. close;
  658. }
  659. }
  660. }
  661. else if ($@gdeventv_s2 == 1) {
  662. mes "[Pierrot Pier]";
  663. mes "Did you find the treasure map?";
  664. mes "Show me what you have in your hands! Beep, beep!";
  665. next;
  666. mes "[Pierrot Pier]";
  667. mes "Let me see...";
  668. next;
  669. if (countitem(6031) > 0) {
  670. donpcevent "Controller#gdevent_s::OnStop";
  671. set $@gdeventv_s2,3;
  672. donpcevent "eff_mvp#sch_gd::Onmvp";
  673. mes "[Pierrot Pier]";
  674. mes "Wow~~!!";
  675. mes "Success~!!";
  676. mes "What a success~!!";
  677. mapannounce "schg_que01", "Pierrot Pier: Wow~~!! Success~!! What a success~!!",bc_map,"0x99CC00";
  678. delitem 6031,1; //Glitering_PaperB
  679. close;
  680. }
  681. else {
  682. if (countitem(6030) > 0) {
  683. mes "[Pierrot Pier]";
  684. mes "Ahh, what a shame, it seems like you haven't found the treasure map yet.";
  685. mes "Quickly! Your time is running out! Hurry up!";
  686. close;
  687. }
  688. else {
  689. mes "[Pierrot Pier]";
  690. mes "I don't see anything. Have you even started yet? Beep?";
  691. mes "Hehe, while you're talking to me, the time is slowly ticking away~";
  692. close;
  693. }
  694. }
  695. }
  696. else if ($@gdeventv_s2 == 2) {
  697. mes "[Pierrot Pier]";
  698. mes "Wah, why is it like this~!!";
  699. mes "Not enough? But this makes the game fun, no? Hahaha!";
  700. next;
  701. mes "[Pierrot Pier]";
  702. mes "What did you think?";
  703. next;
  704. switch(select("It was pretty hard.:I should've been successful...")) {
  705. case 1:
  706. mes "[Pierrot Pier]";
  707. mes "It's like trying to find a needle in a haystack!";
  708. mes "It's hard, but if you find it, it's worth ten times the effort. Beep, beep.";
  709. next;
  710. break;
  711. case 2:
  712. mes "[Pierrot Pier]";
  713. mes "Aaah~! Time is gold.";
  714. mes "Precious time goes by so fast.";
  715. next;
  716. break;
  717. }
  718. mes "[Pierrot Pier]";
  719. mes "I, Pierrot Piere, am not a heartless clown! Beep beep.";
  720. mapannounce "schg_que01", "Pierrot Pier: I, Pierrot Piere, am not a heartless clown! Beep beep.",bc_map,"0x99CC00";
  721. next;
  722. mes "[Pierrot Pier]";
  723. mes "Your success is my happiness!";
  724. mes "I'll give you one more chance. How's that? Beep?";
  725. mapannounce "schg_que01", "Pierrot Pier: I'll give you one more chance. How's that? Beep?",bc_map,"0x99CC00";
  726. next;
  727. mes "[Pierrot Pier]";
  728. mes "Okay, I'm ready to begin.";
  729. mes "Shall we start? Beep, beep?";
  730. mapannounce "schg_que01", "Pierrot Pier: Okay, I'm ready to begin. Shall we start? Beep, beep?",bc_map,"0x99CC00";
  731. next;
  732. switch(select("No.:Start.")) {
  733. case 1:
  734. mes "[Pierrot Pier]";
  735. mes "Let me know when you are ready.";
  736. close;
  737. case 2:
  738. mes "[Pierrot Pier]";
  739. mes "Alright! Let us begin!";
  740. next;
  741. mes "[Pierrot Pier]";
  742. mes "Ladies, and gentlemen.";
  743. mapannounce "schg_que01", "Pierrot Pier: Ladies, and gentlemen.",bc_map,"0x99CC00";
  744. next;
  745. mes "[Pierrot Pier]";
  746. mes "Who will find the treasure map in this white world?";
  747. mapannounce "schg_que01", "Pierrot Pier: Who will find the treasure map in this white world?",bc_map,"0x99CC00";
  748. next;
  749. mes "[Pierrot Pier]";
  750. mes "Amongst all of you, who shall be the lucky one?";
  751. mapannounce "schg_que01", "Pierrot Pier: Amongst all of you, who shall be the lucky one?",bc_map,"0x99CC00";
  752. next;
  753. mes "[Pierrot Pier]";
  754. mes "Let the game.. Begin!";
  755. mapannounce "schg_que01", "Pierrot Pier: Let the game.. Begin!",bc_map,"0x99CC00";
  756. set $@gdeventv_s2,10;
  757. donpcevent "Controller#gdevent_s::Ongame_start";
  758. close;
  759. }
  760. }
  761. else if ($@gdeventv_s2 == 3) {
  762. set .@que_2143,checkquest(2143);
  763. if (.@que_2143 == 3) {
  764. erasequest 2143;
  765. }
  766. mes "[Pierrot Pier]";
  767. mes "How did you do it?";
  768. mapannounce "schg_que01", "Pierrot Pier: How did you do it?",bc_map,"0x99CC00";
  769. next;
  770. mes "[Pierrot Pier]";
  771. mes "You managed to find a needle in a haystack!";
  772. mes "Amazing!";
  773. mapannounce "schg_que01", "Pierrot Pier: You managed to find a needle in a haystack! Amazing!!",bc_map,"0x99CC00";
  774. next;
  775. mes "[Pierrot Pier]";
  776. mes "You've completeled an unbelievable task, I will give you the wonderful gift master has prepared!! Ha!";
  777. mapannounce "schg_que01", "Pierrot Pier: You've completeled an unbelievable task, I will give you the wonderful gift my master has prepared!! Ha!",bc_map,"0x99CC00";
  778. mapannounce "schg_que01", "Pierrot Pier: Here, take Pierre's Treasure Boxes.",bc_map,"0x99CC00";
  779. donpcevent "eff_mvp#sch_gd::Onmvp";
  780. set $@gdeventv_s2,5;
  781. getitem 14596,10; //Pierre_Treasurebox
  782. close;
  783. }
  784. else if ($@gdeventv_s2 == 4) {
  785. mes "[Pierrot Pier]";
  786. mes "Incredible! Unbelievable! Beep beep!";
  787. close;
  788. }
  789. else if ($@gdeventv_s2 == 5) {
  790. mapannounce "schg_que01", "Pierrot Pier: Seeing your smiles, makes Pierrot feel very happy~ See you next time!",bc_map,"0x99CC00";
  791. mes "[Pierrot Pier]";
  792. mes "Did you have fun?";
  793. next;
  794. mes "[Pierrot Pier]";
  795. mes "Seeing your smiles, makes Pierrot feel very happy~";
  796. next;
  797. mes "[Pierrot Pier]";
  798. mes "I hope to see you again very soon, I must go back to being a doll now.";
  799. mes "See you next time!";
  800. erasequest 2144;
  801. close;
  802. }
  803. else {
  804. mes "[Pierrot Pier]";
  805. mes "Did you find the treasure map?";
  806. mes "Show me what you have in your hands! Beep, beep!";
  807. next;
  808. mes "[Pierrot Pier]";
  809. mes "Let me see.";
  810. next;
  811. if (countitem(6031) > 0) {
  812. donpcevent "Controller#gdevent_s::OnStop";
  813. set $@gdeventv_s2,3;
  814. donpcevent "eff_mvp#sch_gd::Onmvp";
  815. mes "[Pierrot Pier]";
  816. mes "Wow~~!!";
  817. mes "Success~!!";
  818. mes "What a success~!!";
  819. delitem 6031,1; //Glitering_PaperB
  820. close;
  821. }
  822. else {
  823. if (countitem(6030) > 0) {
  824. mes "[Pierrot Pier]";
  825. mes "Ahh, what a shame, it seems like you haven't found the treasure map yet.";
  826. mes "Quickly! Your time is running out! Hurry up!";
  827. close;
  828. }
  829. else {
  830. mes "[Pierrot Pier]";
  831. mes "I don't see anything. Have you even started yet? Beep?";
  832. mes "Hehe, while you're talking to me, the time is slowly ticking away~";
  833. close;
  834. }
  835. }
  836. }
  837. }
  838. else {
  839. if ($@gdeventv_s2 == 0) {
  840. setnpcdisplay "Pierrot Pier#sch_gd",715;
  841. mes "A lonely clown is juggling.";
  842. next;
  843. mes "When looked at closely, the clown is just a puppet that looks like a human.";
  844. next;
  845. mes "The clown stops, then starts moving in accordance to your movements, noises start to emit from it's mouth.";
  846. next;
  847. mes "[Pierrot Pier]";
  848. mes "Beep beep beep.";
  849. mes "Hello, my friends!";
  850. mapannounce "schg_que01", "Pierrot Pier: Beep beep beep! Hello, my friends!",bc_map,"0x99CC00";
  851. next;
  852. mes "[Pierrot Pier]";
  853. mes "I am the loyal servant of Gergath, and I have finally received my orders.";
  854. mes "I am happy to hear all the laughter, but without my master's permission, I can't do anything.";
  855. mapannounce "schg_que01", "Pierrot Pier: I am happy to hear all the laughter, but without my master's permission, I can't do anything.",bc_map,"0x99CC00";
  856. next;
  857. mes "[Pierrot Pier]";
  858. mes "Did you get permission from the Gergath?";
  859. mapannounce "schg_que01", "Pierrot Pier: Did you get permission from Gergath?",bc_map,"0x99CC00";
  860. next;
  861. switch(select("I need to check that.:No.")) {
  862. case 1:
  863. mes "[Pierrot Pier]";
  864. mes "Please give me the palm of your hand.";
  865. mapannounce "schg_que01", "Pierrot Pier: Please give me the palm of your hand.",bc_map,"0x99CC00";
  866. next;
  867. mes "[Pierrot Pier]";
  868. mes "Let me see...";
  869. mapannounce "schg_que01", "Pierrot Pier: Let me see...",bc_map,"0x99CC00";
  870. next;
  871. emotion ET_THINK;
  872. mes "[Pierrot Pier]";
  873. mes "Hm...";
  874. mapannounce "schg_que01", "Pierrot Pier: Hm...",bc_map,"0x99CC00";
  875. next;
  876. emotion ET_THINK;
  877. mes "[Pierrot Pier]";
  878. mes "Okay, I see...";
  879. mapannounce "schg_que01", "Pierrot Pier: Okay, I see...",bc_map,"0x99CC00";
  880. next;
  881. emotion ET_THINK;
  882. mes "[Pierrot Pier]";
  883. mes "Indeed...";
  884. mapannounce "schg_que01", "Pierrot Pier: Indeed...",bc_map,"0x99CC00";
  885. next;
  886. emotion ET_STARE;
  887. mes "[Pierrot Pier]";
  888. mes "Verification completed!";
  889. mapannounce "schg_que01", "Pierrot Pier: Verification completed!",bc_map,"0x99CC00";
  890. next;
  891. break;
  892. case 2:
  893. mes "[Pierrot Pier]";
  894. mes "Hm? that's right.";
  895. mes "When is that person coming? I am very bored~!";
  896. close;
  897. }
  898. emotion ET_SMILE;
  899. mes "[Pierrot Pier]";
  900. mes "^3131FF<Although you're a weirdo, you seem to be very dedicated>^000000. Beep beep.";
  901. next;
  902. emotion ET_PROFUSELY_SWEAT;
  903. mes "[Pierrot Pier]";
  904. mes "Hm? You don't think so?";
  905. next;
  906. mes "[Pierrot Pier]";
  907. mes "The one my lord appointed is ^3131FF< someone who leads many people >^000000. Beep.";
  908. next;
  909. mes "[Pierrot Pier]";
  910. mes "Pierrot wants to be someone like that, too. Beep.";
  911. close;
  912. }
  913. else if ($@gdeventv_s2 == 1) {
  914. mes "[Pierrot Pier]";
  915. mes "Did you find the treasure map?";
  916. mes "Show me what you have in your hands! Beep, beep!";
  917. next;
  918. mes "[Pierrot Pier]";
  919. mes "Let me see...";
  920. next;
  921. if (countitem(6031) > 0) {
  922. donpcevent "Controller#gdevent_s::OnStop";
  923. set $@gdeventv_s2,3;
  924. donpcevent "eff_mvp#sch_gd::Onmvp";
  925. mes "[Pierrot Pier]";
  926. mes "Wow~~!!";
  927. mes "Success~!!";
  928. mes "What a success~!!";
  929. mapannounce "schg_que01", "Pierrot Pier: Wow~~!! Success~!! What a success~!!",bc_map,"0x99CC00";
  930. delitem 6031,1; //Glitering_PaperB
  931. close;
  932. }
  933. else {
  934. if (countitem(6030) > 0) {
  935. mes "[Pierrot Pier]";
  936. mes "Ahh, what a shame, it seems like you haven't found the treasure map yet.";
  937. mes "Quickly! Your time is running out! Hurry up!";
  938. close;
  939. }
  940. else {
  941. mes "[Pierrot Pier]";
  942. mes "I don't see anything. Have you even started yet? Beep?";
  943. mes "Hehe, while you're talking to me, the time is slowly ticking away~";
  944. close;
  945. }
  946. }
  947. }
  948. else if ($@gdeventv_s2 == 2) {
  949. mes "[Pierrot Pier]";
  950. mes "Wah, why is it like this~!!";
  951. mes "Not enough? But this makes the game fun, no? Hahaha!";
  952. close;
  953. }
  954. else if ($@gdeventv_s2 == 3) {
  955. mes "[Pierrot Pier]";
  956. mes "Congratulations, you have succeeded!";
  957. mes "I will talk to your leader about other details.";
  958. close;
  959. }
  960. else if ($@gdeventv_s2 == 4) {
  961. mes "[Pierrot Pier]";
  962. mes "Incredible! Unbelievable! Beep beep!";
  963. close;
  964. }
  965. else if ($@gdeventv_s2 == 5) {
  966. mes "[Pierrot Pier]";
  967. mes "Did you have fun?";
  968. next;
  969. mes "[Pierrot Pier]";
  970. mes "Seeing your smiles, makes Pierrot feel very happy~";
  971. next;
  972. mes "[Pierrot Pier]";
  973. mes "I hope to see you again very soon, I must go back to being a doll now.";
  974. mes "See you next time!";
  975. close;
  976. }
  977. else {
  978. mes "[Pierrot Pier]";
  979. mes "Did you find the treasure?";
  980. mes "Show me that thing you are holding, now!";
  981. next;
  982. mes "[Pierrot Pier]";
  983. mes "Let me see...";
  984. next;
  985. if (countitem(6031) > 0) {
  986. donpcevent "Controller#gdevent_s::OnStop";
  987. set $@gdeventv_s2,3;
  988. donpcevent "eff_mvp#sch_gd::Onmvp";
  989. mes "[Pierrot Pier]";
  990. mes "Wow~~!!";
  991. mes "Success~!!";
  992. mes "What a success~!!";
  993. delitem 6031,1; //Glitering_PaperB
  994. close;
  995. }
  996. else {
  997. if (countitem(6030) > 0) {
  998. mes "[Pierrot Pier]";
  999. mes "Ahh, what a shame, it seems like you haven't found the treasure map yet.";
  1000. mes "Quickly! Your time is running out! Hurry up!";
  1001. close;
  1002. }
  1003. else {
  1004. mes "[Pierrot Pier]";
  1005. mes "I don't see anything. Have you even started yet? Beep?";
  1006. mes "Hehe, while you're talking to me, the time is slowly ticking away~";
  1007. close;
  1008. }
  1009. }
  1010. }
  1011. }
  1012. }
  1013. schg_que01,10,10,3 script Controller#gdevent_s 81,{
  1014. OnInit:
  1015. set $@gdeventv_s2,0;
  1016. end;
  1017. Onwin:
  1018. donpcevent "treg#sch_gd::OnEnable";
  1019. end;
  1020. Ongame_start:
  1021. initnpctimer;
  1022. donpcevent "paper_sp_1_s::OnEnable";
  1023. donpcevent "paper_sp_2_s::OnEnable";
  1024. donpcevent "paper_sp_3_s::OnEnable";
  1025. donpcevent "paper_sp_4_s::OnEnable";
  1026. donpcevent "paper_sp_5_s::OnEnable";
  1027. donpcevent "paper_sp_6_s::OnEnable";
  1028. donpcevent "paper_sp_7_s::OnEnable";
  1029. donpcevent "paper_sp_8_s::OnEnable";
  1030. donpcevent "paper_sp_9_s::OnEnable";
  1031. set .@roulette_where,rand(1,9);
  1032. if (.@roulette_where == 1) {
  1033. donpcevent "paper_sp_1_s::OnBingo";
  1034. }
  1035. else if (.@roulette_where == 2) {
  1036. donpcevent "paper_sp_2_s::OnBingo";
  1037. }
  1038. else if (.@roulette_where == 3) {
  1039. donpcevent "paper_sp_3_s::OnBingo";
  1040. }
  1041. else if (.@roulette_where == 4) {
  1042. donpcevent "paper_sp_4_s::OnBingo";
  1043. }
  1044. else if (.@roulette_where == 5) {
  1045. donpcevent "paper_sp_5_s::OnBingo";
  1046. }
  1047. else if (.@roulette_where == 6) {
  1048. donpcevent "paper_sp_6_s::OnBingo";
  1049. }
  1050. else if (.@roulette_where == 7) {
  1051. donpcevent "paper_sp_7_s::OnBingo";
  1052. }
  1053. else if (.@roulette_where == 8) {
  1054. donpcevent "paper_sp_8_s::OnBingo";
  1055. }
  1056. else {
  1057. donpcevent "paper_sp_9_s::OnBingo";
  1058. }
  1059. end;
  1060. OnStop:
  1061. stopnpctimer;
  1062. end;
  1063. OnTimer40000:
  1064. mapannounce "schg_que01", "Pierrot Pier: Time is running out, hurry up!",bc_map,"0x99CC00";
  1065. end;
  1066. OnTimer60000:
  1067. mapannounce "schg_que01", "Pierrot Pier: Time is up!",bc_map,"0x99CC00";
  1068. mapwarp "schg_que01","schg_que01",100,79;
  1069. enablenpc "removepp_sch_gd";
  1070. set $@gdeventv_s2,2;
  1071. end;
  1072. OnTimer63000:
  1073. stopnpctimer;
  1074. end;
  1075. }
  1076. schg_que01,87,93,0 script paper_sp_1_s 139,{
  1077. end;
  1078. OnEnable:
  1079. set .@paper_while1,0;
  1080. while(1) {
  1081. if (.@paper_while1 == 100) {
  1082. break;
  1083. }
  1084. else {
  1085. set .@paper_while1,.@paper_while1+1;
  1086. set .@paper_x1,rand(81,95);
  1087. set .@paper_y1,rand(87,100);
  1088. makeitem 6030,1,"schg_que01",.@paper_x1,.@paper_y1; //Glitering_PaperA
  1089. }
  1090. }
  1091. end;
  1092. OnBingo:
  1093. set .@paper_x1,rand(81,95);
  1094. set .@paper_y1,rand(87,100);
  1095. makeitem 6031,1,"schg_que01",.@paper_x1,.@paper_y1; //Glitering_PaperB
  1096. end;
  1097. }
  1098. schg_que01,102,93,0 script paper_sp_2_s 139,{
  1099. end;
  1100. OnEnable:
  1101. set .@paper_while2,0;
  1102. while(1) {
  1103. if (.@paper_while2 == 100) {
  1104. break;
  1105. }
  1106. else {
  1107. set .@paper_while2,.@paper_while2+1;
  1108. set .@paper_x2,rand(96,110);
  1109. set .@paper_y2,rand(87,100);
  1110. makeitem 6030,1,"schg_que01",.@paper_x2,.@paper_y2; //Glitering_PaperA
  1111. }
  1112. }
  1113. end;
  1114. OnBingo:
  1115. set .@paper_x2,rand(96,110);
  1116. set .@paper_y2,rand(87,100);
  1117. makeitem 6031,1,"schg_que01",.@paper_x2,.@paper_y2; //Glitering_PaperB
  1118. end;
  1119. }
  1120. schg_que01,117,93,0 script paper_sp_3_s 139,{
  1121. end;
  1122. OnEnable:
  1123. set .@paper_while3,0;
  1124. while(1) {
  1125. if (.@paper_while3 == 100) {
  1126. break;
  1127. }
  1128. else {
  1129. set .@paper_while3,.@paper_while3+1;
  1130. set .@paper_x3,rand(111,124);
  1131. set .@paper_y3,rand(87,100);
  1132. makeitem 6030,1,"schg_que01",.@paper_x3,.@paper_y3; //Glitering_PaperA
  1133. }
  1134. }
  1135. end;
  1136. OnBingo:
  1137. set .@paper_x3,rand(111,124);
  1138. set .@paper_y3,rand(87,100);
  1139. makeitem 6031,1,"schg_que01",.@paper_x3,.@paper_y3; //Glitering_PaperB
  1140. end;
  1141. }
  1142. schg_que01,87,80,0 script paper_sp_4_s 139,{
  1143. end;
  1144. OnEnable:
  1145. set .@paper_while4,0;
  1146. while(1) {
  1147. if (.@paper_while4 == 100) {
  1148. break;
  1149. }
  1150. else {
  1151. set .@paper_while4,.@paper_while4+1;
  1152. set .@paper_x4,rand(81,95);
  1153. set .@paper_y4,rand(73,86);
  1154. makeitem 6030,1,"schg_que01",.@paper_x4,.@paper_y4; //Glitering_PaperA
  1155. }
  1156. }
  1157. end;
  1158. OnBingo:
  1159. set .@paper_x4,rand(81,95);
  1160. set .@paper_y4,rand(73,86);
  1161. makeitem 6031,1,"schg_que01",.@paper_x4,.@paper_y4; //Glitering_PaperB
  1162. end;
  1163. }
  1164. schg_que01,102,80,0 script paper_sp_5_s 139,{
  1165. end;
  1166. OnEnable:
  1167. set .@paper_while5,0;
  1168. while(1) {
  1169. if (.@paper_while5 == 100) {
  1170. break;
  1171. }
  1172. else {
  1173. set .@paper_while5,.@paper_while5+1;
  1174. set .@paper_x5,rand(96,110);
  1175. set .@paper_y5,rand(73,86);
  1176. makeitem 6030,1,"schg_que01",.@paper_x5,.@paper_y5; //Glitering_PaperA
  1177. }
  1178. }
  1179. end;
  1180. OnBingo:
  1181. set .@paper_x5,rand(96,110);
  1182. set .@paper_y5,rand(73,86);
  1183. makeitem 6031,1,"schg_que01",.@paper_x5,.@paper_y5; //Glitering_PaperB
  1184. end;
  1185. }
  1186. schg_que01,117,80,0 script paper_sp_6_s 139,{
  1187. end;
  1188. OnEnable:
  1189. set .@paper_while6,0;
  1190. while(1) {
  1191. if (.@paper_while6 == 100) {
  1192. break;
  1193. }
  1194. else {
  1195. set .@paper_while6,.@paper_while6+1;
  1196. set .@paper_x6,rand(111,124);
  1197. set .@paper_y6,rand(73,86);
  1198. makeitem 6030,1,"schg_que01",.@paper_x6,.@paper_y6; //Glitering_PaperA
  1199. }
  1200. }
  1201. end;
  1202. OnBingo:
  1203. set .@paper_x6,rand(111,124);
  1204. set .@paper_y6,rand(73,86);
  1205. makeitem 6031,1,"schg_que01",.@paper_x6,.@paper_y6; //Glitering_PaperB
  1206. end;
  1207. }
  1208. schg_que01,87,65,0 script paper_sp_7_s 139,{
  1209. end;
  1210. OnEnable:
  1211. set .@paper_while7,0;
  1212. while(1) {
  1213. if (.@paper_while7 == 100) {
  1214. break;
  1215. }
  1216. else {
  1217. set .@paper_while7,.@paper_while7+1;
  1218. set .@paper_x7,rand(81,95);
  1219. set .@paper_y7,rand(59,72);
  1220. makeitem 6030,1,"schg_que01",.@paper_x7,.@paper_y7; //Glitering_PaperA
  1221. }
  1222. }
  1223. end;
  1224. OnBingo:
  1225. set .@paper_x7,rand(81,95);
  1226. set .@paper_y7,rand(59,72);
  1227. makeitem 6031,1,"schg_que01",.@paper_x7,.@paper_y7; //Glitering_PaperB
  1228. end;
  1229. }
  1230. schg_que01,102,65,0 script paper_sp_8_s 139,{
  1231. end;
  1232. OnEnable:
  1233. set .@paper_while8,0;
  1234. while(1) {
  1235. if (.@paper_while8 == 100) {
  1236. break;
  1237. }
  1238. else {
  1239. set .@paper_while8,.@paper_while8+1;
  1240. set .@paper_x8,rand(96,110);
  1241. set .@paper_y8,rand(59,72);
  1242. makeitem 6030,1,"schg_que01",.@paper_x8,.@paper_y8; //Glitering_PaperA
  1243. }
  1244. }
  1245. end;
  1246. OnBingo:
  1247. set .@paper_x8,rand(96,110);
  1248. set .@paper_y8,rand(59,72);
  1249. makeitem 6031,1,"schg_que01",.@paper_x8,.@paper_y8; //Glitering_PaperB
  1250. end;
  1251. }
  1252. schg_que01,117,65,0 script paper_sp_9_s 139,{
  1253. end;
  1254. OnEnable:
  1255. set .@paper_while9,0;
  1256. while(1) {
  1257. if (.@paper_while9 == 100) {
  1258. break;
  1259. }
  1260. else {
  1261. set .@paper_while9,.@paper_while9+1;
  1262. set .@paper_x9,rand(111,124);
  1263. set .@paper_y9,rand(59,72);
  1264. makeitem 6030,1,"schg_que01",.@paper_x9,.@paper_y9; //Glitering_PaperA
  1265. }
  1266. }
  1267. end;
  1268. OnBingo:
  1269. set .@paper_x9,rand(111,124);
  1270. set .@paper_y9,rand(59,72);
  1271. makeitem 6031,1,"schg_que01",.@paper_x9,.@paper_y9; //Glitering_PaperB
  1272. end;
  1273. }
  1274. schg_que01,100,80,0 script removepp_sch_gd -1,5,5,{
  1275. end;
  1276. OnInit:
  1277. disablenpc "removepp_sch_gd";
  1278. end;
  1279. OnTouch:
  1280. set .@paper_sch_gd,countitem(6030);
  1281. set .@spaper_sch_gd,countitem(6031);
  1282. if ((.@paper_sch_gd > 0) || (.@spaper_sch_gd > 0)) {
  1283. delitem 6030,.@paper_sch_gd; //Glitering_PaperA
  1284. delitem 6031,.@spaper_sch_gd; //Glitering_PaperB
  1285. }
  1286. end;
  1287. }
  1288. schg_que01,6,6,1 script eff_mvp#sch_gd 844,{
  1289. end;
  1290. Onmvp:
  1291. initnpctimer;
  1292. end;
  1293. OnTimer1000:
  1294. specialeffect EF_MVP,AREA,"paper_sp_1_s";
  1295. specialeffect EF_MVP,AREA,"paper_sp_3_s";
  1296. specialeffect EF_MVP,AREA,"paper_sp_5_s";
  1297. specialeffect EF_MVP,AREA,"paper_sp_7_s";
  1298. specialeffect EF_MVP,AREA,"paper_sp_9_s";
  1299. end;
  1300. OnTimer2000:
  1301. specialeffect EF_MVP,AREA,"paper_sp_2_s";
  1302. specialeffect EF_MVP,AREA,"paper_sp_4_s";
  1303. specialeffect EF_MVP,AREA,"paper_sp_6_s";
  1304. specialeffect EF_MVP,AREA,"paper_sp_8_s";
  1305. end;
  1306. OnTimer3000:
  1307. specialeffect EF_MVP,AREA,"paper_sp_1_s";
  1308. specialeffect EF_MVP,AREA,"paper_sp_3_s";
  1309. specialeffect EF_MVP,AREA,"paper_sp_5_s";
  1310. specialeffect EF_MVP,AREA,"paper_sp_7_s";
  1311. specialeffect EF_MVP,AREA,"paper_sp_9_s";
  1312. end;
  1313. OnTimer4000:
  1314. specialeffect EF_MVP,AREA,"paper_sp_2_s";
  1315. specialeffect EF_MVP,AREA,"paper_sp_4_s";
  1316. specialeffect EF_MVP,AREA,"paper_sp_6_s";
  1317. specialeffect EF_MVP,AREA,"paper_sp_8_s";
  1318. stopnpctimer;
  1319. end;
  1320. }
  1321. schg_que01,100,75,5 script Gergath#sch_gd 412,{
  1322. end;
  1323. OnInit:
  1324. disablenpc "Gergath#sch_gd";
  1325. end;
  1326. OnEnable:
  1327. enablenpc "Gergath#sch_gd";
  1328. specialeffect EF_FORESTLIGHT;
  1329. initnpctimer;
  1330. end;
  1331. OnTimer5000:
  1332. mapannounce "schg_que01", "Gergath : My dear friend, how have you been? This is something I prepared for you.",bc_map,"0xFFFF00";
  1333. end;
  1334. OnTimer10000:
  1335. mapannounce "schg_que01", "Gergath : Do you still remember when we were young? We fought everyday like we were sworn enemies.",bc_map,"0xFFFF00";
  1336. end;
  1337. OnTimer15000:
  1338. mapannounce "schg_que01", "Gergath : No matter how hard the adults tried, we had no intentions to change. Haha.",bc_map,"0xFFFF00";
  1339. end;
  1340. OnTimer20000:
  1341. mapannounce "schg_que01", "Gergath : But I believe that deep inside, we valued our friendship with each other.",bc_map,"0xFFFF00";
  1342. end;
  1343. OnTimer25000:
  1344. mapannounce "schg_que01", "Gergath : After I lost my mother's remnants in Mt. Mjolnir, you came to find me.",bc_map,"0xFFFF00";
  1345. end;
  1346. OnTimer30000:
  1347. mapannounce "schg_que01", "Gergath : When you, handed me my mother's remnants, I couldn't even say thank you.",bc_map,"0xFFFF00";
  1348. end;
  1349. OnTimer35000:
  1350. mapannounce "schg_que01", "Gergath : I couldn't say it even as I became an old man.",bc_map,"0xFFFF00";
  1351. end;
  1352. OnTimer40000:
  1353. mapannounce "schg_que01", "Gergath : I found out about your whereabouts not long ago. I heard you were taking care of orphaned children?",bc_map,"0xFFFF00";
  1354. end;
  1355. OnTimer45000:
  1356. mapannounce "schg_que01", "Gergath : Please accept this as a gift from a useless friend to you and your beloved children. I hope you will like it, haha.",bc_map,"0xFFFF00";
  1357. end;
  1358. OnTimer50000:
  1359. mapannounce "schg_que01", "Gergath : Pierrot Pier will help you. I hope you can use this chance to return to the past and enjoy yourself with your children.",bc_map,"0xFFFF00";
  1360. disablenpc "Gergath#sch_gd";
  1361. stopnpctimer;
  1362. end;
  1363. }
  1364. schg_que01,104,140,0 warp back#sch_gd 1,1,schg_dun01,199,192
  1365. /*
  1366. schg_que01,104,140,1 script treg#sch_gd 844,{
  1367. end;
  1368. OnEnable:
  1369. monster "schg_que01",87,93,"Poporing",1031,1,"treg#sch_gd::OnMyMobDead";
  1370. monster "schg_que01",102,93,"Poporing",1031,1,"treg#sch_gd::OnMyMobDead";
  1371. monster "schg_que01",117,93,"Poporing",1031,1,"treg#sch_gd::OnMyMobDead";
  1372. monster "schg_que01",87,80,"Poporing",1031,1,"treg#sch_gd::OnMyMobDead";
  1373. monster "schg_que01",102,80,"Poporing",1031,1,"treg#sch_gd::OnMyMobDead";
  1374. monster "schg_que01",117,80,"Poporing",1031,1,"treg#sch_gd::OnMyMobDead";
  1375. monster "schg_que01",87,65,"Poporing",1031,1,"treg#sch_gd::OnMyMobDead";
  1376. monster "schg_que01",102,65,"Poporing",1031,1,"treg#sch_gd::OnMyMobDead";
  1377. monster "schg_que01",117,65,"Poporing",1031,1,"treg#sch_gd::OnMyMobDead";
  1378. end;
  1379. OnMyMobDead:
  1380. if (mobcount("schg_que01","treg#sch_gd::OnMyMobDead") == 0) {
  1381. mapannounce "schg_que01", "Pierrot Pier: Beep! Oh, you already opened the gift? You sure are fast now, beep!",bc_map,"0x99CC00";
  1382. set $@gdeventv_s2,5;
  1383. }
  1384. end;
  1385. }
  1386. */
  1387. schg_que01,98,105,3 script #sch_flower_01::GD_Ev_Flower2 978,{
  1388. end;
  1389. }
  1390. schg_que01,94,105,3 duplicate(GD_Ev_Flower2) #sch_flower_02 977
  1391. schg_que01,90,105,3 duplicate(GD_Ev_Flower2) #sch_flower_03 978
  1392. schg_que01,86,105,3 duplicate(GD_Ev_Flower2) #sch_flower_04 977
  1393. schg_que01,82,105,3 duplicate(GD_Ev_Flower2) #sch_flower_05 978
  1394. schg_que01,79,103,3 duplicate(GD_Ev_Flower2) #sch_flower_06 977
  1395. schg_que01,79,100,3 duplicate(GD_Ev_Flower2) #sch_flower_07 978
  1396. schg_que01,79,97,3 duplicate(GD_Ev_Flower2) #sch_flower_08 977
  1397. schg_que01,79,97,3 duplicate(GD_Ev_Flower2) #sch_flower_09 978
  1398. schg_que01,79,94,3 duplicate(GD_Ev_Flower2) #sch_flower_10 977
  1399. schg_que01,79,91,3 duplicate(GD_Ev_Flower2) #sch_flower_11 978
  1400. schg_que01,79,88,3 duplicate(GD_Ev_Flower2) #sch_flower_12 977
  1401. schg_que01,79,85,3 duplicate(GD_Ev_Flower2) #sch_flower_13 978
  1402. schg_que01,79,82,3 duplicate(GD_Ev_Flower2) #sch_flower_14 977
  1403. schg_que01,79,79,3 duplicate(GD_Ev_Flower2) #sch_flower_15 978
  1404. schg_que01,79,76,3 duplicate(GD_Ev_Flower2) #sch_flower_16 977
  1405. schg_que01,79,73,3 duplicate(GD_Ev_Flower2) #sch_flower_17 978
  1406. schg_que01,79,70,3 duplicate(GD_Ev_Flower2) #sch_flower_18 977
  1407. schg_que01,79,67,3 duplicate(GD_Ev_Flower2) #sch_flower_19 978
  1408. schg_que01,79,64,3 duplicate(GD_Ev_Flower2) #sch_flower_20 977
  1409. schg_que01,79,61,3 duplicate(GD_Ev_Flower2) #sch_flower_21 978
  1410. schg_que01,79,58,3 duplicate(GD_Ev_Flower2) #sch_flower_22 977
  1411. schg_que01,84,58,3 duplicate(GD_Ev_Flower2) #sch_flower_23 978
  1412. schg_que01,89,58,3 duplicate(GD_Ev_Flower2) #sch_flower_24 977
  1413. schg_que01,94,58,3 duplicate(GD_Ev_Flower2) #sch_flower_25 978
  1414. schg_que01,99,58,3 duplicate(GD_Ev_Flower2) #sch_flower_26 977
  1415. schg_que01,104,58,3 duplicate(GD_Ev_Flower2) #sch_flower_27 978
  1416. schg_que01,109,58,3 duplicate(GD_Ev_Flower2) #sch_flower_28 977
  1417. schg_que01,114,58,3 duplicate(GD_Ev_Flower2) #sch_flower_29 978
  1418. schg_que01,119,58,3 duplicate(GD_Ev_Flower2) #sch_flower_30 977
  1419. schg_que01,124,58,3 duplicate(GD_Ev_Flower2) #sch_flower_31 978
  1420. schg_que01,129,58,3 duplicate(GD_Ev_Flower2) #sch_flower_32 977
  1421. schg_que01,129,105,3 duplicate(GD_Ev_Flower2) #sch_flower_33 978
  1422. schg_que01,129,103,3 duplicate(GD_Ev_Flower2) #sch_flower_34 977
  1423. schg_que01,129,100,3 duplicate(GD_Ev_Flower2) #sch_flower_35 978
  1424. schg_que01,129,97,3 duplicate(GD_Ev_Flower2) #sch_flower_36 977
  1425. schg_que01,129,97,3 duplicate(GD_Ev_Flower2) #sch_flower_37 978
  1426. schg_que01,129,94,3 duplicate(GD_Ev_Flower2) #sch_flower_38 977
  1427. schg_que01,129,91,3 duplicate(GD_Ev_Flower2) #sch_flower_39 978
  1428. schg_que01,129,88,3 duplicate(GD_Ev_Flower2) #sch_flower_40 977
  1429. schg_que01,129,85,3 duplicate(GD_Ev_Flower2) #sch_flower_41 978
  1430. schg_que01,129,82,3 duplicate(GD_Ev_Flower2) #sch_flower_42 977
  1431. schg_que01,129,79,3 duplicate(GD_Ev_Flower2) #sch_flower_43 978
  1432. schg_que01,129,76,3 duplicate(GD_Ev_Flower2) #sch_flower_44 977
  1433. schg_que01,129,73,3 duplicate(GD_Ev_Flower2) #sch_flower_45 978
  1434. schg_que01,129,70,3 duplicate(GD_Ev_Flower2) #sch_flower_46 977
  1435. schg_que01,129,67,3 duplicate(GD_Ev_Flower2) #sch_flower_47 978
  1436. schg_que01,129,64,3 duplicate(GD_Ev_Flower2) #sch_flower_48 977
  1437. schg_que01,129,61,3 duplicate(GD_Ev_Flower2) #sch_flower_49 978
  1438. schg_que01,129,58,3 duplicate(GD_Ev_Flower2) #sch_flower_50 977
  1439. schg_que01,124,105,3 duplicate(GD_Ev_Flower2) #sch_flower_51 978
  1440. schg_que01,119,105,3 duplicate(GD_Ev_Flower2) #sch_flower_52 977
  1441. schg_que01,114,105,3 duplicate(GD_Ev_Flower2) #sch_flower_53 978
  1442. schg_que01,109,105,3 duplicate(GD_Ev_Flower2) #sch_flower_54 977
  1443. schg_que01,104,105,3 duplicate(GD_Ev_Flower2) #sch_flower_55 976
  1444. schg_dun01,5,5,1 script Event controller#sch_gd 81,{
  1445. if (callfunc("F_GM_NPC",1854,0) < 1) {
  1446. mes "Incorrect password.";
  1447. close;
  1448. } else {
  1449. mes "How can I help you?";
  1450. next;
  1451. switch(select("Reset.:No, thanks.")) {
  1452. case 1:
  1453. mes "Completed.";
  1454. donpcevent "Monster Controler1#sch::OnControler1#sch_gd";
  1455. donpcevent "Monster Controler1#sch::OnControler1#sch_gd";
  1456. disablenpc "Dwarf#sch_gd";
  1457. set $@gdeventv_s1,0;
  1458. set $@gdeventv_s2,0;
  1459. set $@gdevents_s$,"";
  1460. close;
  1461. case 2:
  1462. mes "Good bye~";
  1463. close;
  1464. }
  1465. }
  1466. }