Jump to content

manos2864

Members
  • Posts

    255
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by manos2864

  1. and for s80 and s84 what i must add? i must add these lines? + int lolz0r = item.getItem().getCrystalType(); + if (activeChar.isInOlympiadMode() && lolz0r == L2Item.CRYSTAL_S) + if (activeChar.isInOlympiadMode() && lolz0r == L2Item.CRYSTAL_S80) + if (activeChar.isInOlympiadMode() && lolz0r == L2Item.CRYSTAL_S84) + { + activeChar.sendMessage("You cannot use S/S80/S84 grade equipment at the Grand Olympiad games."); + return; + } **EDIT** Ok first... code dont work... i participate in olympiad with s grade equipment and nothing stop me second i add ---> in useitem.java this code : + int lolz0r = item.getItem().getCrystalType(); + if (activeChar.isInOlympiadMode() && lolz0r == L2Item.CRYSTAL_S) + { + activeChar.sendMessage("You cannot use S grade equipment at the Grand Olympiad games."); + return; + } and in Olympiad.java this code ---> +import com.l2jserver.gameserver.templates.item.L2Item; import com.l2jserver.util.L2FastList; import javolution.util.FastMap; @@ -482,6 +483,14 @@ * return false; } */ + int weaponGrade = noble.getActiveWeaponItem().getCrystalType(); + int armorGrade = noble.getActiveChestArmorItem().getCrystalType(); + if (weaponGrade == L2Item.CRYSTAL_S || armorGrade == L2Item.CRYSTAL_S) + { + noble.sendMessage("You cannot join the grand olympiad games using S grade equipment."); + return false; + } + Everything is ok right?? but in olympiad allow s grade equipment !!! someone solve my problem ? please
  2. When i put this code ..... in line 106 say duplicate local variable item --> L2ItemInstance item=activeChar.getInventory().getItemByObjectId(_objectId); Edit Here my useitem.java (Original) --> http://pastebin.com/5WY4ZVKs
  3. Yes i do it ... but it say item cannot be resolved... int lolz0r = item.getItem().getCrystalType(); ^^^
  4. + + L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId); + if (activeChar.isInOlympiadMode() && (weaponGrade == L2Item.CRYSTAL_S || armorGrade == L2Item.CRYSTAL_S)) + { + activeChar.sendMessage("You cannot use S grade equipment at the Grand Olympiad games."); + return; + } Like this?? because i am confused... :S
  5. to 8ema einai oti idi exei ginei to sugkekrimeno code mono pou autos pou to ekane... den to exei fix... gt apla den mpainei sto mxc i den dinei simasia.... apo ti stigmi pou ftiaxneis kati koitas na einai prosegmeno kai sosto kai oxi na to paratas!! epeidi autos o code dimiourgi8ike gi auto to skopo... apla uparxei ena la8os...
  6. ee auto einai la8os omos... gt leei oti ftiaxtike gia ena paidi to opoio i8ele ena code gia tin olympiada na epitrepete na mpaineis mono me A grade kai kato...... toulaxiston den uparxei kanenas tetoios code se ena allo site pou na exete brei?? toulaxiston peite mou ena site pou exei pollous tetoious code na pao na psaxo.....
  7. It say---> item cannot be resolved int lolz0r = item.getItem().getCrystalType(); ^^^
  8. nothing change.... :S again error!! Noone else can help me????? just tell me other sites with java codes and will go to search!!!!
  9. // synchronized (activeChar.getInventory()) <--- line 103 **EDIT** When i try your code parizaki it say syntax error (x)
  10. Index: I:/workspace/L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/UseItem.java =================================================================== --- I:/workspace/L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/UseItem.java (revision 4167) +++ I:/workspace/L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/UseItem.java (working copy) @@ -97,6 +97,14 @@ if (activeChar.getActiveTradeList() != null) activeChar.cancelActiveTrade(); + + int weaponGrade = activeChar.getActiveWeaponItem().getCrystalType(); + int armorGrade = activeChar.getActiveChestArmorItem().getCrystalType(); + if (activeChar.isInOlympiadMode() && (weaponGrade == L2Item.CRYSTAL_S || armorGrade == L2Item.CRYSTAL_S)) + { + activeChar.sendMessage("You cannot use S grade equipment at the Grand Olympiad games."); + return; + } // NOTE: disabled due to deadlocks // synchronized (activeChar.getInventory()) I think in red color is the problem but i am not sure...
  11. Hey guys.... I try to put this java code in my server : http://www.maxcheaters.com/forum/index.php?topic=148257.0 and i put it :) But when i wear S grade armor/weapon and i take out after i cant wear again any armor/weapon/jewel and in gameserver window say: Client: [Character: Lougkraaaaaa[268479809] - Account: manos2864 - IP: 127.0.0.1 ] - Failed running: [C] 14 UseItem - L2J Server Version: ${l2j.revision} - DP Re vision: ${l2jdp.revision} ; null java.lang.NullPointerException at com.l2jserver.gameserver.network.clientpackets.UseItem.runImpl(UseIte m.java:103) at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run (L2GameClientPacket.java:93) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Some guys in greek section told me maybe i make something wrong.... and they try to help me with teamviewer but nothing happen!! Code had problem... Can someone fix this code pls!!! Or give me another code (i want olympiad only with A grade armor/weapons/jewels) I use l2jserver Epilogue (Compile)
  12. nai.... to eipa kai se 2 paidia apo to mxc ta idia mou legane oti mallon to exo balei la8os... alla prospa8isan kai oi idioi meso tou teamviewer alla oute kai autoi ta kataferan
  13. Loipon epeidi sto mxc den exei java code gia olympiada na mporeis na mpaineis mono me A grade armor/weapon/jewels.. i toulaxiston oxi sosto...p.x auto http://www.maxcheaters.com/forum/index.php?topic=148257.0 ektos ama to ftiaxoun... 8a sas zitousa na mou peite se poia site na pao na psaxo i toulaxiston poios to exei na mou to dosei!!! Xrisimopoio L2Jserver epilogue (compile)
  14. Ti exei pa8ei re paidia.. k den kanei teleport.... pos mporo na to ftiaxo auto?
  15. oxi oxi akribos to ekana.... 3-4 fores episis me boi8ise kai ena paidi apo to mxc kai mou eipe na to postaro sto forum oti 8elei fix
  16. aa ok :D ouff usixasa !!
  17. kai apo ti proekeipse ? prin douleue mia xara...
  18. kai ti prepei na kano gia na to ftiaxo??? bsk auto to problem proekeipse otan xanaperasa ton server apo tin arxi :S
  19. Na sas po re paidia mou dimiourgi8ike ena problem ston server.... idiaitera sta teleport otan pigano se mia gk eite custom eite i kanoniki tou l2 otan patao na me kanei teleport mou grafei sto gameserver(to para8uro) : No teleport destination with id:26 No teleport destination with id:1056 pigaino sto navicat... sto table teleport alla uparxoun ola teleports.... xerete gt mou to bgazei?
  20. oxi den mou eixe... mipos mporeis na mou to ftiaxeis?
  21. Re paidia sry gia to double post alla exoun perasei 8 ores apo tote pou to ekana ..... den mporei oute enas na me boi8isei me to problima pou exo ston server mou ????
  22. Help me!!! Xrisimopoio epilogue (l2jserver compile) ebala auto to java code http://www.maxcheaters.com/forum/index.php?topic=148257.0 k molis mpano mesa sto game kai bgazo tin vesper armor apo pano mou meta den mporo na xanabalo kamia armor oute a grade oute s grade oute vesper tpt oute weapon oute jewels.... koitazo sto gameserver(to para8uro) kai blepo na leei: Client: [Character: Lougkraaaaaa[268479809] - Account: manos2864 - IP: 127.0.0.1 ] - Failed running: [C] 14 UseItem - L2J Server Version: ${l2j.revision} - DP Re vision: ${l2jdp.revision} ; null java.lang.NullPointerException at com.l2jserver.gameserver.network.clientpackets.UseItem.runImpl(UseIte m.java:103) at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run (L2GameClientPacket.java:93) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) mipos kapoios mporei na ftiaxei to code??? na einai gia epilogue ?? Pls cheaters!!! kante to 8auma sas !! :D
  23. Locked the topic .... (den gamiet..)
×
×
  • Create New...