Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. if (#biggayhearts==3)
  2. {
  3. //if 1 party member online and same map
  4. getpartymember(getcharid(1));
  5. if ($@partymembercount == 2)
  6. {
  7. set .@partner$,$@partymembername$[1]; // party member's name
  8. set .@partner,$@partymembercid[1]; // party member's char id
  9. set .@charid, getcharid(1);
  10. mes "Ah, is this the object of your affections? Such a lovely couple you make.";
  11. next;
  12. if (getpartnerid())
  13. {
  14. mes "["+strnpcinfo(1)+"]";
  15. mes "It looks like you're married already. Whether it's to this fine thing or not I don't care. Your vows will be set anew.";
  16. next;
  17. mes "["+strnpcinfo(1)+"]";
  18. mes "Are you sure you want to do this?";
  19. next;
  20. switch(select("No, I want to stay married to my sweetheart.","Yes, I want to renew my vows."))
  21. {
  22. case 1:
  23. mes "["+strnpcinfo(1)+"]";
  24. mes "Why are you wasting my time?";
  25. close2;
  26. misceffect 262;
  27. misceffect 267;
  28. percentheal -100,0;
  29. npctalk "Get out of here.";
  30. end;
  31. case 2: // Divorces character if they are already married.
  32. mes "[Willow]";
  33. mes "First we must break the old bonds and give you a brief divorce.";
  34. next;
  35. divorce;
  36. mes "[Willow]";
  37. mes "There you go. Now the wedding can be set in motion.";
  38. }
  39. }
  40. close2;
  41. if (!attachrid(.@partner))
  42. {
  43. npctalk "Seems your partner has run off. You better take care of that.";
  44. }
  45. else
  46. {
  47. set .@partnersex, readparam(Sex);
  48. if (getpartnerid()) // Partner already married
  49. {
  50. mes "["+strnpcinfo(1)+"]";
  51. mes "It looks like you're married already. Whether it's to this fine thing or not I don't care. Your vows will be set anew.";
  52. next;
  53. mes "["+strnpcinfo(1)+"]";
  54. mes "Are you sure you want to do this?";
  55. next;
  56. switch(select("No, I want to stay married to my sweetheart.","Yes, I want to renew my vows."))
  57. {
  58. case 1:
  59. mes "["+strnpcinfo(1)+"]";
  60. mes "Why are you wasting my time?";
  61. close2;
  62. misceffect 262;
  63. misceffect 267;
  64. percentheal -100,0;
  65. npctalk "Get out of here.";
  66. end;
  67. case 2: // Divorces character if they are already married.
  68. mes "[Willow]";
  69. mes "First we must break the old bonds and give you a brief divorce.";
  70. next;
  71. divorce;
  72. mes "[Willow]";
  73. mes "There you go. Now the wedding can be set in motion.";
  74. }
  75. }
  76. close2;
  77. {
  78. if (!attachrid (.@charid)) // Attach back to original player
  79. { // Char couldn't be attached
  80. npctalk "Someone is going to be lonely this Valentine's Day...";
  81. }
  82. else
  83. {
  84. mes "["+strnpcinfo(1)+"]";
  85. mes "Let's get on with it then. Step forward and hold each other's hands, if you please.";
  86. close2;
  87. npctalk "Dearly beloved, we are gathered here today to witness as "+strcharinfo(0)+" and "+.@partner$+" join together in the bonds of matrimony.";
  88. sleep2 6000;
  89. npctalk "Marriage is the truest ceremony where two people can commit to each other and express their undying love.";
  90. sleep2 5000;
  91. npctalk "As such, it is my honor to bless this holiest and most natural of unions.";
  92. sleep2 5000;
  93. npctalk "Whatever the future hold, these two are here now and will enjoy each other's affections as time permits.";
  94. sleep2 7000;
  95. npctalk ""+strcharinfo(0)+", you have gone through strenuous challenges to earn the love of your sweetheart.";
  96. sleep2 5000;
  97. npctalk "And "+.@partner$+", you are lucky to have someone who loves you so much.";
  98. sleep2 6000;
  99. npctalk "As you would have it so, by the grand powers vested in me...";
  100. sleep2 7000;
  101. announce "May the bonds of love shared by "+strcharinfo(0)+" and "+.@partner$+" last forever.", bc_all, 0xFD79A1;
  102. marriage .@partner$; // Marry the character to the party member
  103. getitem 22230,1; // Seasonal Event Token
  104. set #biggayhearts,4;
  105. wedding;
  106. misceffect 172;
  107. misceffect 487;
  108. misceffect 244;
  109. end;
  110. }
  111. }
  112. }
  113. }
  114. else if ($@partymembercount > 2)
  115. {
  116. mes "You've got too many guests. This is an intimate ceremony between two people to express your sole devotion to each other's soul.";
  117. next;
  118. mes "["+strnpcinfo(1)+"]";
  119. mes "Get rid of these voyeurs.";
  120. close;
  121. }
  122. else
  123. {
  124. mes "Your imaginary friend doesn't count as a spouse I'm afraid.";
  125. next;
  126. mes "["+strnpcinfo(1)+"]";
  127. mes "If you're serious about this you need to ^FF0000bring your loved one here in your party^000000.";
  128. close;
  129. }
  130. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement