marriage.txt 23 KB

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