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!

When your Fame is -10 and diying, Your equip item is droped

Newbie Spellweaver
Joined
Apr 20, 2008
Messages
11
Reaction score
0
Made by c92h23


Go to the ChangeMapHandler.java


Change
player.setHp(50);
MapleMap to = c.getPlayer().getMap().getReturnMap();
MaplePortal pto = to.getPortal(0);
player.setStance(0);
player.changeMap(to, pto);

To
if (c.getPlayer().getFame() > -10) { /* You can change this */
player.setHp(50);
MapleMap to = c.getPlayer().getMap().getReturnMap();
MaplePortal pto = to.getPortal(0);
player.setStance(0);
player.changeMap(to, pto);
} else {
player.setHp(50);
MapleMap to = c.getPlayer().getMap().getReturnMap();
MaplePortal pto = to.getPortal(0);
player.setStance(0);
player.changeMap(to, pto);
player.setExp(player.getExp() / 2);
player.updateSingleStat(MapleStat.EXP, player.getExp());
MapleInventory equipped = player.getInventory(MapleInventoryType.EQUIPPED);
MapleInventory equip = player.getInventory(MapleInventoryType.EQUIP);
List<Byte> ids = new LinkedList<Byte>();
for (IItem item : equipped.list()) {
ids.add(item.getPosition());
}
for (byte id : ids) {
MapleInventoryManipulator.drop(player.getClient(), MapleInventoryType.EQUIP, (byte) id, (byte) equip.getNextFreeSlot());
}
}

It's All. Very Easy.
 
Newbie Spellweaver
Joined
Jul 13, 2008
Messages
81
Reaction score
0
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

haha

clever idea

this should be pretty good

and btw ima edit it a little bit, add mesos too it, so if that person die, it will take away 20% of his/her mesos

sounds great!

btw thanks
 
Junior Spellweaver
Joined
Jul 19, 2008
Messages
151
Reaction score
0
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

LOL! Nice, although players would be complainin a lot on my server so sadly I won't be adding this, but thanks for the release.
 
Junior Spellweaver
Joined
Apr 21, 2007
Messages
158
Reaction score
1
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

May I ask?
Is it possible to warp people that are dead to FM in any place? lmao

Example: o.o
Die in sleepywood. Warps to FM.
Die in Henesys. Warps to FM.
 
Banned
Banned
Joined
May 30, 2008
Messages
726
Reaction score
1
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

May I ask?
Is it possible to warp people that are dead to FM in any place? lmao

Example: o.o
Die in sleepywood. Warps to FM.
Die in Henesys. Warps to FM.

Yes if someone dies in Sleepywood and they get warped to FM there gravestone comes down once again.
 
Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

When you do that, the item is dropped when you respawn.

So the player can just get it back.
 
Newbie Spellweaver
Joined
Mar 11, 2008
Messages
25
Reaction score
0
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

Nice release! We could change this " if (c.getPlayer().getFame() > -10) " to make items drop in PvP. Instead of checking fame, maybe we should check player death in PvP?
 
Junior Spellweaver
Joined
Apr 21, 2007
Messages
158
Reaction score
1
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

Yes if someone dies in Sleepywood and they get warped to FM there gravestone comes down once again.

Nah
Thats not what I mean.
I mean is it possible to change the place they respawn to one place? o_O

Example (Agin):
Die in Sleepywood. Clicks Ok button. Warps to Henesys.
Die in Ludibrium. Clicks Ok button. Warps to Henesys.
Die in Perion. Clicks Ok Button. Warps to Henesys.
Etc. :p
 
Experienced Elementalist
Joined
Aug 3, 2008
Messages
203
Reaction score
0
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

You should make it so there lvl goes back to 1 and there job back to begginner also stats going back to default
Let Me Rephase. I mean like theere starting a whole new charcter again..
IF THEY HAVE LIIKE -30 Exp
 
Junior Spellweaver
Joined
Apr 21, 2007
Messages
158
Reaction score
1
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

I thought the code just cuts your exp into half? o.o
 
Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

