Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Announcements / Re: Forum Announcements
« Last post by Sido on February 11, 2017, 05:53:12 AM »
Planned maintenance on the following days will be done so expect up and down periods.
82
Announcements / Re: Forum Announcements
« Last post by Sido on January 21, 2017, 09:08:24 AM »
Maintenance period is over.
83
Announcements / Re: Forum Announcements
« Last post by Sido on January 13, 2017, 11:42:33 PM »
Theme selection got restored for everyone as aCis v2.
Planned maintenance on the following days will be done so expect up and down periods.
84
Announcements / Re: Last aCis updates
« Last post by Tryskell on January 10, 2017, 12:05:23 AM »
Changeset 365 (652)

Dimensional Rift, AbstractGroup / Party / CommandChannel, Scheme Buffer, Misc


Dimensional Rift
   - cleaned up (delete _deadPlayers, unify writting style, delete single use methods).
   - Fix an issue with _isBossRoom not being fed.
   - L2 legacy website : "When the party changes (such as leaving or banning from party) in the Dimensional Rift, the party will be transported to the waiting room."
   - Remove all custom messages.
   - Fix a ConcurrentException on _revivedInWaitingRoom.
   
AbstractGroup / Party / CommandChannel
   - cleaning
      - enum generation, enforce types.
      - party leader reference is stored and not retrieved from .get(0) - avoid a rare IOOBE (probably occuring during leader transfer ?).
      - remove L2 prefix to Party and CommandChannel classes.
      - generate a package model.group.
      - Both Party and CommandChannel use at least the 2 initial parameters (leader / invited member type).
      - creation of AbstractGroup class, a layer shared between Party and CommandChannel.
   - Modify Party creation to be handled by RequestAnswerJoinParty instead of RequestJoinParty, which was one big exploit (party leader being considered positive to isInParty() for the whole duration of invite request - while there is no party yet created).
   - Fix "The party has dispersed" bug issue, generated if you let the invite run off (due to Party object being created and immediately deleted - main reason of the above rework), ty Marcatu.
   - Party requestor is now checked regarding pending request (he wasn't before, so you could request a trade and a party invite).
   - Strategy Guide item is now consumed on CommandChannel creation, and not simply checked. Drop getPledgeClass() check (plain wrong) and item check (handled by creation) on CommandChannel invitation.
   - Addition of ONLY_A_PARTY_LEADER_CAN_TRANSFER_ONES_RIGHTS_TO_ANOTHER_PLAYER message.
   - Drop ALT_LEAVE_PARTY_LEADER config. Apply default party disband case to all scenarios.

Scheme Buffer
   - Available buffs are ordered as listed on XML. Ty Sahar.
   - Fix a NumberFormatException on schemes restore. Ty Sahar.

Misc
   - Fix a MysqlDataTruncation on punish_timer. Ty katara.
   - Fix TARGET_AREA_SUMMON skills type. Ty x-user.
   - Cleanup FishingSkill skillhandler, fix the penalty issue. Ty Ailierynn.
   - Introduce isUsingServerSideName / isUsingServerSideTitle to fix client/custom NPC names/titles.
   - Fix previous revision regarding AURA type skills registration on NPC templates. Ty Sahar.
   - Enforce "party size" (2/9 min/max) for Four Sepulcher and Festival of Darkness configs. Cleanup "beyond exotic" 1-man case Four Sepulcher.
   - Merchant mustn't have the option to trade Shadow Weapon coupons, only grand masters are. Refresh all Shadow Weapon related HTMs. Ty Anarchy for report.
   - Release transaction (requestor/onTransactionRequest) as fast as possible (before you were stucked in middle of a transaction on whatever returning check...). All cases are edited.
   - To keep an harmony, party duels are canceled if party is modified (added/removed member now cancels it, before only leader drop was leading to that scenario) - Dimensional Rift rule.
   - //party_info admincommand cleanup.
   - Cleanup Quest getPartyMembers / getPartyMembersState methods.
85
Guides / [GUIDE] Java keywords (public, protected, private, final, static)
« Last post by Tryskell on January 04, 2017, 10:42:28 PM »
A simple and basic Java lesson, keywords ! This topic can be fed or edited overtime.

PS : in this topic, an object is considered either a variable, a method, or a class.

Keywords meaning and main uses

public/protected/private
It defines the visibility of the object. Public means it is reachable by any class, protected means there must have a link between classes, private means it's an internal object, usable only by this object (not reachable by children).

Main use : define and limit the scope of an object, which help you to understand faster the purpose of the object.

final
The object can't be re-allocated ; for a method, it means you can't override it, for a variable such as int it means you can't edit the value anymore, for a List/Map it means you can't dump the object, or replace the object by another (you still can .clear() the data from it or affect the data ; you simply can't DUMP the object HashMap or replace it by another new HashMap<>()).

Main use : mostly used as a security valve, as it tells you than the object can't be re-allocated. So you're SURE the object, once allocated, stays allocated (no null check needed, etc). In case of method, you are sure than children don't override it.

static
The object is shared amongst all generated objects, which avoid to generate one reference per clone.

Main use : correctly used for variable case, can seriously decrease RAM consumption of an object. In case of a method, it is generally used for "commons" task, where all parameters used by the method are given by method parameters and not based on class content.

Misc informations
  • You can use keywords on class, method or variable.
  • The order of keywords got no impact.
  • Only the static keyword, if correctly used, got an impact on performances. Other keywords are more about readability/safety.
  • enum is considered static by default, you don't need to define that keyword.
86
Guides / [GUIDE] L2OFF GM Commands
« Last post by Rootware on December 28, 2016, 06:49:20 PM »
Notes for self and also if someone will be to use L2OFF server.

Admin
  • gmspeed [value] - set movement speed ONLY for self with value from [1 ... 5];
  • hide [on|off] - hide mode on/off. In hide mode many actions is not available;
  • kick [name] - kick character with name [name] from the server;
  • loadhtml [name] - load HTML with name [name] and open him in window;
  • ride [type] - possible next types: 0 - dismount (none), 1 - strider, 2 - wyvern;
  • setbuilder [name] [level] - set admin rights level [level] for character with name [name]. Rights: [1] - full rights;
  • undying [on|off] - on/off immortal mode. If enable, then HP will be reduced up to 0;

Bookmark
  • bk [name] - add admin bookmark with name [name]. If name not exists, then opens bookmark list. NOTE: don't understand spaces in name;

Character
  • setclass [id] - set class with [id] for target;
  • setparam [param] [value] - set parameter for target. Available parameters:
    • level [value] - setup [value] level;
    • social [value] - add reputation score;

Clan
  • create_pledge [name] - create clan with [name] for target;
  • set_pledge_level [clan] [lvl] - setting level [lvl] for clan with name [clan];

Effects
  • earthquake - effect quake of earth (3-5 seconds);

Events
  • eventmatch [param] - configure event;
  • show_eventsetting - show setting for event what defined in eventdata.ini;

Items
  • summon [id|name] [amount] - create item in the inventory of target by [id] or [name]. If [amount] not specified then 1;
  • summon2 [enchant] [id|name] - create item with enchant level [enchant] in the inventory of target by [id] or [name];

NPC
  • killnpc - kill NPC from target;

Pets
  • create_pet [index] [level] - create pet by index (see petdata.txt Gracia Final) with level [level];

Siege
  • attack [castle_id] [clan_name] - add clan with name [clan_name] to attackers for siege castle with [castle_id];

Skills
  • setskill [id] [level] - give a skill with [id] and [level] for target;
  • set_skill_all - give all skills for target;

System
  • servername - name of server;
  • serverstat - information about gameserver (build date, elapsed time, protocol version, players, items, NPCs, etc);

Teleport
  • escape - analogue for //unstuck. Cast time ~5 minutes;
  • home - you will be teleported to the west side of Talking Island Village;
  • recall [name] - summon to you character with name [name];
  • teleport x y z - teleport by coordinates;
  • teleportto [name] - go to player with name [name];

* Commands list will be updated continuously.
87
Announcements / Re: Forum Announcements
« Last post by Sido on December 13, 2016, 05:16:04 PM »
Between 13 December and 13 January you can choose to use any of our Lineage 2 Theme from >HERE<
88
Announcements / Re: Last aCis updates
« Last post by Tryskell on December 11, 2016, 08:39:39 PM »
Changeset 364 (636)

Scheme buffer v2, Auctioneer, Misc


Tryskell, the scheme buffer v2 !
   - skill names and descriptions, hold by XML rather than Config.
   - less panels, easier to use.
   - paging system to avoid scrolling effect.
   - no "blinking" effect.
   - Drop of BufferMaxSkillsPerScheme config (now uses player max).

Auctioneer instance is reworked :
   - bypasses work anew (caused by getCastle() refactor)
   - fix "Back" button on Bidders list (ty Anarchy)
   - Cleanup and more safety (ConcurrentHashMap, less calls of .get(), everything is try/catch, return is correctly used, paging system is refreshed).   
   
Misc
   - Fix Lucky skill acquisition. Ty Ailierynn for report.
   - Valakas doesn't use a dummy anymore which lighten the code and avoid to bug custom raidboss checkers showing wrong location.
   - Revert interaction range edit (100 is buggy, return back to 150) until someone decides to care about all types of range in one throw.
   - Fix Broadcasting Tower knownlist issue. Methods are sync-ed with observe olympiad. Drop _observerMode boolean (can be guessed with clever use of _savedLocation). inObserveMode() renamed for isInObserveMode().
   - Fix the "unhandled slot type" issue. Ty Sahar.
   - Addition of Flame/Control infos on castle admin panel.
   - Wrath skill enchant route fix. Ty Sahar.
   - Olympiads : No forced stand up on L2OFF.
   - Olympiads : You are teleported back to a random town location, not your saved location.
   - teachTo is slightly edited ; avoid to generate 6k empty ArrayList and drop most of getters. Ty katara.
   - Rework the NPC skills holding system, avoid to generate 28k empty ArrayList.
   - Rework L2TamedBeast (cleaner version).
   - Fix previous revision regarding GrandBoss using returnHome. Ty Sahar.
   - Fix social/abnormal admin panels/commands. Ty katara for report.

Ty to SweeTs for buffer design and Sahar for XML definition.

89
Crappy servers / Re: L2 Order VS Chaos returns: 25/11 !
« Last post by sahar on November 26, 2016, 01:30:45 PM »
Server started succesfully, dozens of players, don't miss it out!
http://l2ovc.com

twitch: http://www.twitch.tv/l2ovc
photos: http://www.facebook.com/L2OvC/posts/1482338331780263
90
Crappy servers / Re: L2 Order VS Chaos returns: 25/11 !
« Last post by sahar on November 25, 2016, 09:51:13 AM »
Today!
Pages: 1 ... 7 8 [9] 10