Jump to content

Recommended Posts

Posted

Hello all,

 

another great share for you java devs :D This engine is still in BETA mode. Need to add many implants for perfection.

credits: Matim, Taco, Tortex

vesion: 2.2(BETA)

Write your ideas and complains about it if you want updates from me :) njoy.

 

 

If you watched the video you could see that there's Warning Count and Defence Count in the Crystal Manager.

Warning Count - the number of warnings your clan will receive if the crystal will be attacked by another clan.

Defence Count - If you buy 20 Counts for example and other clan attacks your conquered crystal the cystal will spawn 5 monsters 1 time and then youll have 19 defence count left...

 

CREATE A NEW INSTANCE IN -->> com.l2jfrozen.gameserver.model.actor.instance called L2CrystalInstance and paste there this source code:

Source Code: http://pastebin.com/eWuphfLU

NPC and sql data must be installed in your db:

 

-- ----------------------------

-- Table structure for `crystal_list`

-- ----------------------------

DROP TABLE IF EXISTS `crystal_list`;

CREATE TABLE `crystal_list` (

  `locationName` varchar(256) DEFAULT NULL,

  `mapId` bigint(20) DEFAULT NULL,

  `defenceCount` bigint(20) DEFAULT NULL,

  `warningCount` bigint(20) DEFAULT NULL,

  `statsEnabled` varchar(5) DEFAULT NULL,

  `warningEnabled` varchar(5) DEFAULT NULL,

  `defenceEnabled` varchar(5) DEFAULT NULL,

  `clanId` bigint(20) DEFAULT NULL

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

 

-- ----------------------------

-- Records of crystal_list

-- ----------------------------

INSERT INTO `crystal_list` VALUES ('BETA', '1', '0', '0', 'false', 'false', 'false', '268442077');

INSERT INTO `custom_npc` VALUES ('70016', '20639', 'Crystal', '1', 'Conquerable Location', '1', 'NPC.a_smith_MDwarf', '26', '52', '70', 'male', 'L2Crystal', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '55', '132', '', '0', '1', '0', 'LAST_HIT');

 

Posted

LOL really good!!

 

well this is like flag clans fight for this and that clan get this flag can get any extra buff or any othe price?>

 

Yes it is possible to have buffs or whatever you like. This engine is still in beta and in the future ill make it configurable because now im working on another nice mod for l2jfrozen and i need more experience in java. But dont worry ill try to keep this engine updated little by little... Thank you for your post :)

Posted

Good work man. But... have wrongs:

compile:
    [javac] Compiling 845 source files to C:\workspace\L2JFrozen\gameserver\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:38: error: package com.l2jfrozen.absolute.Configs does not exist
    [javac] import com.l2jfrozen.absolute.Configs.Configs;
    [javac]                                      ^
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:115: error: cannot find symbol
    [javac]                                 ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleRewardTask(_ownerClanId), Configs.Crystal_Reward_Rate);
    [javac]                                                                                                                       ^
    [javac]   symbol:   variable Configs
    [javac]   location: class L2CrystalInstance
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:494: error: cannot find symbol
    [javac]                 tb.append("You need <font color=\"LEVEL\">"+Configs.Crystal_Ability_Price+"</font> Clan Repotation Points to buy one.<br>");
    [javac]                                                             ^
    [javac]   symbol:   variable Configs
    [javac]   location: class L2CrystalInstance
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:582: error: cannot find symbol
    [javac]                         int minutes = ((Configs.Crystal_Reward_Rate / (1000*60)) % 60);
    [javac]                                         ^
    [javac]   symbol:   variable Configs
    [javac]   location: class L2CrystalInstance
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:710: error: cannot find symbol
    [javac]                 int price = count * Configs.Crystal_Ability_Price;
    [javac]                                     ^
    [javac]   symbol:   variable Configs
    [javac]   location: class L2CrystalInstance
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:755: error: cannot find symbol
    [javac]                                                 ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleWarningTask(), Configs.Crystal_Warn_Rate);
    [javac]                                                                                                                            ^
    [javac]   symbol:   variable Configs
    [javac]   location: class L2CrystalInstance
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:878: error: cannot find symbol
    [javac]                                              int minutes = ((Configs.Crystal_Reward_Rate / (1000*60)) % 60);
    [javac]                                                              ^
    [javac]   symbol:   variable Configs
    [javac]   location: class L2CrystalInstance.ScheduleRewardTask
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:883: error: cannot find symbol
    [javac]                             Announcements.getInstance().gameAnnounceToAll("Clan "+clanName+" got "+ Configs.Crystal_Owned_Item_Count+" event glittering medals for occupaying "+getLocationName()+" crystal");
    [javac]                                                                                                     ^
    [javac]   symbol:   variable Configs
    [javac]   location: class L2CrystalInstance.ScheduleRewardTask
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:884: error: cannot find symbol
    [javac]                                         warehouse.addItem("Crystal", Configs.Crystal_Owned_Item_Id, Configs.Crystal_Owned_Item_Count , null, null);
    [javac]                                                                      ^
    [javac]   symbol:   variable Configs
    [javac]   location: class L2CrystalInstance.ScheduleRewardTask
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:884: error: cannot find symbol
    [javac]                                         warehouse.addItem("Crystal", Configs.Crystal_Owned_Item_Id, Configs.Crystal_Owned_Item_Count , null, null);
    [javac]                                                                                                     ^
    [javac]   symbol:   variable Configs
    [javac]   location: class L2CrystalInstance.ScheduleRewardTask
    [javac] C:\workspace\L2JFrozen\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2CrystalInstance.java:885: error: cannot find symbol
    [javac]                                         ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleRewardTask(clan.getClanId()), Configs.Crystal_Reward_Rate);
    [javac]                                                                                                                                   ^
    [javac]   symbol:   variable Configs
    [javac]   location: class L2CrystalInstance.ScheduleRewardTask
    [javac] 11 errors
    [javac] 1 warning

BUILD FAILED

Help to fix plis

Posted

 

Awesome it fits good.

Btw i have 2 problems:

1st I don't understand how this Works "Crystal_Reward_Rate", i already tried with different values from 30 to 60030 (guessed it was 1'000,000 control)

2nd When i restart the game, all the bases are deleted, it could be nice to save them in the db so people doesn't bother getting new locations everytime the server gets rr.

 

Also, one suggestion, a command to tp to the conquer npc when it's under attack (or not) would be cool, i will try :D

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • ⭐⭐⭐⭐⭐L2Lusty 50x [Essence - High Five] Start 08 February⭐⭐⭐⭐⭐  L2Lusty Essence - High Five 50x Website: https://l2lusty.online/ Starts on 08/02/2025 16:00 London Time Rates: XP 50X, Adena 20X, Spoil 20X, Drop 20X, Max enchant +16 with 50% normal and 60% blessed, Chaos Event whit 3x Lcoins Drop 24h Website:  https://l2lusty.online/
    • Hi, I inviting you to join L2Einhovant server, lets give them chanse. It's x1 Classic with some bonus futures, no duals box, no wipes, buffs stores and etc. Grow up by litle steps together with the server population.   🔥 Why L2Einhovant? ✅ Authentic Classic Gameplay – No dual box, all classes inportant, no auto farm. ✅ Hardcore x1 Rates – A true test of your gameplay skill, level up stages. ✅ Active Community & Fair Administration – A server built for passionate players. ✅ Long-Term Stability – Grow your character in a world that lasts.   Gather your allies, sharpen your weapons, and prepare for an unforgettable journey. Join to our comunity now and prepare for start.   Open beta: 1th February. Grand opening: 7th February, 20:00 UTC+2.   🔗 Discord: https://discord.gg/zfKd4tU9N2
    • ElmoreLab Harbor - Eternal C1 x1: ✅ https://harbor.elmorelab.com ElmoreLab Harbor - Eternal C1 x1 - is an exclusive server of the Eternal C1 chronicles from the top project ElmoreLab Harbor.   A unique server of its kind, on which everyone will have maximum pleasure, such as oldschool players who dream of nostalgia and to feel the warmest and classic C1 chronicles, as well as experienced players who are tired of thousands unbalanced servers of late chronicles. Due to the professional corrections of the balance system and the HONEST gameplay system - on this server, EVERY player will feel like in their own, warm and cozy Harbor C1. Let's return to the origins of L2 - back to 2004 in C1! ❤️   ⭐ Server characteristics:   STRICTLY 1 window, NO BOXES Bans for RMT and bots/cheats No donations with benefits Unique and high-quality PTS-build from Master Toma Professional corrections and full class-balance Reworked economy and closed all abuses Improved animations and all aspects of the game Exclusive HD-client with high-quality textures Experienced administration and management Fixed all bugs, geodata, exploits and holes Maximum sociality due to the 1-box system Discovering, exploring and researching Big online International server Nostalgia and oldschool-feelings   Rates: x1 Server start: 14.02.2025   The server is at the final stages of development and preparation for release. Information on the server will be updated, soon the patchnotes and changes/edits will be posted. Don't miss the legendary and epic experience on the best server in the last 20 years! ❤️ Join our C1-forum with a lot of information about server and active discussions.   ⭐ Website: https://harbor.elmorelab.com   ✅ Forum: https://forum-harbor.elmorelab.com   💥 Telegram: https://t.me/l2harbor https://t.me/l2harbor_chat   ⚡ Discord: https://discord.gg/harborelmorelab
    • yeah ok, if you say what is fuctional 100% i can't say something different 😛  but if someone find hard to compile it or get vs and all that things i have here one more simple way here to put overlay in your own server or to change your window name with few money.
  • Topics

×
×
  • Create New...