marriage.txt 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000
  1. //===== rAthena Script =======================================
  2. //= Player Marriage
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.5
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Official Marriage script.
  12. //= Added isloggedin() check, even though Aegis doesn't do it.
  13. //= Currently does not support same-Sex marriages.
  14. //= Old script located in: npc/custom/marriage.txt
  15. //= - Variable in use: wedding_sign (max 1)
  16. //= - Variable in use: $@wedding (max 1)
  17. //= - Variable in use: $@wed_groom$ $@wed_bride$
  18. //===== Additional Comments: =================================
  19. //= 1.0 First version. [L0ne_W0lf]
  20. //= 1.1 Fixed a missing ")" [L0ne_W0lf]
  21. //= 1.2 Corrected duration of Wedding status. [L0ne_W0lf]
  22. //= 1.3 Changed permanent global variables to temporary ones. [Euphy]
  23. //= Added GM NPCs (commented).
  24. //= 1.4 Added GM management function. [Euphy]
  25. //= 1.5 Added Marriage Covenant item and VIP features. [Euphy]
  26. //============================================================
  27. prt_church,97,100,4 script Wedding Staff#w 71,{
  28. cutin "wedding_marry01",2;
  29. if (countitem(6026) == 0) {
  30. // If the VIP system is enabled:
  31. // - Non-VIP players must use a Marriage Covenant to get married.
  32. // - VIP players may either pay the Zeny fee or use a Marriage Covenant.
  33. if (VIP_SCRIPT && !vip_status(VIP_STATUS_ACTIVE)) {
  34. mes "[Marry Happy]";
  35. mes "Sorry but you can't get married right now.";
  36. mes "The wedding is only available for subscribed players.";
  37. mes "But if you have a ^FF0000Marriage Covenant^000000, then you'll be able to get married!";
  38. goto L_End;
  39. }
  40. } else
  41. set .@covenant,1;
  42. if (Upper == 2) {
  43. mes "[Marry Happy]";
  44. mes "Hello~";
  45. mes "My name is Marry Happy";
  46. mes "and I'm here to provide you";
  47. mes "with information related to";
  48. mes "marriage. Now, did you";
  49. mes "have any questions?";
  50. next;
  51. if (select("I want to get married.:I don't need your help!") == 1) {
  52. mes "[Marry Happy]";
  53. mes "Oh, I'm sorry, but";
  54. mes "adopted characters";
  55. mes "aren't allowed to get";
  56. mes "married. For now, why";
  57. mes "don't you enjoy the simple";
  58. mes "pleasures of childhood?";
  59. goto L_End;
  60. }
  61. mes "[Marry Happy]";
  62. mes "Oh, of course you";
  63. mes "don't! Little children";
  64. mes "can't get married-- there";
  65. mes "are too many laws against";
  66. mes "that~ Aren't you the most";
  67. mes "adorable little thing?";
  68. goto L_End;
  69. }
  70. mes "[Marry Happy]";
  71. mes "Marriage is the beautiful";
  72. mes "union of two souls that have";
  73. mes "chosen to be together forever,";
  74. mes "to share their joy and lives.";
  75. mes "Is there a special someone";
  76. mes "like that in your life?";
  77. next;
  78. switch(select("Ask about Wedding Ceremony:Ask about Procedure:Apply for Wedding:We are the Invincible Single Army!")) {
  79. case 1:
  80. mes "[Marry Happy]";
  81. mes "Wise and benevolent";
  82. mes "King Tristram III used to";
  83. mes "conduct wedding ceremonies,";
  84. mes "but he's no longer able to do";
  85. mes "so because of his royal duties";
  86. mes "and freneticly paced schedule.";
  87. next;
  88. mes "[Marry Happy]";
  89. mes "Bishop Vomars, the bishop";
  90. mes "of love, is now the officiator";
  91. mes "of the marriage ceremony.";
  92. mes "He is truly a treasure to the";
  93. mes "Rune-Midgarts Kingdom.";
  94. next;
  95. mes "[Marry Happy]";
  96. mes "When you marry someone,";
  97. mes "it's for the rest of your life, so think carefully before making or";
  98. mes "accepting a marriage proposal.";
  99. mes "Keep in mind that a man can only";
  100. mes "marry a woman and vice versa.";
  101. next;
  102. mes "[Marry Happy]";
  103. mes "If you're lucky enough to";
  104. mes "find someone that you really";
  105. mes "want to spend the rest of your";
  106. mes "life with, you might want to pop the question. I hope everyone";
  107. mes "finds their perfect match~";
  108. break;
  109. case 2:
  110. mes "[Marry Happy]";
  111. mes "The first part of the";
  112. mes "wedding procedure is to";
  113. mes "complete the application.";
  114. mes "Once the bride and bridegroom";
  115. mes "have finished applying, they";
  116. mes "must form a party of two.";
  117. next;
  118. mes "[Marry Happy]";
  119. mes "After forming a party of two,";
  120. mes "the couple must then speak to";
  121. mes "Bishop Vomars. The bridegroom";
  122. mes "speaks first and must tell his";
  123. mes "bride's exact name to the Bishop. Otherwise, the ceremony will stop.";
  124. next;
  125. mes "[Marry Happy]";
  126. mes "Afterwards, the bride will";
  127. mes "speak to the Bishop and tell";
  128. mes "him the name of her groom.";
  129. mes "If these names are correctly";
  130. mes "told to the Bishop, they will";
  131. mes "be able to exchange rings.";
  132. next;
  133. mes "[Marry Happy]";
  134. mes "Once the wedding rings are";
  135. mes "exchanged, the couple is forever bound in matrimony. Of course,";
  136. mes "before this point, there are many chances to change your mind, so...";
  137. next;
  138. mes "[Marry Happy]";
  139. mes "If there are too many";
  140. mes "couples who want to get";
  141. mes "married at one time, please";
  142. mes "form a line and speak to Bishop";
  143. mes "Vomars in order since only one couple can be married at a time.";
  144. next;
  145. mes "[Marry Happy]";
  146. mes "Finally, be sure to tell";
  147. mes "Bishop Vomars your partner's";
  148. mes "exact name without wasting too much time. If you take too long,";
  149. mes "the ceremony will automatically stop and you'll have to try again.";
  150. next;
  151. mes "[Marry Happy]";
  152. mes "Brides need to remember";
  153. mes "that they only have 3 minutes";
  154. mes "to finish speaking to Bishop";
  155. mes "Vomars after their grooms";
  156. mes "have finished speaking to him.";
  157. next;
  158. if (select("Thanks, that helps a lot!:Easiest way to say my partner's name?") == 1) {
  159. mes "[Marry Happy]";
  160. mes "Well, I'm here to help";
  161. mes "weddings proceed as";
  162. mes "smoothly as possible.";
  163. mes "If there was something";
  164. mes "you didn't understand,";
  165. mes "feel free to ask me again.";
  166. goto L_End;
  167. }
  168. mes "[Marry Happy]";
  169. mes "The easiest way to write";
  170. mes "your partner's name for the";
  171. mes "bishop is to send a private";
  172. mes "message to your partner, and";
  173. mes "then left-click the name section that is left of the chat prompt.";
  174. next;
  175. mes "[Marry Happy]";
  176. mes "Press the ''Ctrl'' and ''C''";
  177. mes "keys to copy the name. Then,";
  178. mes "you can paste the name into";
  179. mes "the input prompt by pressing";
  180. mes "the ''Insert'' and ''Shift'' keys. That sounds easy, right?";
  181. next;
  182. mes "[Marry Happy]";
  183. mes "Alright, now let's try";
  184. mes "it. Practice giving me the";
  185. mes "name of your partner using";
  186. mes "the method I just described.";
  187. next;
  188. input .@partner$;
  189. mes "[Marry Happy]";
  190. mes "Alright, after you've";
  191. mes "decided to get married,";
  192. mes "come back to me and";
  193. mes "submit your application.";
  194. mes "I'll see you later, adventurer~";
  195. break;
  196. case 3:
  197. cutin "wedding_marry02",2;
  198. if (VIP_SCRIPT) {
  199. mes "[Marry Happy]";
  200. mes "^FF0000Wait!^000000";
  201. mes "^FF0000If your account in not a premium, you must have a Marriage Covenant to get married.^000000";
  202. mes "^FF0000Please check the current state of your account, and the one of your lover, before register for a wedding.^000000";
  203. next;
  204. }
  205. if (Sex == SEX_MALE) {
  206. mes "[Marry Happy]";
  207. mes "So you'd like to get married?";
  208. mes "As a groom, you need to prepare";
  209. if (.@covenant) {
  210. mes "^3377FF1 Tuxedo^000000 and give me your ^3377FF1 Marriage Covenant^000000.";
  211. mes "Brides have to provide their own Wedding Dresses and pay a fee";
  212. mes "of 1,200,000 zeny or also bring a Marriage Covenant.";
  213. } else {
  214. mes "^3377FF1 Tuxedo^000000 and pay ^3377FF1,300,000 zeny^000000.";
  215. mes "Brides have to provide their own Wedding Dresses and pay a fee";
  216. mes "of 1,200,000 zeny.";
  217. }
  218. } else {
  219. mes "[Marry Happy]";
  220. mes "So you'd like to get married?";
  221. mes "As a bride, you need to prepare";
  222. if (.@covenant) {
  223. mes "^3377FF1 Wedding Dress^000000 and give me your ^3377FFMarriage Covenant^000000.";
  224. mes "Grooms must bring a Tuxedo and pay";
  225. mes "1,300,000 zeny or also bring a Marriage Covenant.";
  226. } else {
  227. mes "^3377FF1 Wedding Dress^000000 and pay a fee of 1,200,000 zeny. Grooms must";
  228. mes "bring a Tuxedo and pay 1,300,000 zeny to get married.";
  229. }
  230. }
  231. next;
  232. mes "[Marry Happy]";
  233. mes "Brides and grooms also need";
  234. mes "to have ^3377FF1 Diamond Ring^000000 to be";
  235. mes "exchanged with their partners.";
  236. mes "You'll need all of these items";
  237. mes "prepared when you submit your";
  238. mes "wedding ceremony application.";
  239. next;
  240. mes "[Marry Happy]";
  241. mes "The prospective bride and";
  242. mes "groom must both complete";
  243. mes "application process before";
  244. mes "the wedding can take place.";
  245. mes "Now, would you like to";
  246. mes "apply for marriage?";
  247. next;
  248. if (select("Yes:No") == 1) {
  249. if (getpartnerid()) {
  250. cutin "wedding_marry02",2;
  251. mes "[Marry Happy]";
  252. mes "I'm sorry, but you can't";
  253. mes "apply for another marriage!";
  254. mes "I can't allow you to betray";
  255. mes "your spouse like that, and";
  256. mes "besides, polygamy isn't";
  257. mes "legal here in Rune-Midgarts.";
  258. break;
  259. }
  260. else if (wedding_sign == 1) {
  261. mes "[Marry Happy]";
  262. mes "Didn't you already";
  263. mes "complete the application?";
  264. mes "Hmm, make sure that your";
  265. mes "partner also finished the";
  266. mes "application process, and";
  267. mes "then talk to Bishop Vomars.";
  268. break;
  269. }
  270. else if (BaseLevel < 45) {
  271. mes "[Marry Happy]";
  272. mes "Hmm, you need to be";
  273. mes "strong enough to protect";
  274. mes "the one that you love before";
  275. mes "you can consider marriage.";
  276. mes "After you grow stronger,";
  277. mes "come and talk to me again.";
  278. goto L_End;
  279. }
  280. else if (countitem(2613) < 1) {
  281. mes "[Marry Happy]";
  282. mes "Mm? Did you forget to";
  283. mes "bring the Diamond Ring";
  284. mes "to exchange with your partner";
  285. mes "during the wedding ceremony?";
  286. mes "Look for it carefully and come";
  287. mes "back after you find it, okay?";
  288. goto L_End;
  289. }
  290. else if (Sex == SEX_FEMALE) {
  291. if (countitem(6026) == 0 && Zeny < 1200000) {
  292. mes "[Marry Happy]";
  293. mes "I'm sorry, but all brides";
  294. mes "must pay the 1,200,000";
  295. mes "zeny fee or bring a Marriage";
  296. mes "Covenant to proceed with the";
  297. mes "wedding ceremony. Perhaps";
  298. mes "you could ask your partner";
  299. mes "to help you with the funds?";
  300. goto L_End;
  301. }
  302. else if (countitem(2338) < 1) {
  303. mes "[Marry Happy]";
  304. mes "Oh dear, did you forget";
  305. mes "your Wedding Dress?";
  306. mes "Hurry and find it, then";
  307. mes "bring it to me-- you";
  308. mes "absolutely need it";
  309. mes "for the wedding!";
  310. goto L_End;
  311. }
  312. }
  313. else if (Sex == SEX_MALE) {
  314. if (countitem(6026) == 0 && Zeny < 1300000) {
  315. mes "[Marry Happy]";
  316. mes "I'm sorry, but you don't";
  317. mes "have the 1,300,000 zeny";
  318. mes "or the Marriage Covenant";
  319. mes "that all grooms must pay";
  320. mes "for the wedding ceremony.";
  321. mes "Did you misplace your money?";
  322. goto L_End;
  323. }
  324. else if (countitem(7170) < 1) {
  325. mes "[Marry Happy]";
  326. mes "Where's your Tuxedo?";
  327. mes "You absolutely have to";
  328. mes "wear it during the wedding";
  329. mes "ceremony! Find it, bring it";
  330. mes "to me, and then we can finally";
  331. mes "begin the wedding, okay?";
  332. goto L_End;
  333. }
  334. }
  335. mes "[Marry Happy]";
  336. mes "Well, it looks like you";
  337. mes "have everything ready.";
  338. mes "Although I'm not sure who";
  339. mes "your partner is, let me be";
  340. mes "the first to congratulate you";
  341. mes "on your upcoming wedding~";
  342. next;
  343. mes "[Marry Happy]";
  344. mes "Now, let's begin the";
  345. mes "application. Please write";
  346. mes "down your exact name here.";
  347. next;
  348. while(1) {
  349. input .@name$;
  350. if (.@name$ != strcharinfo(0)) {
  351. mes "[Marry Happy]";
  352. mes "Hmmm, you have to write";
  353. mes "down your name exactly as";
  354. mes "it is displayed. Maybe you";
  355. mes "need to copy and paste it?";
  356. mes "Anyway, let's try it again.";
  357. next;
  358. }
  359. else
  360. break;
  361. }
  362. mes "[Marry Happy]";
  363. mes "Great, it looks like we";
  364. mes "finished your application.";
  365. mes "Remember that you'll need";
  366. mes "to tell Bishop Vomars your";
  367. mes "partner's exact name when";
  368. mes "you talk to him later, okay?";
  369. next;
  370. mes "[Marry Happy]";
  371. mes "When your partner is";
  372. mes "finished with the application";
  373. mes "process, both of you should";
  374. mes "speak to the Bishop to begin";
  375. mes "the wedding ceremony.";
  376. emotion ET_THROB;
  377. next;
  378. mes "[Marry Happy]";
  379. if (Sex == SEX_FEMALE) {
  380. mes "Since you're the bride,";
  381. mes "you need to wait for the";
  382. mes "groom to speak to Bishop";
  383. mes "Vomars first. When he's";
  384. mes "finished, it'll be your turn";
  385. mes "to speak to Bishop Vomars.";
  386. if (.@covenant)
  387. delitem 6026,1; //Marriage_Covenant
  388. else
  389. set Zeny, Zeny-1200000;
  390. delitem 2338,1; //Wedding_Dress
  391. }
  392. else {
  393. mes "Since you're the groom,";
  394. mes "you need to speak to the";
  395. mes "Bishop first. When you're";
  396. mes "finished, it will be your";
  397. mes "bride's turn to speak to";
  398. mes "Bishop Vomars.";
  399. if (.@covenant)
  400. delitem 6026,1; //Marriage_Covenant
  401. else
  402. set Zeny, Zeny-1300000;
  403. delitem 7170,1; //Tuxedo
  404. }
  405. delitem 2613,1; //Diamond_Ring
  406. set wedding_sign,1;
  407. goto L_End;
  408. }
  409. mes "[Marry Happy]";
  410. mes "No...?";
  411. mes "Well, when you're";
  412. mes "ready for marriage,";
  413. mes "feel free to come back to";
  414. mes "me so that you can apply,";
  415. mes "okay? Have a good day~";
  416. break;
  417. case 4:
  418. cutin "wedding_marry02",2;
  419. donpcevent "Single Army#Prontera::OnEnable";
  420. donpcevent "Single Army#Geffen::OnEnable";
  421. donpcevent "Single Army#Morocc::OnEnable";
  422. donpcevent "Single Army#Payon::OnEnable";
  423. donpcevent "Single Army#Amatsu::OnEnable";
  424. donpcevent "Single Army#Gonryun::OnEnable";
  425. emotion ET_HUK;
  426. mes "[Single Army]";
  427. mes "^CC9933You have to refine";
  428. mes "items on your own to";
  429. mes "make great equipment!^000000";
  430. emotion ET_ROCK, getnpcid(0, "Single Army#Prontera");
  431. next;
  432. mes "[Single Army]";
  433. mes "^330099It's a waste to";
  434. mes "form parties in";
  435. mes "dungeons! I can";
  436. mes "make it on my own!^000000";
  437. emotion ET_ROCK, getnpcid(0, "Single Army#Geffen");
  438. next;
  439. mes "[Single Army]";
  440. mes "^666666Hell, I've trained";
  441. mes "all by myself since";
  442. mes "birth, all the way";
  443. mes "to my job change!^000000";
  444. emotion ET_ROCK, getnpcid(0, "Single Army#Morocc");
  445. next;
  446. mes "[Single Army]";
  447. mes "^666600I CHOOSE to spend";
  448. mes "Christmas alone...";
  449. mes "playing Solitaire and";
  450. mes "doing crossword puzzles!^000000";
  451. emotion ET_ROCK, getnpcid(0, "Single Army#Payon");
  452. next;
  453. mes "[Single Army]";
  454. mes "^CC9966Women may break my";
  455. mes "spirit, but they'll never";
  456. mes "take... my FREEDOM!^000000";
  457. emotion ET_ROCK, getnpcid(0, "Single Army#Amatsu");
  458. next;
  459. mes "[Single Army]";
  460. mes "^669900...We're the free! We're";
  461. mes "the Invincible Single Army!^000000";
  462. emotion ET_ROCK, getnpcid(0, "Single Army#Gonryun");
  463. close2;
  464. cutin "wedding_marry01",255;
  465. emotion ET_SWEAT;
  466. donpcevent "Single Army#Prontera::OnInit";
  467. donpcevent "Single Army#Geffen::OnInit";
  468. donpcevent "Single Army#Morocc::OnInit";
  469. donpcevent "Single Army#Payon::OnInit";
  470. donpcevent "Single Army#Amatsu::OnInit";
  471. donpcevent "Single Army#Gonryun::OnInit";
  472. end;
  473. }
  474. close2;
  475. cutin "wedding_marry01",255;
  476. end;
  477. L_End:
  478. close2;
  479. cutin "",255;
  480. end;
  481. }
  482. prt_church,97,102,0 script Single Army#Prontera 105,{
  483. mes "[Single Army]";
  484. mes "^CC9933You have to refine";
  485. mes "items on your own to";
  486. mes "make great equipment!^000000";
  487. close;
  488. OnInit:
  489. hideonnpc "Single Army#Prontera";
  490. end;
  491. OnEnable:
  492. hideoffnpc "Single Army#Prontera";
  493. emotion ET_GO;
  494. end;
  495. }
  496. prt_church,98,102,0 script Single Army#Geffen 705,{
  497. mes "[Single Army]";
  498. mes "^330099It's a waste to";
  499. mes "form parties in";
  500. mes "dungeons! I can";
  501. mes "make it on my own!^000000";
  502. close;
  503. OnInit:
  504. hideonnpc "Single Army#Geffen";
  505. end;
  506. OnEnable:
  507. hideoffnpc "Single Army#Geffen";
  508. emotion ET_GO;
  509. end;
  510. }
  511. prt_church,99,102,0 script Single Army#Morocc 707,{
  512. mes "[Single Army]";
  513. mes "^666666Hell, I've trained";
  514. mes "all by myself since";
  515. mes "birth, all the way";
  516. mes "to my job change!^000000";
  517. close;
  518. OnInit:
  519. hideonnpc "Single Army#Morocc";
  520. end;
  521. OnEnable:
  522. hideoffnpc "Single Army#Morocc";
  523. emotion ET_GO;
  524. end;
  525. }
  526. prt_church,100,102,0 script Single Army#Payon 708,{
  527. mes "[Single Army]";
  528. mes "^666600I CHOOSE to spend";
  529. mes "Christmas alone...";
  530. mes "playing Solitaire and";
  531. mes "doing crossword puzzles!^000000";
  532. close;
  533. OnInit:
  534. hideonnpc "Single Army#Payon";
  535. end;
  536. OnEnable:
  537. hideoffnpc "Single Army#Payon";
  538. emotion ET_GO;
  539. end;
  540. }
  541. prt_church,101,102,0 script Single Army#Amatsu 767,{
  542. mes "[Single Army]";
  543. mes "^CC9966Women may break my";
  544. mes " spirit, but they'll never";
  545. mes "take... my FREEDOM!^000000";
  546. close;
  547. OnInit:
  548. hideonnpc "Single Army#Amatsu";
  549. end;
  550. OnEnable:
  551. hideoffnpc "Single Army#Amatsu";
  552. emotion ET_GO;
  553. end;
  554. }
  555. prt_church,102,102,0 script Single Army#Gonryun 780,{
  556. mes "[Single Army]";
  557. mes "^669900...We're the free! We're";
  558. mes "the Invincible Single Army!^000000";
  559. close;
  560. OnInit:
  561. hideonnpc "Single Army#Gonryun";
  562. end;
  563. OnEnable:
  564. hideoffnpc "Single Army#Gonryun";
  565. emotion ET_GO;
  566. end;
  567. }
  568. prt_church,100,128,4 script Bishop#w 60,{
  569. cutin "wedding_bomars01",2;
  570. if (Upper == 2) {
  571. mes "[Vomars]";
  572. mes "Greetings, child.";
  573. mes "Are you lost? Hmmm.";
  574. mes "Do you know where your";
  575. mes "mommy and daddy are?";
  576. close2;
  577. cutin "wedding_bomars01",255;
  578. end;
  579. }
  580. if (!getpartnerid()) {
  581. if (!$@wedding) {
  582. if (wedding_sign == 1) {
  583. getpartymember(getcharid(1));
  584. set .@partymembercount,$@partymembercount;
  585. if (.@partymembercount == 2) {
  586. if (Sex == SEX_MALE) {
  587. set $@wedding,1;
  588. initnpctimer;
  589. mes "[Vomars]";
  590. mes "Young lovers, please";
  591. mes "remember this moment for";
  592. mes "the rest of your lives. May your future be blessed with peace";
  593. mes "and joy. May the love you share";
  594. mes "grow with each passing day.";
  595. next;
  596. mapannounce "prt_church","It's the marriage proposal from the groom, Mr. " + strcharinfo(0) + "...",bc_map;
  597. mes "[Vomars]";
  598. mes "Until the end of the";
  599. mes "world, may you stand";
  600. mes "by the side of the one";
  601. mes "whom you love, to support";
  602. mes "her and protect her. Now, may";
  603. mes "I know the name of your bride?";
  604. next;
  605. input $@wed_bride$;
  606. mes "[Vomars]";
  607. mes "Mr. " + strcharinfo(0) + "...";
  608. mes "Do you swear on your life";
  609. mes "that you will forever cherish";
  610. mes "and care for your bride,";
  611. mes "Miss " + $@wed_bride$ + "?";
  612. next;
  613. select("I do.");
  614. set $@wed_groom$,strcharinfo(0);
  615. mes "[Vomars]";
  616. mes "Now, it is time for";
  617. mes "your bride to make";
  618. mes "her wedding vows.";
  619. mes "If she will come forward...";
  620. close2;
  621. mapannounce "prt_church","The groom, Mr. " + strcharinfo(0) + ", has made his vows to Miss " + $@wed_bride$ + "...",bc_map;
  622. cutin "",255;
  623. end;
  624. }
  625. mes "[Vomars]";
  626. mes "I'm sorry, but the groom";
  627. mes "must speak to me first in";
  628. mes "order to begin the wedding.";
  629. mes "It's old fashioned protocol,";
  630. mes "but I'll admit that it does";
  631. mes "keep things running smoothly.";
  632. goto L_End;
  633. }
  634. mes "[Vomars]";
  635. mes "Before you can be";
  636. mes "married, you must";
  637. mes "first form a party of";
  638. mes "two with your partner.";
  639. mes "Then, we can proceed";
  640. mes "with the ceremony.";
  641. goto L_End;
  642. }
  643. mes "[Vomars]";
  644. mes "You must apply for";
  645. mes "marriage with Happy Marry";
  646. mes "before you can get married.";
  647. mes "Happy Marry will let you know";
  648. mes "what else you'll need to do";
  649. mes "to prepare for marriage.";
  650. goto L_End;
  651. }
  652. else if ($@wedding == 1) {
  653. if (wedding_sign == 1) {
  654. getpartymember(getcharid(1));
  655. set .@partymembercount,$@partymembercount;
  656. if (.@partymembercount == 2) {
  657. if (Sex == SEX_FEMALE) {
  658. if (strcharinfo(0) == $@wed_bride$) {
  659. mes "[Vomars]";
  660. mes "Young lovers, please";
  661. mes "remember this moment for";
  662. mes "the rest of your lives. May your future be blessed with peace";
  663. mes "and joy. May the love you share";
  664. mes "grow with each passing day.";
  665. next;
  666. mapannounce "prt_church","Let's hear what the bride, Miss "+$@wed_bride$+", has to say...",bc_map;
  667. mes "[Vomars]";
  668. mes "Miss "+$@wed_bride$+"...";
  669. mes "Do you swear to stay";
  670. mes "true to "+$@wed_groom$+",";
  671. mes "to be by his side, no matter";
  672. mes "what the dangers may be?";
  673. next;
  674. if (select("^FF0000No.^000000:I do.") == 1) {
  675. cutin "wedding_bomars03",2;
  676. mapannounce "prt_church","Next couple, please proceed...",bc_map;
  677. mes "[Vomars]";
  678. mes "So "+$@wed_groom$;
  679. mes "isn't the one you";
  680. mes "want to marry? Hmm.";
  681. mes "I'm truly sorry for this";
  682. mes "misunderstanding...";
  683. set $@wedding,0;
  684. close2;
  685. stopnpctimer;
  686. cutin "",255;
  687. end;
  688. }
  689. mes "[Vomars]";
  690. mes "Do you truly swear";
  691. mes "fidelity and patience?";
  692. mes "Will you marry "+$@wed_groom$+"?";
  693. next;
  694. if (select("Yes, I do.:^FF0000No.^000000") == 1) {
  695. if (isloggedin(getcharid(3,$@wed_groom$))) {
  696. if (marriage($@wed_groom$)) {
  697. //Call Wedding effect
  698. wedding;
  699. //Give ring to Bride, and change to wedding sprite.
  700. sc_start SC_Wedding,3600000,1;
  701. getitem 2635,1; //Bride_Ring
  702. //Give ring to Groom, and change to wedding sprite.
  703. attachrid(getcharid(3,$@wed_groom$));
  704. sc_start SC_Wedding,3600000,1;
  705. getitem 2634,1; //Bridegroom_Ring
  706. detachrid;
  707. //Switch Script progression back to Bride
  708. attachrid(getcharid(3,$@wed_bride$));
  709. cutin "wedding_bomars02",2;
  710. mapannounce "prt_church","I now pronounce you, "+$@wed_groom$+" and "+$@wed_bride$+", husband and wife.",bc_map;
  711. mes "[Vomars]";
  712. mes "By the power invested";
  713. mes "in me as Royal Bishop of";
  714. mes "the Rune-Midgarts Kingdom,";
  715. mes "I now pronounce you husband";
  716. mes "and wife. May your future be";
  717. mes "blessed with many great joys.";
  718. next;
  719. mes "[Vomars]";
  720. mes "And lastly...";
  721. mes "Always be happy,";
  722. mes "dear "+$@wed_bride$+"...";
  723. set $@wed_groom$,"";
  724. set $@wed_bride$,"";
  725. set $@wedding,0;
  726. close2;
  727. stopnpctimer;
  728. cutin "",255;
  729. detachrid;
  730. end;
  731. }
  732. }
  733. cutin "wedding_bomars03",2;
  734. mes "[Vomars]";
  735. mes "Hm. It seems that";
  736. mes "your groom left before";
  737. mes "the ceremony has finished";
  738. mes "Please try again once he's";
  739. mes "returned.";
  740. goto L_End;
  741. }
  742. else {
  743. cutin "wedding_bomars03",2;
  744. mapannounce "prt_church","Alas! "+$@wed_bride$+" has rejected "+$@wed_groom$+"'s marriage proposal!",bc_map;
  745. mes "[Vomars]";
  746. mes "Hm. It seems that";
  747. mes "you've changed your";
  748. mes "mind. Although I feel";
  749. mes "sorry for the groom, you";
  750. mes "must do what your heart";
  751. mes "tells you is right. Now, run!";
  752. }
  753. set $@wed_groom$,"";
  754. set $@wed_bride$,"";
  755. set $@wedding,0;
  756. close2;
  757. stopnpctimer;
  758. cutin "",255;
  759. end;
  760. }
  761. callsub S_Busy;
  762. }
  763. callsub S_Busy;
  764. }
  765. callsub S_Busy;
  766. }
  767. if (strcharinfo(0) == $@wed_bride$) {
  768. mes "[Vomars]";
  769. mes "Hm? It appears that";
  770. mes "Happy Marry still hasn't";
  771. mes "received your marriage";
  772. mes "application. Please speak";
  773. mes "to her so that we can begin";
  774. mes "the wedding ceremony.";
  775. goto L_End;
  776. }
  777. callsub S_Busy;
  778. }
  779. callsub S_Busy;
  780. }
  781. mes "[Vomars]";
  782. mes "I wish you eternal";
  783. mes "happiness. No matter";
  784. mes "how dark the present may";
  785. mes "be, always stand by your";
  786. mes "loved one's side and look";
  787. mes "to the future with hope.";
  788. L_End:
  789. close2;
  790. cutin "",255;
  791. end;
  792. S_Busy:
  793. if ($@wed_groom$ != "" && $@wed_bride$ != "") {
  794. mes "[Vomars]";
  795. mes "The wedding of";
  796. mes "Miss "+ $@wed_bride$ +" and";
  797. mes "Mister "+ $@wed_groom$;
  798. mes "is currently in progress.";
  799. mes "Please keep your voice down.";
  800. goto L_End;
  801. }
  802. mes "[Vomars]";
  803. mes "I'm conducting a wedding";
  804. mes "for another couple now, so";
  805. mes "please wait patiently for your";
  806. mes "turn. Thanks for understanding...";
  807. goto L_End;
  808. OnStop:
  809. stopnpctimer;
  810. end;
  811. OnReset:
  812. set $@wed_groom$,"";
  813. set $@wed_bride$,"";
  814. set $@wedding,0;
  815. end;
  816. OnTimer180000:
  817. mapannounce "prt_church","You've responded too slowly... Next couple, please proceed.",bc_map;
  818. donpcevent "Bishop#w::OnReset";
  819. stopnpctimer;
  820. end;
  821. }
  822. prt_church,28,178,4 script The King of Midgart 108,{
  823. callfunc "F_GM_NPC";
  824. mes "[Vomars]";
  825. mes "Wh-who are you?";
  826. mes "You must know the";
  827. mes "password to invoke";
  828. mes "my awesome powers.";
  829. next;
  830. if (callfunc("F_GM_NPC",1854,0) < 1) {
  831. mes "[Vomars]";
  832. mes "This is";
  833. mes "no place for";
  834. mes "fooling around.";
  835. close2;
  836. warp "prt_church",101,102;
  837. end;
  838. }
  839. mes "[Wedding Switch]";
  840. mes "Is there a problem with";
  841. mes "the wedding ceremony?";
  842. mes "I can reset the Bishop";
  843. mes "Vomars NPC if you like.";
  844. next;
  845. switch(select("No, thanks:RESET")) {
  846. case 1:
  847. mes "[Wedding Switch]";
  848. mes "Alright, then.";
  849. mes "However, if the";
  850. mes "Bishop Vomars";
  851. mes "NPC is stuck, it may";
  852. mes "be best to reset it.";
  853. close;
  854. case 2:
  855. donpcevent "Bishop#w::OnStop";
  856. donpcevent "Bishop#w::OnReset";
  857. mapannounce "prt_church","You've responded too slowly... Next couple, please proceed.",bc_map;
  858. mes "[Wedding Switch]";
  859. mes "The Bishop Vomars NPC";
  860. mes "has now been reactivated.";
  861. mes "It should now be possible";
  862. mes "to proceed with weddings.";
  863. close;
  864. }
  865. }
  866. prt_church,20,179,4 script Divorce Staff 71,{
  867. callfunc "F_GM_NPC";
  868. mes "[Bad Ending]";
  869. mes "Uh oh...";
  870. mes "You know I can't";
  871. mes "do anything for you.";
  872. next;
  873. if (callfunc("F_GM_NPC",1854,0) < 1) {
  874. mes "[Bad Ending]";
  875. mes "Hmm...";
  876. mes "You really";
  877. mes "shouldn't be";
  878. mes "in this place...";
  879. close;
  880. }
  881. mes "[Bad Ending]";
  882. mes "Great, you know the";
  883. mes "password! Now, did you";
  884. mes "want me to remove the";
  885. mes "Wedding Ring in your";
  886. mes "inventory?";
  887. next;
  888. switch(select("Drop 1 Wedding Ring.:Keep it.")) {
  889. case 1:
  890. set .@ring, (Sex == SEX_MALE)?2634:2635; //Bridegroom_Ring, Bride_Ring
  891. if (countitem(.@ring)) {
  892. delitem .@ring,1;
  893. mes "[Bad Ending]";
  894. mes "It's done!";
  895. } else {
  896. mes "[Bad Ending]";
  897. mes "I couldn't find";
  898. mes "the Wedding Ring...";
  899. mes "Please make sure";
  900. mes "that it's not equipped.";
  901. }
  902. close;
  903. case 2:
  904. mes "[Bad Ending]";
  905. mes "You sure you want";
  906. mes "to keep that ring?";
  907. mes "Alright, but if it becomes";
  908. mes "a problem, you come to me.";
  909. close;
  910. }
  911. }
  912. prt_church,22,179,4 script Remarry Staff 71,{
  913. callfunc "F_GM_NPC";
  914. mes "[Wedding Again]";
  915. mes "Hmm...?";
  916. mes "What exactly are";
  917. mes "you doing here?";
  918. next;
  919. if (callfunc("F_GM_NPC",1854,0) < 1) {
  920. mes "[Wedding Again]";
  921. mes "Ahk!";
  922. mes "An adventurer";
  923. mes "like you shouldn't";
  924. mes "be in this place!";
  925. close;
  926. }
  927. if (getpartnerid()) {
  928. mes "[Wedding Again]";
  929. mes "Hmm...";
  930. mes "I can only create";
  931. mes "a Wedding Ring if the";
  932. mes "character is married.";
  933. close;
  934. }
  935. mes "[Wedding Again]";
  936. mes "Ah, I see that you";
  937. mes "know the password.";
  938. mes "Alright, if you somehow";
  939. mes "lost your Wedding Ring,";
  940. mes "I can make you a new one.";
  941. next;
  942. switch(select("Make new Wedding Ring.:Cancel.")) {
  943. case 1:
  944. set .@ring, (Sex == SEX_MALE)?2634:2635; //Bridegroom_Ring, Bride_Ring
  945. if (countitem(.@ring) || isequipped(.@ring)) {
  946. mes "[Wedding Again]";
  947. mes "Wait, wait...";
  948. mes "You're wearing your";
  949. mes "Wedding Ring. I better";
  950. mes "not make you another since";
  951. mes "you don't need more than one.";
  952. } else {
  953. getitem .@ring,1;
  954. mes "[Wedding Again]";
  955. mes "Here you go~";
  956. mes "It's your brand";
  957. mes "new Wedding Ring!";
  958. }
  959. close;
  960. case 2:
  961. mes "[Wedding Again]";
  962. mes "Alright. If you ever";
  963. mes "lose your Wedding Ring,";
  964. mes "come to me if you happen";
  965. mes "to need a new one, okay?";
  966. close;
  967. }
  968. }