- Joined
- Apr 13, 2011
- Messages
- 119
- Reaction score
- 11
I just thought of this stupid, and random idea while I was in school. I just thought I'd release it for the lulz. I was gonna make it a "Religion system" but I got lazy. I know it's not a good release, but I just thought I'd get it out that I exsist with this release lol. Anyways Enjoy.
add in MapleCharacter.java:
Obvious where they go.
Under saveToDB in MapleCharacter.java (the character one)
under levelUp in MapleCharacter.java:
NPCConversationManager.java
NPC:
Credits: MsDerp
P.S If your going to use it, give credits to me. Although, I highly doubt that you will lol.
Edit: Almost forgot the sqls here u go.
add in MapleCharacter.java:
Obvious where they go.
Code:
private int hindu;
Code:
ret.hindu = 0;
Under saveToDB in MapleCharacter.java (the character one)
Code:
hindu = ?
Code:
ps.setInt(your last int + 1, hindu);
under levelUp in MapleCharacter.java:
Code:
if (getLevel() == 199 && getHindu() == 1) {
int level = Randomizer.rand(1, 100);
if (level <= 5) {
levelUp(false);
} else {
setLevel(1);
updateSingleStat(MapleStat.LEVEL, 1);
updateSingleStat(MapleStat.MAXMP, 50);
updateSingleStat(MapleStat.MAXHP, 50);
updateSingleStat(MapleStat.DEX, 4);
updateSingleStat(MapleStat.INT, 4);
updateSingleStat(MapleStat.LUK, 4);
updateSingleStat(MapleStat.STR, 4);
getKeymap().clear();
client.getSession().write(MaplePacketCreator.getKeymap(keymap));
dropOverheadMessage("You are not a perfect Hindu. /r/n/ Back to level 1 for you. /r/n/ Restore your key settings to default.");
int job = Randomizer.rand(1, 55);
if (job <= 5) {
client.getPlayer().setJob(MapleJob.ARAN1);
} else if (job <= 10 && job > 5) {
client.getPlayer().setJob(MapleJob.THIEF);
} else if (job <= 15 && job > 10) {
client.getPlayer().setJob(MapleJob.MAGICIAN);
} else if (job <= 20 && job > 15) {
client.getPlayer().setJob(MapleJob.WARRIOR);
} else if (job <= 25 && job > 20) {
client.getPlayer().setJob(MapleJob.PIRATE);
} else if (job <= 30 && job > 25) {
client.getPlayer().setJob(MapleJob.BOWMAN);
} else if (job <= 35 && job > 30) {
client.getPlayer().setJob(MapleJob.BLAZEWIZARD1);
} else if (job <= 40 && job > 35) {
client.getPlayer().setJob(MapleJob.DAWNWARRIOR1);
} else if (job <= 45 && job > 40) {
client.getPlayer().setJob(MapleJob.NIGHTWALKER1);
} else if (job <= 50 && job > 45) {
client.getPlayer().setJob(MapleJob.THUNDERBREAKER1);
} else if (job <= 55 && job > 50) {
client.getPlayer().setJob(MapleJob.WINDARCHER1);
}
}
}
Code:
public int getHindu() {
return this.hindu;
}
public void setHindu(int hindu) {
this.hindu = hindu;
}
NPCConversationManager.java
Code:
public int getHindu() {
return getPlayer().getHindu();
}
public void setHindu(int hindu) {
getPlayer().setHindu(hindu);
}
NPC:
Code:
/*
Hindu NPC
By MsDerp
For MsDerp's Server
*/
function start() {
cm.sendSimple("I am the Hindu Master. Would you like to convert to Hinduism? \r\n#L0#Yes#l\r\n#L1#No#l\r\n#L2#Please explain Hinduism#l");
}
function action(m,t,s) {
if (m > 1) {
if (s == 0) {
cm.setHindu(1);
cm.sendOk("You are now a Hindu. I hope you achieve your fullest potential.");
} else if (s == 1) {
cm.sendOk("Very well then.");
} else if (s == 2) {
cm.sendOk("In Hinduism, you are born into a random job known as the 'Caste System.' /r/n You must follow the rules of your job and live life whether you like it or not. /r/n If the gods like what you did, they will let you surpass to level 200. /r/n If not, you will be given another job and you will be bounced back to level 1 to re-live your life. /r/n /r/n Benefits - Challenging /r/n/ Negatives - Challenging");
}
cm.dispose();
}
cm.dispose();
}
Credits: MsDerp
P.S If your going to use it, give credits to me. Although, I highly doubt that you will lol.
Edit: Almost forgot the sqls here u go.
Code:
ALTER TABLE `characters`
ADD COLUMN `hindu` INT(12) NOT NULL DEFAULT 0;
Last edited:

