Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] Real Wedding Pack *UPDATED v.1*

Status
Not open for further replies.
my milkshake.
Joined
Aug 23, 2008
Messages
230
Reaction score
10
The pack includes:
Mom and Dad give Blessing for 5mil ( :p )
High Priest John Checks if you are blessed or not and proceeds with the wedding.

Ok First we must define what Blessed/Married is right?

MapleCharacter.java

Under


Code:
Private Boolean GM;

Add


Code:
Private Boolean Blessed;

Under:


Code:
 public boolean isGM() {
  return gm;
 }

Add:


Code:
public boolean isBlessed() {
  return Blessed;
 }

Under:


Code:
  ret.gm = rs.getInt("gm") == 0 ? false : true;
Add:

Code:
ret.Blessed = rs.getInt("Blessed") == 0 ? false : true;


Under:


Code:
ret.gm = false;

Add:


Code:
ret.Blessed = false;


In MapleClient.java:

Under:


Code:
private boolean gm;
Add:

Code:
private boolean Blessed;
Under:


Code:
public boolean isGm() {
  return gm;
 }
Add:



Code:
public boolean isBlessed() {
  return Blessed;
 }

Now for Defining what Married is:
MapleCharacter.java

Under


Code:
Private Boolean GM;

Add


Code:
Private Boolean Married;

Under:


Code:
 public boolean isGM() {
  return gm;
 }

Add:


Code:
public boolean isMarried() {
  return Married;
 }

Under:


Code:
  ret.gm = rs.getInt("gm") == 0 ? false : true;
Add:

Code:
ret.Married = rs.getInt("Married") == 0 ? false : true;


Under:


Code:
ret.gm = false;

Add:


Code:
ret.Married = false;


In MapleClient.java:

Under:


Code:
private boolean gm;
Add:

Code:
private boolean Married;
Under:


Code:
public boolean isGm() {
  return gm;
 }
Add:



Code:
public boolean isMarried() {
  return Married;
 }














