Thelasthero Posted April 7, 2010 Posted April 7, 2010 i fixed that problem http://www.maxcheaters.com/forum/index.php?topic=137066.0 , now leader takes crown, but every clan member can wear it ??? Quote
0 `Rοmeο Posted April 7, 2010 Posted April 7, 2010 L2Clan cl = activeChar.getClan(); if ((cl == null || cl.getHasCastle() == 0) && itemId == 7015 && Config.CASTLE_SHIELD) { activeChar.sendMessage("You can't equip that"); return; } if ((cl == null || cl.getHasHideout() == 0) && itemId == 6902 && Config.CLANHALL_SHIELD) { activeChar.sendMessage("You can't equip that"); return; } if ((itemId >= 7860 && itemId <= 7879) && Config.APELLA_ARMORS && (cl == null || activeChar.getPledgeClass() < 5)) { activeChar.sendMessage("You can't equip that"); return; } if ((itemId >= 7850 && itemId <= 7859) && Config.OATH_ARMORS && (cl == null)) { activeChar.sendMessage("You can't equip that"); return; } if (itemId == 6841 && Config.CASTLE_CROWN && (cl == null || (cl.getHasCastle() == 0 || !activeChar.isClanLeader()))) { activeChar.sendMessage("You can't equip that"); return; } if (Config.CASTLE_CIRCLETS && ((itemId >= 6834 && itemId <= 6840) || itemId == 8182 || itemId == 8183)) { if (cl == null) { activeChar.sendMessage("You can't equip that"); return; } else { int circletId = CastleManager.getInstance().getCircletByCastleId(cl.getHasCastle()); if (activeChar.getPledgeType() == -1 || circletId != itemId) { activeChar.sendMessage("You can't equip that"); return; } } } You can remove the configs couse I dont have time now :( Quote
0 `Rοmeο Posted April 7, 2010 Posted April 7, 2010 where do i add this? ohh sorry In UseItem.java after : if (itemId == 57) Quote
0 Thelasthero Posted April 7, 2010 Author Posted April 7, 2010 ohh sorry In UseItem.java after : if (itemId == 57) ERROR ON COMPILE ??? [javac] Compiling 1221 source files to C:\workspace\L2_GameServer_It\build\classes [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\clientpackets\UseItem.java:142: not a statement [javac] L2Clan cl = activeChar.getClan(); [javac] ^ [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\clientpackets\UseItem.java:142: ';' expected [javac] L2Clan cl = activeChar.getClan(); [javac] ^ [javac] 2 errors Quote
0 `Rοmeο Posted April 7, 2010 Posted April 7, 2010 damn I forget the import :D import net.sf.l2j.gameserver.model.L2Clan; Quote
0 Thelasthero Posted April 7, 2010 Author Posted April 7, 2010 Hey mate, are You blind? tried but nothing, i will try now with the import actually when i add ;, i still got error not a statement, but 1 error Quote
Question
Thelasthero
i fixed that problem http://www.maxcheaters.com/forum/index.php?topic=137066.0 , now leader takes crown, but every clan member can wear it ???
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.