root/npc/other/marriage.txt @ 23

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