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:
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:
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(1050****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? Bitch...");
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 bitch 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.