wedding.txt 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
  1. //////////////////////////////////////////////////////////
  2. // Wedding Script Alpha (v1.4) //
  3. //////////////////////////////////////////////////////////
  4. //
  5. //=====eAthena Script====================================
  6. // Wedding Script
  7. //=====By================================================
  8. // AppleGirl and Evera(version 1.0)
  9. //=====Current Version===================================
  10. // 1.45b
  11. //=====Compatible With:==================================
  12. // Any eAthena Version; RO Episode 6+
  13. //=====Description=======================================
  14. // Fully working wedding script for all kind of weddings
  15. //=====Additional Comments:==============================
  16. // Tested and debugged by whocares (maybe 1-2 bugs left)(version 1.1)
  17. //======= Version 1.2 By ShadowLady =====================
  18. // Same Sex Weddings.
  19. // Now the script(npcs) tell the players how they must perform exactly.
  20. //======= Version 1.3 By ShadowLady =====================
  21. // You might need to update the wedding rings in item_db
  22. // Same for the tux/dress, so all classes and lvs can use it ^^
  23. // And check if they are wearing the tux/dress and not only have it on the inventory.
  24. //======= Version 1.4 By ShadowLady =====================
  25. // Added some code ideas. Thanks to Jbain for help me debbuging
  26. // Added @outfit variable, to check if you already bought a tux/dress
  27. // Fixed "part" of the divorce npc. The code is bugged by itself -_- Need both chars to be online yet.
  28. ////======= Version 1.45 By ShadowLady =====================
  29. // Fixed some minor bugs. Same-sex is disabled by default now.
  30. // Change $progress variable to $@progress, so it dont screw up the ceremony on a server crash.
  31. // Added a Special GM Menu to enable/disable same-sex weddings and reset most variables.
  32. ////======= Version 1.45b By Aria =====================
  33. // Added the $progress to $@progress variable change that ShadowLady put in notes, but not in code.
  34. //=======================================================
  35. // Variable Notes:
  36. //
  37. // event_wedding - 1 signifies marriage
  38. // $groom$ - Groom's name storage
  39. // $bride$ - Bride's name storage
  40. // $@progress - Sets global restriction upon wedding
  41. // @register - Temporary registration check
  42. // @zleft - Temporary zeny needed check
  43. // $name$ - Insert name for bride
  44. // $name2$ - Insert name for groom
  45. // $get_ring - Check so you can't get ring twice
  46. // $reason$ - Objection to wedding
  47. // @outfit - Check if the char already got a dress or tuxedo from the npc
  48. // Tristan
  49. prt_church.gat,99,125,4 script Tristan the Third 108,{
  50. if($groom$ == strcharinfo(0) && $@progress != 3) goto L_GroomCeremony;
  51. if(@register == 0) goto L_GroomNeedToRegister;
  52. if($bride$ == strcharinfo(0)) goto L_BrideCeremony;
  53. menu "Here To Attend",L_Wedding,"Here for another reason",L_OtherReason;
  54. L_GroomCeremony:
  55. if(@register == 0) goto L_GroomNeedToRegister;
  56. if($@progress == 1) goto L_BrideNeedToRegister;
  57. if($@progress == 0) goto L_Wedding;
  58. if(countitem(2613) < 1) goto L_NeedRing;//Items: Diamond_Ring,
  59. if((getequipid(2) != 2338) && (getequipid(2) != 7170)) goto L_Attire;
  60. mes "[Tristan the Third]";
  61. mes "Everything is ready, it's your call now...";
  62. next;
  63. menu "Perform Wedding.",-,"Cancel Wedding.",L_CancelWedding;
  64. set $@progress,3;
  65. mes "[Tristan the Third]";
  66. mes "Well all you have to do now is the easy part input your bride's name, remember to spell it correctly.";
  67. input $name2$;
  68. next;
  69. if($name2$ != $bride$) goto L_WrongBrideName;
  70. deltimer "a13";
  71. marriage $name2$;
  72. mes "[Tristan the Third]";
  73. mes "Please tell your wife to speak to me, and then we will start exchanging rings";
  74. delitem 2613,1;//Items: Diamond_Ring,
  75. if (sex == 0) getitem 2635,1;//Items: Wedding_Ring_F,
  76. if (sex == 1) getitem 2634,1;//Items: Wedding_Ring_M,
  77. set @get_ring,1;
  78. next;
  79. mes "[Tristan the Third]";
  80. mes "Will you and your bride please move onto the stand. I will now preform the Wedding Ceremony!";
  81. set event_wedding,1;
  82. deltimer "weddinglimit1";
  83. deltimer "weddinglimit2";
  84. announce "The Wedding of "+$groom$+" and "+$bride$+", will now be held at Prontera Church.",5;
  85. addtimer 50000,"a1";
  86. addtimer 55000,"a2";
  87. addtimer 60000,"a3";
  88. addtimer 65000,"a4";
  89. addtimer 70000,"a5";
  90. addtimer 75000,"a6";
  91. addtimer 80000,"a7";
  92. addtimer 85000,"a8";
  93. addtimer 90000,"a9";
  94. addtimer 95000,"a10";
  95. addtimer 100000,"a11";
  96. addtimer 105000,"a12";
  97. close;
  98. L_BrideCeremony:
  99. if(countitem(2613) < 1) goto L_NeedRing;//Items: Diamond_Ring,
  100. if((getequipid(2) != 2338) && (getequipid(2) != 7170)) goto L_Attire;
  101. mes "[Tristan the Third]";
  102. mes "Well all you have to do now is the easy part input your groom's name, remember to spell it correctly.";
  103. input $name$;
  104. next;
  105. if($name$ != $groom$) goto L_WrongGroomName;
  106. deltimer "a13";
  107. deltimer "weddinglimit1";
  108. deltimer "weddinglimit2";
  109. marriage $name$;
  110. delitem 2613,1;//Items: Diamond_Ring,
  111. if (sex == 0) getitem 2635,1;//Items: Wedding_Ring_F,
  112. if (sex == 1) getitem 2634,1;//Items: Wedding_Ring_M,
  113. set @get_ring,1;
  114. close;
  115. L_CancelWedding:
  116. mes "[Tristan the Third]";
  117. mes "The wedding has been cancelled by "+strcharinfo(0)+".";
  118. set $@progress,0;
  119. set $groom$,"null";
  120. set $bride$,"null";
  121. set @register,0;
  122. set event_wedding,0;
  123. set @get_ring,0;
  124. deltimer "a1";
  125. deltimer "a2";
  126. deltimer "a3";
  127. deltimer "a4";
  128. deltimer "a5";
  129. deltimer "a6";
  130. deltimer "a7";
  131. deltimer "a8";
  132. deltimer "a9";
  133. deltimer "a10";
  134. deltimer "a11";
  135. deltimer "a12";
  136. deltimer "a13";
  137. close;
  138. L_GroomNeedToRegister:
  139. mes "[Tristan the Third]";
  140. mes "Hello, please register with Marry if you want me to perform a marriage for you.";
  141. close;
  142. L_Wedding:
  143. if(event_wedding != 1) goto L_Guest;
  144. mes "[Tristan the Third]";
  145. mes "Hello again "+strcharinfo(0)+", I hope wish for the best of luck in your life.";
  146. close;
  147. L_BrideNeedToRegister:
  148. mes "[Tristan the Third]";
  149. mes "I'm sorry, I cannot start the ceremony if the bride has not registered yet.";
  150. close;
  151. L_OtherReason:
  152. if(@get_ring == 1) goto L_Wedding;
  153. mes "[Tristan the Third]";
  154. mes "Do you have a reason why these two should not be bonded in holy matrimony?";
  155. next;
  156. menu "Yes I Do.",-,"No",L_NoReason;
  157. areaannounce "prt_church.gat",0,0,350,350,"Ladies and Gentlemen,"+strcharinfo(0)+" has an objection to this marriage",0;
  158. mes "[Tristan the Third]";
  159. mes "Please enter your reason, for this action.";
  160. input $reason$;
  161. next;
  162. areaannounce "prt_church.gat",0,0,350,350,""+$reason$+"",0;
  163. set $@progress,0;
  164. set $groom$,"null";
  165. set $bride$,"null";
  166. set $name$,"null";
  167. set $name2$,"null";
  168. set @register,0;
  169. set event_wedding,0;
  170. set @get_ring,0;
  171. deltimer "a1";
  172. deltimer "a2";
  173. deltimer "a3";
  174. deltimer "a4";
  175. deltimer "a5";
  176. deltimer "a6";
  177. deltimer "a7";
  178. deltimer "a8";
  179. deltimer "a9";
  180. deltimer "a10";
  181. deltimer "a11";
  182. deltimer "a12";
  183. mes "The wedding has been called off.";
  184. close;
  185. L_NoReason:
  186. if($groom$ == strcharinfo(0)) goto L_InProgress;
  187. if($bride$ == strcharinfo(0)) goto L_InProgress;
  188. mes "[Tristan the Third]";
  189. mes "Please have a seat than and let me continue the wedding.";
  190. close;
  191. L_Guest:
  192. mes "[Tristan the Third]";
  193. mes "Enjoy the cerimony.";
  194. mes "But I must continue the cerimony, so lets talk after.";
  195. close;
  196. L_InProgress:
  197. mes "[Tristan the Third]";
  198. mes "Your wedding is in progress, please try talking with me later.";
  199. close;
  200. L_WrongBrideName:
  201. mes "[Marry Happy]";
  202. mes "How come you forgot your wife's name!? Sorry come back later when you know who you want to marry.";
  203. close;
  204. L_WrongGroomName:
  205. mes "[Marry Happy]";
  206. mes "How come you forgot your husband's name!? Sorry come back later when you know who you want to marry.";
  207. close;
  208. L_NeedRing:
  209. mes "[Tristan the Third]";
  210. mes "You need a Diamond Ring in order to perform the wedding.";
  211. close;
  212. L_Attire:
  213. if(sex == 1) goto L_NeedTuxedo;
  214. if(sex == 0) goto L_NeedDress;
  215. close;
  216. L_NeedTuxedo:
  217. mes "[Tristan the Third]";
  218. mes "You need a Tuxedo before we can continue the ceremony.";
  219. close;
  220. L_NeedDress:
  221. mes "[Tristan the Third]";
  222. mes "Oh my is it your wedding day?";
  223. mes "Well sorry to break it to you, you need a wedding dress to get married.";
  224. close;
  225. }
  226. // Marry
  227. prt_church.gat,95,100,4 script Marry 71,{
  228. // Set the ceremony prices here. A for @outfit==0 and B for @outfit==1.
  229. // Real prices are 1,3m for males and 1,2m for females. Set at your own will.
  230. set @costgroomA,120000;
  231. set @costgroomB,60000;
  232. set @costbrideA,100000;
  233. set @costbrideB,50000;
  234. mes "[Marry Happy]";
  235. mes "Marriage refers to a hope of everybody to find the desired happiness.";
  236. mes "So may i ask, is there someone special you wish to be with forever?";
  237. next;
  238. menu "Inquire about the wedding ceremony.",L_Principles,"Inquire about the procedure of wedding ceremony.",L_WeddingSystem,"Apply for a wedding ceremony.",L_Marry,"We are the invincible single army!",L_LiveSolo,"Special Menu",L_GmMenu;
  239. L_GmMenu:
  240. set @gmlevel,getgmlevel(50);
  241. if(@gmlevel < 50) goto L_NotGM;
  242. mes "Hello " + strcharinfo(0) + " How i can serve you?";
  243. menu "Enable Same-Sex Weddings",L_EnableSameSex,"Disable Same-Sex Weddings",L_DisableSameSex,"Reset the Variables",L_ResetVariables,"Just Checking...",L_Bye;
  244. L_NotGM:
  245. mes "You cant have access to this special menu " + strcharinfo(0) + "";
  246. mes "Only GMs can change the ceremony options.";
  247. close;
  248. L_EnableSameSex:
  249. set $samesex,1;
  250. mes "Same-Sex Weddings are enabled now!";
  251. close;
  252. L_DisableSameSex:
  253. set $samesex,0;
  254. mes "Same-Sex Weddings are disabled now!";
  255. close;
  256. L_ResetVariables:
  257. set $@progress,0;
  258. set $groom$,"null";
  259. set $bride$,"null";
  260. set $name$,"null";
  261. set $name2$,"null";
  262. set @register,0;
  263. set event_wedding,0;
  264. set @get_ring,0;
  265. set @outfit,0;
  266. deltimer "weddinglimit1";
  267. deltimer "weddinglimit2";
  268. deltimer "a1";
  269. deltimer "a2";
  270. deltimer "a3";
  271. deltimer "a4";
  272. deltimer "a5";
  273. deltimer "a6";
  274. deltimer "a7";
  275. deltimer "a8";
  276. deltimer "a9";
  277. deltimer "a10";
  278. deltimer "a11";
  279. deltimer "a12";
  280. deltimer "a13";
  281. mes "All variables are reseted and timers off!";
  282. close;
  283. L_Principles:
  284. mes "[Marry Happy]";
  285. mes "His Majesty King Tristan III of the Rune Midgard Kingdom will be officiating this wedding, with the intent of blessing all the people through his noble message.";
  286. next;
  287. mes "[Marry Happy]";
  288. mes "Although His Majesty has a rather busy agenda, for the sake of newly married couples, he has personally come here, to the Prontera Church.";
  289. mes "It is the favor of our King that everyone would live happily ever after.";
  290. next;
  291. mes "[Marry Happy]";
  292. mes "The proposal must be done with prudence and courtesy.";
  293. mes "Once the wedlocks have been made, they cannot be undone.";
  294. mes "The two who are united in marriage must be with the other forever until the day they leave this world.";
  295. next;
  296. mes "[Marry Happy]";
  297. mes "Also, males only with females, and females only with males can be wed. Although there may be those who desire a homosexual or bestial marriage... it is approved.";
  298. next;
  299. mes "[Marry Happy]";
  300. mes "If there is a significant other whom you want to spend the rest of your life with, then don't be shy to propose.";
  301. mes "Wishing for many blessings upon couples who wish to live happily ever after..";
  302. close;
  303. L_WeddingSystem:
  304. mes "[Marry Happy]";
  305. mes "First make sure both players a registered to get married.";
  306. mes "Obviously, you must know each other to get married?";
  307. mes "If both have registered, and you must be on the same party.";
  308. mes "Then talk to Thristan the Third.";
  309. next;
  310. mes "[Marry Happy]";
  311. mes "You must go to Thristan the Third,";
  312. mes "and the Groom must talk to him first.";
  313. mes "And you must tell him the Bride";
  314. mes "you wish to get married with.";
  315. mes "Be sure to tell him exactly who you want to marry.";
  316. next;
  317. mes "[Marry Happy]";
  318. mes "After the Groom has spoken, next the Bride must talk.";
  319. mes "Then when both of you have spoken each others names,";
  320. mes "Thristan the third will read out both of your names.";
  321. next;
  322. mes "[Marry Happy]";
  323. mes "After you have got married,";
  324. mes "you will both recive a ring of marrige.";
  325. mes "And as soon as both of you wear these rings,";
  326. mes "you will be forever married with each other.";
  327. mes "You can also be refused of a lasting marrige.";
  328. mes "But, dont be sad.";
  329. next;
  330. mes "[Marry Happy]";
  331. mes "If there are many people that wish to get married,";
  332. mes "So please keep to the order you register.";
  333. mes "Thristan does not do multiple marriges at once.";
  334. mes "He will only see one couple at a time.";
  335. next;
  336. mes "[Marry Happy]";
  337. mes "Lastly, you must put forth your name quickly";
  338. mes "to Thristan the third.";
  339. mes "After the male has said yes to marrage ";
  340. mes "the female has 3 minutes to reply.";
  341. mes "Or you shall forever never be able";
  342. mes "to get married.";
  343. next;
  344. mes "[Marry Happy]";
  345. mes "An easy way to write down the each others name,";
  346. mes "Send a message to each other";
  347. mes "then in the private message window press up";
  348. next;
  349. mes "[Marry Happy]";
  350. mes "Then it will show the other persons name.";
  351. mes "If you press ctrl + C that name will be saved.";
  352. mes "Next time you need that name";
  353. mes "you can press shift + insert.";
  354. mes "Then you will get that name quickly and easily.";
  355. next;
  356. mes "[Marry Happy]";
  357. mes "You should have a go at using this method.";
  358. mes "Remeber, Press ctrl + C to save that name.";
  359. next;
  360. input $nametest$;
  361. mes "[Marry Happy]";
  362. mes "Hopefully you will remember this method.";
  363. mes "If you ever decide to get married.";
  364. mes "Remember to register.";
  365. close;
  366. L_Marry:
  367. mes "[Marry Happy]";
  368. mes "If you wish to get married you must first register.";
  369. mes "Male is ^FF00FF" + @costgroomA + "^000000 zeny and female is ^FF00FF" + @costbrideA + "^000000 zeny";
  370. if((countitem(2338) > 0) || (countitem(7170) > 0) || (@outfit == 1)) mes "But only ^FF00FF" + @costgroomB + "^000000 zeny for male and ^FF00FF" + @costbrideB + "^000000 zeny for female if you already have registered before";
  371. mes "Both male and female must have registered,";
  372. mes "and both must have paid fees, have Diamond Rings and be on same party!";
  373. mes "The Bride will get a Wedding Dress, while the Groom will get a Chinese Tuxedo";
  374. next;
  375. mes "[Marry Happy]";
  376. mes "If both people have paid and meet recquirements";
  377. mes "you are able to get married strait away.";
  378. mes "One must be the Groom and the other the Bride.";
  379. mes "Do you wish to register to get married?";
  380. if($SameSex == 1) menu "I'm gonna be the Groom",-,"I'm gonna be the Bride",L_BrideRegister,"Never mind",L_Bye;
  381. if(event_wedding == 1) goto L_Married;
  382. if(@register >= 1) goto L_AlreadyRegistered;
  383. if($@progress >= 2) goto L_InProgress;
  384. if(($samesex == 0) && (sex == 0)) goto L_BrideRegister;
  385. if((countitem(2338) > 0) || (countitem(7170) > 0) || (@outfit == 1)) goto L_GroomRegister2;
  386. mes "[Marry Happy]";
  387. if(sex == 1) mes "No problem sir, please fill out your name here.";
  388. if(sex == 0) mes "No problem miss, please fill out your name here.";
  389. mes "And I'll need to collect a " + @costgroomA + " zeny fee for your wedding fees and outfit.";
  390. next;
  391. mes "[Marry Happy]";
  392. mes "Now You Must Insert The Your Bride's Name";
  393. input $name$;
  394. next;
  395. if(zeny < @costgroomA) goto L_NeedZeny1;
  396. set $groom$,strcharinfo(0);
  397. set @register,1;
  398. set zeny,zeny-@costgroomA;
  399. set $@progress,1;
  400. if(sex == 1) getitem 7170,1;
  401. if(sex == 0) getitem 2338,1;
  402. set @outfit,1;
  403. mes "[Marry Happy]";
  404. mes "You are now registered "+strcharinfo(0)+", I wish you the best of luck with your marriage.";
  405. addtimer 300000,"weddinglimit1";
  406. areaannounce "prt_church.gat",0,0,350,350,strcharinfo(0)+" has registered for the wedding.",0;
  407. next;
  408. mes "Please hurry to the altar. We have to be ready for another wedding in 5 minutes.";
  409. deltimer "a13";
  410. addtimer 300000,"a13";
  411. close;
  412. L_BrideRegister:
  413. if ($name$ != strcharinfo(0)) goto L_NotBride;
  414. if($groom$ == strcharinfo(0)) goto L_CantMarryYourself;
  415. if($@progress != 1) goto L_GroomNotRegistered;
  416. if(@register >= 1) goto L_AlreadyRegistered;
  417. if((countitem(2338) > 0) || (countitem(7170) > 0) || (@outfit == 1)) goto L_BrideRegister2;
  418. mes "[Marry Happy]";
  419. if(sex == 1) mes "No problem sir, please fill out your name here.";
  420. if(sex == 0) mes "No problem miss, please fill out your name here.";
  421. mes "And I'll need to collect a 100,000z fee for your wedding fees and outfit.";
  422. next;
  423. if(zeny < @costbrideA) goto L_NeedZeny2;
  424. mes "[Marry Happy]";
  425. mes "Now You Must Insert The Your Groom's Name";
  426. input $name2$;
  427. if($name2$ != $groom$) goto L_WrongName;
  428. set $bride$,strcharinfo(0);
  429. set @register,1;
  430. set zeny,zeny-@costbrideA;
  431. set $@progress,2;
  432. set event_wedding,1;
  433. if(sex == 1) getitem 7170,1;
  434. if(sex == 0) getitem 2338,1;
  435. set @outfit,1;
  436. deltimer "weddinglimit1";
  437. addtimer 300000,"weddinglimit2";
  438. next;
  439. mes "[Marry Happy]";
  440. mes "You are now registered "+strcharinfo(0)+", I wish you the best of luck with your wedding.";
  441. areaannounce "prt_church.gat",0,0,350,350,strcharinfo(0)+" has registered for the wedding.",0;
  442. next;
  443. mes "Please hurry to the altar. We have to be ready for another wedding in 5 minutes.";
  444. deltimer "a13";
  445. addtimer 300000,"a13";
  446. close;
  447. L_GroomRegister2:
  448. mes "[Marry Happy]";
  449. if(sex == 1) mes "No problem sir, please fill out your name here.";
  450. if(sex == 0) mes "No problem mis, please fill out your name here.";
  451. mes "And I'll need to collect a 60,000z fee for your wedding fees.";
  452. next;
  453. mes "[Marry Happy]";
  454. mes "Now You Must Insert The Your Bride's Name";
  455. input $name$;
  456. next;
  457. if(zeny < @costgroomB) goto L_NeedZeny3;
  458. set $groom$,strcharinfo(0);
  459. set @register,1;
  460. set zeny,zeny-@costgroomB;
  461. set $@progress,1;
  462. mes "[Marry Happy]";
  463. mes "You are now registered "+strcharinfo(0)+", I wish you the best of luck with your marriage.";
  464. addtimer 300000,"weddinglimit1";
  465. areaannounce "prt_church.gat",0,0,350,350,strcharinfo(0)+" has registered for the wedding.",0;
  466. next;
  467. mes "Please hurry to the altar. We have to be ready for another wedding in 5 minutes.";
  468. deltimer "a13";
  469. addtimer 300000,"a13";
  470. close;
  471. L_BrideRegister2:
  472. mes "[Marry Happy]";
  473. if(sex == 1) mes "No problem sir, please fill out your name here.";
  474. if(sex == 0) mes "No problem mis, please fill out your name here.";
  475. mes "And I'll need to collect a 50,000z fee for your wedding fees.";
  476. next;
  477. if(zeny < @costbrideB) goto L_NeedZeny4;
  478. mes "[Marry Happy]";
  479. mes "Now You Must Insert The Your Groom's Name";
  480. input $name2$;
  481. if($name2$ != $groom$) goto L_WrongName;
  482. set $bride$,strcharinfo(0);
  483. set @register,1;
  484. set zeny,zeny-@costbrideB;
  485. set $@progress,2;
  486. set event_wedding,1;
  487. deltimer "weddinglimit1";
  488. addtimer 300000,"weddinglimit2";
  489. next;
  490. mes "[Marry Happy]";
  491. mes "You are now registered "+strcharinfo(0)+", I wish you the best of luck with your wedding.";
  492. areaannounce "prt_church.gat",0,0,350,350,strcharinfo(0)+" has registered for the wedding.",0;
  493. next;
  494. mes "Please hurry to the altar. We have to be ready for another wedding in 5 minutes.";
  495. deltimer "a13";
  496. addtimer 300000,"a13";
  497. close;
  498. L_NeedZeny1:
  499. set @zleft,@costgroomA-zeny;
  500. mes "[Marry Happy]";
  501. mes "I'm terribly sorry, I am unable to register you. You seem to be "+@zleft+"z short.";
  502. set @zleft,0;
  503. close;
  504. L_NeedZeny2:
  505. set @zleft,@costbrideA-zeny;
  506. mes "[Marry Happy]";
  507. mes "I'm terribly sorry, I am unable to register you. You seem to be "+@zleft+"z short.";
  508. set @zleft,0;
  509. close;
  510. L_NeedZeny3:
  511. set @zleft,@costgroomB-zeny;
  512. mes "[Marry Happy]";
  513. mes "I'm terribly sorry, I am unable to register you. You seem to be "+@zleft+"z short.";
  514. set @zleft,0;
  515. close;
  516. L_NeedZeny4:
  517. set @zleft,@costbrideB-zeny;
  518. mes "[Marry Happy]";
  519. mes "I'm terribly sorry, I am unable to register you. You seem to be "+@zleft+"z short.";
  520. set @zleft,0;
  521. close;
  522. L_AlreadyRegistered:
  523. mes "[Marry Happy]";
  524. mes "You can't register a second time silly.";
  525. close;
  526. L_Bye:
  527. mes "[Marry Happy]";
  528. mes "Alrighty then, come back soon!";
  529. close;
  530. L_InProgress:
  531. mes "[Marry Happy]";
  532. mes "I cannot accept registrations while a wedding is in progress, try again later.";
  533. close;
  534. L_WrongName:
  535. mes "[Marry Happy]";
  536. mes "No one have registered with that name. Sorry.";
  537. close;
  538. L_GroomNotRegistered:
  539. mes "[Marry Happy]";
  540. mes "The groom must register first in order to initiate the wedding.";
  541. close;
  542. L_Married:
  543. mes "[Marry Happy]";
  544. mes "Hello again "+strcharinfo(0)+", I hope wish for the best of luck in your life.";
  545. close;
  546. L_LiveSolo:
  547. mes "[Marry Happy]";
  548. mes "Well live a happy bachelors life";
  549. close;
  550. L_NotBride:
  551. mes "[Marry Happy]";
  552. mes "You're not the bride";
  553. close;
  554. L_YouCantMarryYourself:
  555. mes "[Marry Happy]";
  556. mes "What the hell you trying to do? Marry yourself?O_O";
  557. close;
  558. }
  559. prt_church.gat,95,95,4 script Marry 71,{
  560. mes "[Marry Sad]";
  561. mes "Getting divorce can bring a lot of sorrow.";
  562. mes "By any chance, you you want to get divorced?";
  563. next;
  564. menu "I came to get a divorce",L_FirstDivorce,"What do I need for a divorce",L_DivorceSystem;
  565. L_FirstDivorce:
  566. if(divorce > 0) goto L_AlreadyDivorced;
  567. mes "[Marry Sad]";
  568. mes "So you came for a divorce, i have been divorced 2 times myself.";
  569. mes "Life will continue whoever said you need a partner was wrong.";
  570. mes "Dont forget that you and your partner must be online!";
  571. next;
  572. menu "Are you sure",-,"No i'm not ready",L_No;
  573. mes "[Marry Sad]";
  574. mes "You have made your choice,";
  575. mes "now you must live with it.";
  576. next;
  577. mes "You have been divorced!";
  578. set event_wedding,0;
  579. set divorce,1;
  580. set @register,0;
  581. divorce;
  582. close;
  583. L_AlreadyDivorced:
  584. mes "[Marry Sad]";
  585. mes "So you came for another divorce,wow you must be trying to find true love.";
  586. mes "Dont worry about it, it's not you, it's their fault.";
  587. next;
  588. menu "Are you sure",-,"No i'm not ready",L_No;
  589. mes "[Marry Sad]";
  590. mes "You have made your choice,";
  591. mes "now you must live with it.";
  592. next;
  593. mes "You have been divorced again!";
  594. set event_wedding,0;
  595. set divorce,2;
  596. set @register,0;
  597. divorce;
  598. close;
  599. L_No:
  600. mes "[Marry Sad]";
  601. mes "You should always be sure about what step you take in life.";
  602. close;
  603. L_DivorceSystem:
  604. mes "[Marry Sad]";
  605. mes "You just need to wish to not be married again and i will perform the divorce.";
  606. mes "Both you and your partner must be online.";
  607. close;
  608. }
  609. prt_church.gat,99,124,0 script weddinglimit1 -1,{
  610. announce "The bride has not registered within the alotted time frame.",3;
  611. announce "Your wedding has been cancelled.",3;
  612. set $@progress,0;
  613. set $groom$,"null";
  614. set $name$,"null";
  615. set $name2$,"null";
  616. set @register,0;
  617. deltimer "a1";
  618. deltimer "a2";
  619. deltimer "a3";
  620. deltimer "a4";
  621. deltimer "a5";
  622. deltimer "a6";
  623. deltimer "a7";
  624. deltimer "a8";
  625. deltimer "a9";
  626. deltimer "a10";
  627. deltimer "a11";
  628. deltimer "a12";
  629. }
  630. prt_church.gat,99,124,0 script weddinglimit2 -1,{
  631. announce "The groom has not begun the wedding ceremony by speaking to Tristan the Third.",3;
  632. announce "Your wedding has been cancelled.",3;
  633. set $@progress,0;
  634. set $groom$,"null";
  635. set $bride$,"null";
  636. set $name$,"null";
  637. set $name2$,"null";
  638. set @register,0;
  639. set event_wedding,0;
  640. deltimer "a1";
  641. deltimer "a2";
  642. deltimer "a3";
  643. deltimer "a4";
  644. deltimer "a5";
  645. deltimer "a6";
  646. deltimer "a7";
  647. deltimer "a8";
  648. deltimer "a9";
  649. deltimer "a10";
  650. deltimer "a11";
  651. deltimer "a12";
  652. }
  653. prt_church.gat,99,124,0 script a1 -1,{
  654. areaannounce "prt_church.gat",0,0,350,350,"Ladies and Gentlemen, We will now join in holy matrimony these two lovers.",0;
  655. }
  656. prt_church.gat,99,124,0 script a2 -1,{
  657. areaannounce "prt_church.gat",0,0,350,350,"Now more than ever, will both of your lives be entwined together as so will be your souls.",0;
  658. }
  659. prt_church.gat,99,124,0 script a3 -1,{
  660. areaannounce "prt_church.gat",0,0,350,350,"You will both honor and cherish each other through the best and worst of times.",0;
  661. }
  662. prt_church.gat,99,124,0 script a4 -1,{
  663. areaannounce "prt_church.gat",0,0,350,350,"The safety and well being of your other will now also be your responsibility.",0;
  664. }
  665. prt_church.gat,99,124,0 script a5 -1,{
  666. areaannounce "prt_church.gat",0,0,350,350,"May in sickness or good health, your love will burn bright as no force can extinguish it.",0;
  667. }
  668. prt_church.gat,99,124,0 script a6 -1,{
  669. areaannounce "prt_church.gat",0,0,350,350,"Those here stand witness to these vows bestowed upon you, you must act accordingly to them.",0;
  670. }
  671. prt_church.gat,99,124,0 script a7 -1,{
  672. areaannounce "prt_church.gat",0,0,350,350,"Understanding that, we are nothing more but mortals on this earth, but this is our triumph.",0;
  673. }
  674. prt_church.gat,99,124,0 script a8 -1,{
  675. areaannounce "prt_church.gat",0,0,350,350,"We here will now join these two mortal entities, and create an immortal love.",0;
  676. }
  677. prt_church.gat,99,124,0 script a9 -1,{
  678. areaannounce "prt_church.gat",0,0,350,350,$groom$+", do you you wish to take "+$bride$+" as your lawfully beloved wife?",0;
  679. }
  680. prt_church.gat,99,124,0 script a10 -1,{
  681. areaannounce "prt_church.gat",0,0,350,350,"And do you "+$bride$+", wish to take "+$groom$+" as your lawfully beloved husband?",0;
  682. }
  683. prt_church.gat,99,124,0 script a11 -1,{
  684. areaannounce "prt_church.gat",0,0,350,350,"And so be it, by the powers vested in me...",0;
  685. }
  686. prt_church.gat,99,124,0 script a12 -1,{
  687. areaannounce "prt_church.gat",0,0,350,350,"I pronouce you Husband and Wife, you may kiss the bride.",0;
  688. wedding;
  689. set $@progress,0;
  690. set $groom$,"null";
  691. set $bride$,"null";
  692. set $name$,"null";
  693. set $name2$,"null";
  694. }
  695. prt_church.gat,99,124,0 script a13 -1,{
  696. areaannounce "prt_church.gat",0,0,350,350,"The wedding has been cancelled.",0;
  697. set $@progress,0;
  698. set $groom$,"null";
  699. set $bride$,"null";
  700. set $name$,"null";
  701. set $name2$,"null";
  702. set @register,0;
  703. set event_wedding,0;
  704. set @get_ring,0;
  705. }