[Add-On] Hindu System

Junior Spellweaver
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.

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:
Derp :P

This gave me an idea to make a God/Religion system or something, but with yours I don't see the point in how the player can use it.

its just a "give players stuff to do" kind of thing. lol People dont have things to do after they hit 200 so why not this? xD
 
Well its a neat system to keep players on. I find it interesting, and im sure players would too lol.

well I guess so lol. I think i would do it just to do it if i was a player and if i didnt reach level 200, I'd get frustrated and try again lol.
 
You should have more religions such as Buddhism , Taoism, Mulsim, Islam, etc.

Mulsim and Islam are certainly not the same religion, right?
Oh and I think you forgot the largest religion in the world.. Christianity. Ever heard of it? No? Aww.
 
:tongue:

Lol you've got to be kidding me. Your here too you little insect? Muslim and Islam AREN'T the same thing and Christianity is NOT the largest, go do some research, until then crawl back in your little hole:thumbdown:.

Sorry to tell you, but they are the same thing. The only actual difference is that Islam refers to the religion, while Muslim refers to the followers of Islam. Also, Christianity is the worlds biggest religion by approx. 0.6 billion people more world wide.


Now again... please stick to the original topic. I've already cleaned this thread twice. I will not be cleaning it again without issuing warnings/infractions.
 
Back