---------------------
There is Wedding check as in if you want a special pq for only married couples then you add
Code:
{
			if(cm.getChar().getMarried() == 0) {
				cm.sendOk("Your Text Here ");
				cm.dispose();
			} else {
				if(cm.getChar().getMarried() == 1) }
{ 
   
   cm.sendNext("Your text Here");  

      }

Since i am not the OMG professional coder there might be something wrong but thats a basic thing for it cause im not so good at putting checks :?
----------------------------------
Blessed Check, This is what the Pope Npc is with Blessed check so if you are blessed from your parents you can go to the wedding.
Code:
/* 
 This file is part of the OdinMS Maple Story Server 
    Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>  
        Matthias Butz <matze@odinms.de> 
        Jan Christian Meyer <vimes@odinms.de> 
    This program is free software: you can redistribute it and/or modify 
    it under the terms of the GNU Affero General Public License as 
    published by the Free Software Foundation version 3 as published by 
    the Free Software Foundation. You may not use, modify or distribute 
    this program under any other version of the GNU Affero General Public 
    License. 
    This program is distributed in the hope that it will be useful, 
    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    GNU Affero General Public License for more details. 
    You should have received a copy of the GNU Affero General Public License 
    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
*/ 
/* High Priest John
by Angel (get31720 ragezone)
Redesigned by Frozurad from ragezone
*/ 
var status = 0; 
function start() { 
 status = -1; 
 action(1, 0, 0); 
} 
function action(mode, type, selection) { 
 if (mode == -1) { 
  cm.dispose(); 
 } else { 
  if (status >= 2 && mode == 0) { 
   cm.sendOk("Tell me when you're ready"); 
   cm.dispose(); 
   return; 
  } 
  if (mode == 1) 
   status++; 
  else 
   status--; 
  if (status == 0)

{
			if(cm.getChar().getBlessed() == 0) {
				cm.sendOk("Sorry without your parents blessing i cannot join your beloved hands. ");
				cm.dispose();
			} else {
				if(cm.getChar().getBlessed() == 1) }
{ 
   
   cm.sendNext("Hello I am here to join the hands of many maplers");  

      }  else if (status == 1) { 
   cm.sendNextPrev("You'll need to give me your premium wedding receipt that Victoria my assistant gave you."); 
  } else if (status == 2) { 
   if (cm.haveItem(4214002)) { 
    cm.sendNext("Beautiful you have the ticket!"); 
    cm.gainItem(4214002,-1); 
     
   } else { 
    cm.sendOk("You must not be the couple or you have lost your reciept."); 
    status = 9; 
   } 
  } else if (status == 3) { 
   cm.warp(680000210, 2); 
   cm.sendOk("Together you will rise and together you will fall. Never shall you part. I proclaim you husband and wife by the powers vested in all the GMs.")
   cm.gainItem(1112803,1); 
   cm.gainItem(1050113,1); 
   cm.gainItem(1050114,1); 
   cm.gainItem(1000029,1); 
   cm.gainItem(1081002,1); 
   cm.dispose(); 
  } 
 } 
}

Mom and dad npc is right here:
Code:
 /**************************************************
    Credits to  bendanx3 for his
    Gender changer used as base . 
    2/9/2008 .
             Updated: 3/9/2008 .
Upgraded to Mom and dad bless give npc. 
Credits to Frozurad ( me ) for making it a bless giver
***************************************************/

var status = 0;


function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (mode == -1) {
        cm.dispose();
    } else {
        if (mode == 0 && status == 0) {
            cm.dispose();
            return;
        }
        if (mode == 1)
            status++;
        else
            status--;
        if (status == 0) {
            cm.sendYesNo(" WELCOME HOME HONEY! Kisses <3!!! XOXO i will give you bless now since you dont have it but we are low on income so ima take yur mes0z rawr. So Do you wan't it? CLick yes please your daddy plays MS too much I NEED MONEY! ");
        } else if (status == 1) {
                if (cm.getChar().getBlessed() == 0) {
                    if (cm.getMeso() > 5000000) {
                        cm.getChar().setBlessed(1);
                        cm.gainMeso(-5000000);
                        cm.sendOk(" You are blessed now SO GO GET MARRIED.. hehe ima go get raped by 16 year old teenage boys. Like your daddy even cares.");
                        cm.dispose();
                        cm.reloadChar();
                    } else {
                        cm.sendOk("You spoiled brat i gave you everything you wanted and you dont give it back? witch...");
                        cm.dipose();
                    }

                } else if (cm.getChar().getBlessed() == 1) {
                    if (cm.getMeso() > 5000000) {
                        cm.getChar().setBlessed(0);
                        cm.gainMeso(-5000000);
                        cm.sendOk(" I geuss you don't want to be blessed honey well good bye! ");
                        cm.dispose();
                        cm.reloadChar();
                    } else {
                        cm.sendOk("HAHA witch leave NOW!");
                        cm.dispose();
                        }
                    }
                    
                }
            }
        }
I was too tired to make it only bless giving so if you use it again it resets your bless to 1 :/ also you lose 5mil HAHA.


Add these into your database ( ignore the premium and normal i will finish later. )

Code:
ALTER TABLE `characters` ADD COLUMN `Blessed` tinyint(1) NOT NULL default '0',
  ALTER TABLE `characters` ADD COLUMN `Married` tinyint(1) NOT NULL default '0',
  ALTER TABLE `characters` ADD COLUMN `premium` tinyint(1) NOT NULL default '0',
  ALTER TABLE `characters` ADD COLUMN `normal` tinyint(1) NOT NULL default '0',
-------------------------------------------------------------------------------------------------------------
v.2 ( next version ) will include:

  • Bonus cake fighting stage with correct drops.
  • Bonux stage npc take the keys and takes you to boxes which drop: sushi, gelts, and amorian cookie :D.
  • Coded Reactors for boxes *taking drops requests*
  • Possible WeddingPQ to be inside of the pq * hint: amos' keys will be needed :D*
  • Mom and Dad npc updated
  • You will need to give victoria your ticket in order to be able to do the wedding, this will make the premium/normal column 1 in your database, after you have gotten that you go get blessed from mom and dad then you go to pope and you select premium/normal from the selections and it checks which one you got so after that it will change it to 2 so you cannot re-do the wedding but the pq will be accessible again.
  • Pope will be updated.
 
Last edited:
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
Re: [Beta Release] Real Wedding Pack *BETA*

Thanks for the release ! Will try it.
 
Junior Spellweaver
Joined
Aug 17, 2008
Messages
102
Reaction score
0
Re: [Beta Release] Real Wedding Pack *BETA*

Wow good work.
 
Junior Spellweaver
Joined
Aug 14, 2008
Messages
146
Reaction score
12
Re: [Beta Release] Real Wedding Pack *BETA*

Awesome!
 
Junior Spellweaver
Joined
Mar 21, 2008
Messages
169
Reaction score
0
Re: [Beta Release] Real Wedding Pack *BETA*

Smart one...Next time Include the MapleCharacter and NPCConversationManager Parts, also give Credits? It won't work unless you add getmarried, setmarried and so on, you also need a setcouplemarried, and checkcouplegender. you should also include get/set marriagestatus so that 5 million weddings are not on at the same time. GL.
 
my milkshake.
Joined
Aug 23, 2008
Messages
230
Reaction score
10
Re: [Beta Release] Real Wedding Pack *BETA*

its not GMS like but its the best it can get. ok the pressure is off now i can get started on school and going to go apply for a job on monday or so :)
edit: the credits are actually inside the npc un-touched except i added my name in there so um idk :p drfusion im waiting for your pathetic fail response to my fail thread that fails so dearly, fails.
 
