Jump to content

melron

Legendary Member
  • Posts

    1,399
  • Credits

  • Joined

  • Last visited

  • Days Won

    28
  • Feedback

    0%

Everything posted by melron

  1. what to say... as i said its working perfect for me (acis)
  2. working perfect else if (parameters.contains("cov")) { if (player.destroyItemByItemId("Buff", 11010, 3, player, true)) { player.getInventory().destroyItemByItemId("Consume",11010, 3, player, null); player.sendMessage("SYS: 3 of your Vote Tickets have been consumed."); player.broadcastPacket(new InventoryUpdate()); MagicSkillUse mgc = new MagicSkillUse(player, player, 1363, 1, 1, 1); SkillTable.getInstance().getInfo(1363, 1).getEffects(player,player); player.broadcastPacket(mgc); player.sendMessage("Your strength is improved due to Chant of Victory effects!"); } else { player.sendMessage("You don't have enough vote tickets."); return; } }
  3. Hello guys, Can someone explain me how can i add delay for example in craft? I want a delay of X seconds before u can craft again. thanks!
  4. Not exactly... What about if the char havent clan? :D npc will not work cause clan ...
  5. Δοκίμασε αυτό Edit: Δες της SweeTs τον τελευταίο κώδικα if (player.getClan() != null) { html.replace("%Clan%", player.getClan().getName()); html.replace("%Alliance%", activeChar.getClan().getAllyId() == 0 ? "<font color=FF0000>No</font>" : activeChar.getClan().getAllyName()); } else { html.replace("%Clan%", "<font color=FF0000>No</font>"); html.replace("%Alliance%", "<font color=FF0000>No</font>"); }
  6. So your main problem wasnt problem at all... You just wanted to chance the msg ...
  7. your lines are fine, check again what u edited ...
  8. can you post your java file here? (use code) Edit: with what scroll you enchanting?
  9. @ RequestEnchantitem.java find if (rndValue < chance) and check with these lines if (rndValue < chance) { if (item.getOwnerId() != activeChar.getObjectId()) { activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); return; } if (item.getLocation() != L2ItemInstance.ItemLocation.INVENTORY && item.getLocation() != L2ItemInstance.ItemLocation.PAPERDOLL) { activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); return; } if (item.getEnchantLevel() == 0) { sm = new SystemMessage(SystemMessageId.S1_SUCCESSFULLY_ENCHANTED); sm.addItemName(item.getItemId()); activeChar.sendPacket(sm); } else { sm = new SystemMessage(SystemMessageId.S1_S2_SUCCESSFULLY_ENCHANTED); sm.addNumber(item.getEnchantLevel()); sm.addItemName(item.getItemId()); activeChar.sendPacket(sm); } item.setEnchantLevel(item.getEnchantLevel() + Config.CUSTOM_ENCHANT_VALUE); item.updateDatabase(); }
  10. U're right! forgot to add the market sql... Updated.
  11. run it and see bro :P thats why i give the code
  12. ofc this can be like merchant with farm items etc but , Is there any rule about donation npcs service and cant call it donation npc? I can see posts with title like this and inside there are only htmls with the ways of donation pf... Cmon... say something good, as i said im not the owner of this npc and idk how to change the delivery way... p.s Title changed ><
  13. Hello MXC! I want to share with you one Custom Merchant (Its for jfrozen) The first share was by claww -> share But its not his npc as he said :o Finally with my work this npc works fine (check the original to see the changes :P). Features: Donate List: Weapons/Armors/Rings of your choice with enchantment of your choice too, is configurable Armors/Jewels set +16 , configurable Character Improve Gain Noblesse (by checking) Transfer Augmentation skill & attributes from one weapon to other! (Item must have skill) Transfer enchant from one weapon/armor/jewel to other! Change Name / Color Name / Color Title (by checking) Enchanter : Accepting 3 types (Weapon/Armor/Jewel) and plus 1 enchant! All the features need Donate Coin Fixed Removed useless ids in Donate List & added correct Ids Augment transfer many checks Added noblesse check Enchant transfer max limit Name/Colors ids of colors Finally all html dialogs Have also Clan Improve system but i deleted this because had many bugs and i have no idea how to fix them all (but im trying :D). The currency donate item is adena for all features. (Configurable) Video Link Download Let me know if you find any bugs ( will be for sure ), I can help with that! Updated: Item Market The second share from the same guy is the Item Market: Its a npc where you can add an item for sell in the market like interlude + chronicles Fixed: All html dialogs Removed adena,goldbars,Q-items ++ as items for sell Fixed same items can be added to list from other players Added custom htmls files for easy edit Reminder (message) to the item owner when the item sold Fixed many bugs i found (should have more) also not suggested for live servers without check . Video Link Download Link (l2jfrozen) Download Link (l2jacis) Gredits for adaption to acis : Williams
  14. Hello guys, I need your opinion about my first game that i made in 2 days with full work in dev c ++... I just want to find if im coding good and if no, what i should change to be better... http://pastebin.com/d8vSExKm
  15. Yeah u right. i think he just wanna find how to do the check for the item ... cause he saw a few lines before : if (activeChar.getRace().ordinal() == 2) { final L2Skill skill = SkillTable.getInstance().getInfo(294, 1); if (skill != null && activeChar.getSkillLevel(294) == 1) { if (GameTimeController.getInstance().isNowNight()) { final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.NIGHT_EFFECT_APPLIES); sm.addSkillName(294); sendPacket(sm); } else { final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.DAY_EFFECT_DISAPPEARS); sm.addSkillName(294); sendPacket(sm); } }
  16. he just want to take buff in enter not add skill :happyforever:
  17. if (activeChar.getInventory().getItemByItemId(9819) != null) { final L2Skill skill = SkillTable.getInstance().getInfo(294, 1); if (skill != null && activeChar.getSkillLevel(294) == 1) { if (GameTimeController.getInstance().isNowNight()) { final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.NIGHT_EFFECT_APPLIES); sm.addSkillName(294); sendPacket(sm); } else { final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.DAY_EFFECT_DISAPPEARS); sm.addSkillName(294); sendPacket(sm); } }
  18. vre an pesei $$..... oti einai duskolo einai... XAXAXA Power Shot ftw! WTFF
×
×
  • Create New...