Re: [Add-On] Perma Death System
Quote:
Originally Posted by
Zygon
In conjunction with all their equips dropping when they die. :)
Lol, I made that a while ago and released it.
PHP Code:
public void dropEquippedItems() {
List<IItem> items = new LinkedList<IItem>();
for(IItem equips : getInventory(MapleInventoryType.EQUIPPED)) {
items.add(equips);
}
for(IItem equips : getInventory(MapleInventoryType.EQUIPPED)) {
IItem toDrop = MapleItemInformationProvider.getInstance().getEquipById(equips.getItemId());
getMap().spawnItemDrop(this, this, toDrop, this.getPosition(), true, true);
}
for (IItem item : items) {
MapleInventoryManipulator.removeById(client, MapleInventoryType.EQUIPPED, item.getItemId(), item.getQuantity(), false, false);
}
items.clear();
}
Other than that, I think this would be only helpful as an option; not a requirement. If someone didn't want it and died they'd probably quit.
Oh, and the server-wide PVP thing. Make places safe-zones at least. Can't have people "spawn-killing" the new players, lol.
Re: [Add-On] Perma Death System
Quote:
Originally Posted by
Veda
Lol, I made that a while ago and released it.
PHP Code:
public void dropEquippedItems() {
List<IItem> items = new LinkedList<IItem>();
for(IItem equips : getInventory(MapleInventoryType.EQUIPPED)) {
items.add(equips);
}
for(IItem equips : getInventory(MapleInventoryType.EQUIPPED)) {
IItem toDrop = MapleItemInformationProvider.getInstance().getEquipById(equips.getItemId());
getMap().spawnItemDrop(this, this, toDrop, this.getPosition(), true, true);
}
for (IItem item : items) {
MapleInventoryManipulator.removeById(client, MapleInventoryType.EQUIPPED, item.getItemId(), item.getQuantity(), false, false);
}
items.clear();
}
Other than that, I think this would be only helpful as an option; not a requirement. If someone didn't want it and died they'd probably quit.
Oh, and the server-wide PVP thing. Make places safe-zones at least. Can't have people "spawn-killing" the new players, lol.
It can be a PvP map like the old runescape wilderness. Players die and the items they had drop. It was fun. xD
Re: [Add-On] Perma Death System
Re: [Add-On] Perma Death System
Is there any help on cancelling PvP death ? This is kinda unfair for those who just enter the PvP map and they just die for no reason .
Posted via Mobile Device
Re: [Add-On] Perma Death System
Quote:
Originally Posted by
sia0b0yz
Is there any help on cancelling PvP death ? This is kinda unfair for those who just enter the PvP map and they just die for no reason .
Posted via Mobile Device
Well if they die instantly either they shouldn't be in that map or they just fail. But if you really wanna do a check like that, just have a check for when they enter the map and let them be invincible for let's say 5 seconds, then disable the invincibility.
Re: [Add-On] Perma Death System
Wow, this got unlocked. Glad this idea seems somewhat popular, I'll make this more into an actual useful release shortly hopefully.
Re: [Add-On] Perma Death System
Quote:
Originally Posted by
iCris
Wow, this got unlocked. Glad this idea seems somewhat popular, I'll make this more into an actual useful release shortly hopefully.
Ahaha, I already made a System using this thanks to you, although I'm not sure if I'm gonna release it xP
Re: [Add-On] Perma Death System
I got hired to do some stuff for a twat server and in the end of my career with them I added this, toke them 2 days to remove. It was hilarious for me, them...not so much.
Re: [Add-On] Perma Death System
Quote:
Originally Posted by
King Grub
I got hired to do some stuff for a twat server and in the end of my career with them I added this, toke them 2 days to remove. It was hilarious for me, them...not so much.
Oh man, I'm so glad my system was put to good use. c:
Re: [Add-On] Perma Death System
Interesting concept. :) What if you had it so that during PvP the killer gets to select an item from the player instead of the player losing everything? I know I would rage if I lost all my sht. One item not so much.
Re: [Add-On] Perma Death System
@Above, very well possible. Open the 'dead' players inventory and make the attacker pick an item. Shouldn't be too hard.
Might as well limit the possibilities to equips only or have each player put a 'lock' on three items of choice etc etc.
Re: [Add-On] Perma Death System
Will this work? I have no clue in coding..
PHP Code:
private void playerDead() {
MapleInventory eqp = getInventory(MapleInventoryType.EQUIPPED);
for (IItem i : eqp) {
MapleInventoryManipulator.drop(client, MapleInventoryType.EQUIPPED, getPosition(), 1);
}
public String getName() {
return name;
}player.dropMessage(name + "got killed");
// whatever other things need to be done
}
Re: [Add-On] Perma Death System
Quote:
Originally Posted by
lordpeter
Will this work? I have no clue in coding..
PHP Code:
private void playerDead() {
MapleInventory eqp = getInventory(MapleInventoryType.EQUIPPED);
for (IItem i : eqp) {
MapleInventoryManipulator.drop(client, MapleInventoryType.EQUIPPED, getPosition(), 1);
}
public String getName() {
return name;
}player.dropMessage(name + "has killed someone");
// whatever other things need to be done
}
What is it supposed to do?
Re: [Add-On] Perma Death System
Quote:
Originally Posted by
Veda
What is it supposed to do?
All its an addition to what was additionaly posted. Someone said it will be cool if it said "[notice] *character* got killed" or something so ya :P
Re: [Add-On] Perma Death System