Nah
Thats not what I mean.
I mean is it possible to change the place they respawn to one place? o_O

Example (Agin):
Die in Sleepywood. Clicks Ok button. Warps to Henesys.
Die in Ludibrium. Clicks Ok button. Warps to Henesys.
Die in Perion. Clicks Ok Button. Warps to Henesys.
Etc. :p

ChangeMapHandler

Find
Code:
MapleMap to = c.getPlayer().getMap().getReturnMap();

Replace

Code:
MapleMap to = ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(100000000);

Replace 100000000 with your mapid
 
Skilled Illusionist
Loyal Member
Joined
May 5, 2008
Messages
352
Reaction score
0
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

wow this si kool :p its defames wud suck then eh? and a gm on my server has -1337 fame :p
 
Junior Spellweaver
Joined
Apr 21, 2007
Messages
158
Reaction score
1
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

Thanks thats what i need. :)
Now I can make meh own MapleStory storyline. :D
Lmao...
 
Newbie Spellweaver
Joined
Mar 11, 2008
Messages
25
Reaction score
0
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

Nah
Thats not what I mean.
I mean is it possible to change the place they respawn to one place? o_O

Example (Agin):
Die in Sleepywood. Clicks Ok button. Warps to Henesys.
Die in Ludibrium. Clicks Ok button. Warps to Henesys.
Die in Perion. Clicks Ok Button. Warps to Henesys.
Etc. :p

if (c.getPlayer().getFame() > -10) { //change to .getMap() & put the maps you want(when your players die on those maps they will be moved to maps stated below)

player.setHp(50);//change the amount of hp a player lose when they die

MapleMap to = c.getPlayer().getMap().getReturnMap();//change this to the maps you want, when your players die, they will be moved

MaplePortal pto = to.getPortal(0);
player.setStance(0);
player.changeMap(to, pto);
} else {
player.setHp(50);
MapleMap to = c.getPlayer().getMap().getReturnMap();
MaplePortal pto = to.getPortal(0);
player.setStance(0);
player.changeMap(to, pto);
player.setExp(player.getExp() / 2);
player.updateSingleStat(MapleStat.EXP, player.getExp());
MapleInventory equipped = player.getInventory(MapleInventoryType.EQUIPPED);
MapleInventory equip = player.getInventory(MapleInventoryType.EQUIP);
List<Byte> ids = new LinkedList<Byte>();
for (IItem item : equipped.list()) {
ids.add(item.getPosition());
}
for (byte id : ids) {
MapleInventoryManipulator.drop(player.getClient(), MapleInventoryType.EQUIP, (byte) id, (byte) equip.getNextFreeSlot());
}
}


We can also make it like GMS where player loses exp when they die.
 
Initiate Mage
Joined
Aug 6, 2008
Messages
1
Reaction score
0
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

ROFL. That is a really clever idea. If a person is not used to it.. They might complain. LOL. On my servers i GM i love making my fame -1337. ^o^
 
Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

*sigh No one reads my post.

This drops the equip AFTER you click 'OK' when you die.
 
Junior Spellweaver
Joined
Apr 7, 2008
Messages
100
Reaction score
0
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

*sigh No one reads my post.

This drops the equip AFTER you click 'OK' when you die.

move the dropper part up, so that it drops before teleporting.
 
Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

move the dropper part up, so that it drops before teleporting.

It still drops after you press OK. Thats what the entire thing is.

You'd need to modify playerDead() in MapleCharacter.java
 
Newbie Spellweaver
Joined
Mar 13, 2007
Messages
53
Reaction score
0
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

I don't understand what this does, does it drop your equiped item when your fame is -10 and your under 50 hp?
 
Junior Spellweaver
Joined
Jul 19, 2008
Messages
151
Reaction score
0
Re: [Release] When your Fame is -10 and diying, Your equip item is droped

I don't understand what this does, does it drop your equiped item when your fame is -10 and your under 50 hp?

if your fame is -10 or below and you die then your equips gets dropped.
 
Back
Top