Skilled Illusionist
Loyal Member
Joined
Jun 23, 2008
Messages
324
Reaction score
0
Re: [Beta Release] Real Wedding Pack *BETA*

Wow great release, mind posting some SS ? I wanna see how it works XD
 
my milkshake.
Joined
Aug 23, 2008
Messages
230
Reaction score
10
Re: [Beta Release] Real Wedding Pack *BETA*

Wow great release, mind posting some SS ? I wanna see how it works XD

um.. ok cuz i tried this on someone elses server but il just do it on mine o-o i havnt ran a server in such a long time omigosh
 
Experienced Elementalist
Joined
Jul 1, 2008
Messages
270
Reaction score
0
Re: [Beta Release] Real Wedding Pack *BETA*

Nice but, does the Spouse chat work with this.
If only rings worked =/
 
Visit my hompage
Loyal Member
Joined
May 2, 2008
Messages
1,017
Reaction score
2
Re: [Beta Release] Real Wedding Pack *BETA*

lol we needs rings
 
Master Summoner
Joined
Jul 28, 2008
Messages
503
Reaction score
0
Re: [Beta Release] Real Wedding Pack *BETA*

Hmm does any1 know if this actually works?
 
Newbie Spellweaver
Joined
Jul 11, 2008
Messages
26
Reaction score
1
Re: [Beta Release] Real Wedding Pack *BETA*

this could start up the spouse chats xD
 
Junior Spellweaver
Joined
Mar 21, 2008
Messages
169
Reaction score
0
Re: [Beta Release] Real Wedding Pack *BETA*

it doesnt really need to have statements.. does it? o-O
Uhm Can everyone else look in their MapleCharacter and NPCConversationManager for "getMarried"
Thanks! Anyways They're release in my "Dev" Thread Which i sadly stopped. I'll find it in a sec.
 
Master Summoner
Loyal Member
Joined
Jul 14, 2008
Messages
584
Reaction score
1
Re: [Beta Release] Real Wedding Pack *BETA*

Nice Realease :pain:
_________________
Frozurad - [Release] Real Wedding Pack *UPDATED v.1* - RaGEZONE Forums

 
Newbie Spellweaver
Joined
Jun 1, 2008
Messages
91
Reaction score
0
Re: [Beta Release] Real Wedding Pack *BETA*

Nice job on getting this done.
 
Master Summoner
Joined
Jul 28, 2008
Messages
503
Reaction score
0
Re: [Beta Release] Real Wedding Pack *BETA*

Ok ima going to try it out now ima reply you about this when done
 
Legendary Battlemage
Loyal Member
Joined
Dec 7, 2007
Messages
622
Reaction score
11
Re: [Beta Release] Real Wedding Pack *BETA*

Nice Release thx alot
 
Status
Not open for further replies.
Back
Top