marriage.txt 23 KB

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