Jump to content

DnR

Members
  • Posts

    737
  • Credits

  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    0%

Everything posted by DnR

  1. lol,import for l2item doesnt exist either.import com.l2jserver.gameserver.templates.item.L2Item; Revert my previous post and add the import.
  2. An diavasete to first post kala,prepei na arxisete na katalavainete oti oi ellines einai autoi pou ftiaxnoun ta xeirotera "games". Apla,exoume ta megalytera noobakia ston kosmo,dustuxws... Servers tou style paliwn servers px. njoy,fgames,mafia,core ta lene ola.
  3. Instead of this:if (lolz0r == L2Item.CRYSTAL_S || lolz0r == L2Item.CRYSTAL_S80 || lolz0r == L2Item.CRYSTAL_S84) try this:if (lolz0r == L2Item.CRYSTAL_S) Compile,login to check if it works and i ll modify it for s80 and s84.
  4. Add the import for l2iteminstance in Olympiad.java. Multiple markerS? Oo?It works normally for me... Add the import i told you,and check it again.
  5. Not sure about epilogue,try this: import com.l2jserver.Config; import com.l2jserver.gameserver.GameTimeController; +import com.l2jserver.gameserver.model.olympiad.Olympiad; Private int _object...you can add it here: public class Olympiad { private int _objectId; protected static final Logger _log = Logger.getLogger(Olympiad.class.getName()); protected static final Logger _logResults = Logger.getLogger("olympiad"); Has problem?what do you mean?
  6. Try this, UseItem.java import net.sf.l2j.Config; +import net.sf.l2j.gameserver.Olympiad; import net.sf.l2j.gameserver.handler.IItemHandler; L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId); if (item == null) return; + int lolz0r = item.getItem().getCrystalType(); + if (activeChar.isInOlympiadMode() || Olympiad.getInstance().isRegisteredInComp(activeChar) || +activeChar.getOlympiadGameId() > 0) + { + if (lolz0r == L2Item.CRYSTAL_S || lolz0r == L2Item.CRYSTAL_S80 || lolz0r == L2Item.CRYSTAL_S84) + { + activeChar.sendMessage("You may only use items up to Grade A in the Grand Olympiad Games."); + return; + } + } Olympiad.java public class Olympiad { /** * * @author ascharot * */ + private int _objectId; private class OlympiadGameTask implements Runnable { public L2OlympiadGame _game = null; if (!_inCompPeriod) { sm = new SystemMessage(SystemMessageId.THE_OLYMPIAD_GAME_IS_NOT_CURRENTLY_IN_PROGRESS); noble.sendPacket(sm); return false; } + L2ItemInstance item = noble.getInventory().getItemByObjectId(_objectId); + int lolz0r = item.getItem().getCrystalType(); + if (lolz0r == L2Item.CRYSTAL_S || lolz0r == L2Item.CRYSTAL_S80 || lolz0r == L2Item.CRYSTAL_S84) + { + noble.sendMessage("You cannot use S grade equipment at the Grand Olympiad games."); + return false; + }
  7. Maaan,this variable is few lines below,it alrdy exists,dont add it again! Just add the code below that line. >_> if (activeChar.getActiveTradeList() != null) activeChar.cancelActiveTrade(); // NOTE: disabled due to deadlocks // synchronized (activeChar.getInventory()) // { L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId); if (item == null) return; + 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; + } if (item.isWear()) { // No unequipping wear-items return; }
  8. This one is few lines below,thats what i told him.
  9. Add it below this: L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId);
  10. Change this: if (activeChar.isInOlympiadMode() && (weaponGrade != null || armorGrade != null) To: if (activeChar.isInOlympiadMode() && (weaponGrade != null || armorGrade != null)) My fault :P
  11. Try this: int weaponGrade = activeChar.getActiveWeaponItem().getCrystalType(); int armorGrade = activeChar.getActiveChestArmorItem().getCrystalType(); - if (activeChar.isInOlympiadMode() && (weaponGrade == L2Item.CRYSTAL_S || armorGrade == L2Item.CRYSTAL_S)) + if (activeChar.isInOlympiadMode() && (weaponGrade != null || armorGrade != null) + { + if (weaponGrade == L2Item.CRYSTAL_S || armorGrade == L2Item.CRYSTAL_S)) { activeChar.sendMessage("You cannot use S grade equipment at the Grand Olympiad games."); return; } + }
  12. Can you post the code from your UseItem here?
  13. An 8es zita to java code pou 8es kai mporei kapoios apo dw na to ftiaksei gia sena,an dn einai kati duskolo.
  14. Feature implemented,requesting lock 8)
  15. You will need a dekarma for spamming.....
  16. Guys,when i do transform,the removed skills' reuse time keeps passing. Is it possible to store cooldowns like log out?
  17. I was wondering,would much usage of floodprotector affect server somehow? I mean that a player keeps flooding and protector gets activated many times.
  18. Basika ego pou xw kamael,core support gia to multisell exei kai to Npc kai to merchant.
  19. Hellbound can be the best one with the current implementions. Most ppl knew HB as the server with working skills up to IL.
  20. Its cool but you have made an orthographical mistake. Its Raid Boss not Raib Boss.
  21. Na s pw,to xeis kairo to problima i simera?gt simera exei 29 ara logika 8a ebgainan oi heroes. An den yparxei problima ston server logika aurio 8a doulevei.
  22. Mporeis na kaneis paste ta configs tis oly toulaxiston edw? Btw,auto to item pou les s dinei noblesse status i mono to Blessing of Noblesse to skill?
  23. http://www.pccomputerease.com/l2-c6-full-textures-rapidshare.html download the textures and paste them in LineageII folder.
  24. As i see,there must be something wrong in Textures. Tried reinstalling? Or find this file somehow: L2Font-e.SmallFont-e
  25. What version are they made for?
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock