EmOstory Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

LASampang's GM/coder app

2 posters

Go down

LASampang's GM/coder app Empty LASampang's GM/coder app

Post  LA Sat Mar 06, 2010 11:37 am

Name:
Laurance Sampang

Ign:
LASampang

Age:
16
Country:
USA

Time Zone:
Central

Experience:
I can code java and Wz edit and alot of stuff i can change the eyes of purple to look like sharingan and add alot of things.

Why do you want to be a Coder:
I would like to be a coder because, I believe that EmoStory can fly higher than it is by, coding custom NPC's.Weddings and Wz edit and alot of things. Also I know I can code and have benn doing it for 2 years also, it keeps me busy. I love coding things and i can code some awesomethings with photoshop and stuff I can edit tiems and make them look like v80 items and things.

Examples:
Here are some examples...........

Wedding thts not FKED up

First, You need to define what Blessed means.

Open MapleCharacter.java and look for this

Code:
Private Boolean GM;



Add this under it.
Code:
Private Boolean Blessed;



Now find this.
Code:
public boolean isGM() {
return gm;
}


Add this under it.
Code:
public boolean isBlessed() {
return Blessed;
}


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



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



Look for this
Code:
ret.gm = false;



Add this under it.
Code:
ret.Blessed = false;



Now open MapleClient.java

And look for this
Code:
Private Boolean GM;



Add this under it.
Code:
Private Boolean Blessed;



Look for this.
Code:
public boolean isGM() {
return gm;
}



Add this under it.
Code:
public boolean isBlessed() {
return Blessed;
}


Now we need to define what Married is.

Open MapleCharacter.Java

Look for this.
Code:
Private Boolean GM;



Add this under it.
Code:
Private Boolean Married;



Look for this.
Code:
public boolean isGM() {
return gm;
}


Add this under it.
Code:
public boolean isMarried() {
return Married;
}


Look for this.
Code:
ret.gm = rs.getInt ()”gm”) == 0 ? false : true;



Add this under it.
Code:
ret.Married = rs.getInt(“Married”) == 0 ? false : true;



Look for this.
Code:
ret.gm = false;



Add this under it.
[code]ret.Married = false;

In MapleClient.Java

Look for this.
[code]private boolean gm;
[/code]

Add this under it.
[code]private boolean Married;
[/code]

Look for this.
[code]public boolean isGm() {
Return gm;
}
[/code]

Add this under it
[code]public boolean isMarried() {
return Married;
}
[/code]


Here’s the Mom and Dad Script.
Spoiler:
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(" Hello, Dear. I will bless you now, but you will need to pay me one million mesos. ");
} else if (status == 1) {
if (cm.getChar().getBlessed() == 0) {
if (cm.getMeso() > 1000000) {
cm.getChar().setBlessed(1);
cm.gainMeso(-1000000);
cm.sendOk(" You are blessed now so you can go get married!.");
cm.dispose();
cm.reloadChar();
} else {
cm.sendOk("Sorry Dear, but if you can’t give me the money, I can’t pay my bills so I can’t bless you.");
cm.dipose();
}

} else if (cm.getChar().getBlessed() == 1) {
if (cm.getMeso() > 1000000) {
cm.getChar().setBlessed(0);
cm.gainMeso(-1000000);
cm.sendOk(" You don’t want to be blessed? Okay, Bye! ");
cm.dispose();
cm.reloadChar();
} else {
cm.sendOk("Good bye!");
cm.dispose();
}
}

}
}
}



The ppriest's check if you are blessed from your parents.
Spoiler:
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 blessings, I cannot wed you two. ");
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(1050021);
cm.gainItem(1000029,1);
cm.gainItem(1081002,1);
cm.dispose();
}
}
}



Execute these in MySQL one at a time.
[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',
[/code]

If you want to make a pq or anything or a Married check, Use this.

[code]{
if(cm.getChar().getMarried() == 0) {
cm.sendOk("Your Message ");
cm.dispose();
} else {
if(cm.getChar().getMarried() == 1) }
{

cm.sendNext("Your Message");

}
[/code]



Here: This is For Commands


} else if ((splitted[0].equalsIgnoreCase("!loseevent")) || (splitted[0].equalsIgnoreCase("!looseevent"))) {
int mapid = 103000890;

MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
MapleMap target = cserv.getMapFactory().getMap(mapid);
victim.changeMap(target, target.getPortal(0));

} else if (splitted[0].equalsIgnoreCase("!winevent")) {
int mapid = 109050000;

MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
MapleMap target = cserv.getMapFactory().getMap(mapid);
victim.changeMap(target, target.getPortal(0));

WEll i will code more if i was accepted

LA

Posts : 1
Points : 5189
Join date : 2010-03-06

Back to top Go down

LASampang's GM/coder app Empty Re: LASampang's GM/coder app

Post  xNightZ Tue Mar 16, 2010 9:02 pm

1. ure a neighbour of ALEX
http://snailms.forumotion.com/coder-applications-f14/my-final-coding-wedding-t905.htm

2. im nt sure if ure innocent or not...

3. in the server snailms, u 'pissed' everyone in the server such that GM INFINITY does not like you, and i can see that u quitted the ms cuz the last slot of gm got taken, it was a talk of the town in snailms, u wanna evidence? i can talk to infinity

4. http://snailms.forumotion.com/introductions-goodbyes-f18/the-split-from-snail-ms-t674.htm

5. we already have coder

6. well, i have deep impression of u

7. i dont like you

8. u pissed me too

well some of them are joking, BUT 1~5 IS SERIOUS, U INSULTED THE SERVER AND PISSED EVERYONE BEFORE U LEFT, i better take some screenshot b4 u leave

wan evidence?

1.
LASampang's GM/coder app 2hz69s

2.
LASampang's GM/coder app 16aqryo

3.
LASampang's GM/coder app 4l0fip

4.
LASampang's GM/coder app 21kcwtt

5.
LASampang's GM/coder app 34jc3o3


well well, wanna gtfo now? dont touch this awesome server
xNightZ
xNightZ
Active Member
Active Member

Posts : 19
Points : 5212
Join date : 2010-03-13
Age : 36
Location : I'm Lost... T_T

http://manchester-united-and-educational.blogspot.com/2010/03/ed

Back to top Go down

LASampang's GM/coder app Empty Re: LASampang's GM/coder app

Post  xNightZ Tue Mar 16, 2010 9:04 pm

PLEASE TAKE GOOD NOTE OF 4. IT IS IMPORTANT THAT SHOWS ALL MY SCREENSHOT

hehe...

well well well...
xNightZ
xNightZ
Active Member
Active Member

Posts : 19
Points : 5212
Join date : 2010-03-13
Age : 36
Location : I'm Lost... T_T

http://manchester-united-and-educational.blogspot.com/2010/03/ed

Back to top Go down

LASampang's GM/coder app Empty Re: LASampang's GM/coder app

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum