Page 1 of 1
GM Drop
Posted: Fri Jul 24, 2009 2:36 pm
by ezek
Hi all
My question is, how can I make the GM drop any item?
I mean, I saw GM could drop any item even if it has "false" in column "dropable" of db.
Is there any .properties for that? or access level?
Thanks
Re: GM Drop
Posted: Fri Jul 24, 2009 2:46 pm
by momo61
pvp.properties
Code: Select all
# ---------------------------------------------------------------------------# PK'er Drop Settings# ---------------------------------------------------------------------------# Default: FalseCanGMDropEquipment = True
Re: GM Drop
Posted: Fri Jul 24, 2009 4:53 pm
by ezek
t doesn't work.
That setting just makes GM could drop if he has karma
Re: GM Drop
Posted: Fri Jul 24, 2009 7:39 pm
by seanpaul
This should work for you add to server with Eclipse.
Code: Select all
Index: java/net/sf/l2j/gameserver/clientpackets/RequestDropItem.java===================================================================--- java/net/sf/l2j/gameserver/clientpackets/RequestDropItem.java (revision 2010)+++ java/net/sf/l2j/gameserver/clientpackets/RequestDropItem.java (working copy)@@ -68,12 +68,12 @@ || _count == 0 || !activeChar.validateItemManipulation(_objectId, "drop") || (!Config.ALLOW_DISCARDITEM && !activeChar.isGM())- || !item.isDropable())+ || !item.isDropable() && !activeChar.isGM()) { activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM)); return; }- if(item.getItemType() == L2EtcItemType.QUEST)+ if(item.getItemType() == L2EtcItemType.QUEST && !activeChar.isGM()) { return;
Re: GM Drop
Posted: Wed Jul 29, 2009 7:42 pm
by ezek
Thanks for your answer buy it doesn't work =(
Re: GM Drop
Posted: Wed Jul 29, 2009 10:02 pm
by seanpaul
must have done something wrong it works on all servers check again.
edit "RequestDropItem.java" in Eclipse
go to
java/net/sf/l2j/gameserver/network/clientpackets/RequestDropItem.java
some where around line 75 and line 80 and add
just add "&& !activeChar.isGM()" in the 2 spots under drop section and should work.
|| _count == 0
|| !activeChar.validateItemManipulation(_objectId, "drop")
|| (!Config.ALLOW_DISCARDITEM && !activeChar.isGM())
- || !item.isDropable())
+ || !item.isDropable() && !activeChar.isGM())
{
activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM));
return;
}
- if(item.getItemType() == L2EtcItemType.QUEST)
+ if(item.getItemType() == L2EtcItemType.QUEST && !activeChar.isGM())
{
return;
all items and quest items will be dropable for a GM.
has worked on all Revisions of servers for me.
Re: GM Drop
Posted: Sun Aug 02, 2009 2:00 pm
by ezek
Code: Select all
|| _count == 0 || !activeChar.validateItemManipulation(_objectId, "drop") || (!Config.ALLOW_DISCARDITEM && !activeChar.isGM()) || !item.isDropable() && !activeChar.isGM()) { activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM)); return; } if(item.getItemType() == L2EtcItemType.QUEST && !activeChar.isGM()) { return; }
That's my .java, I added activeChar.isGM, and it's like your code, but it dosn't drop non-dropable items.
Re: GM Drop
Posted: Sun Aug 02, 2009 2:24 pm
by janiii