Ingame

Nick28

Активный пользователь
Пользователь
12 Фев 2005
842
0
16
Srv. Rev.: 73

///////////////////////////////////////////////////////////////////////////

Description:
This engine is for "Capture the Flag". You can create unlimited
amount of teams. All teams vs. all teams at the same time. The team
with the most score win and each player of it get the setted reward.
///////////////////////////////////////////////////////////////////////////

Features:
Even teams method configurable in extensions.properties


Options ingame part1(don't use this options if you already used an options of part2! after finish or abort you should/can use it again):
match name
match join location(announced on //tvt_join)
match description
npc id (choose custom npc because server unspawn npc by last spawn, have to be a L2Npc)
npc position (set the position of the npc to your current position)
reward (reward id)
reward amount (how much pieces of the seted reward should each player of the winning team get)
team add (adds a team to the match)
team color (color in first input box (for example: 0000FF), team name in second input box, set the color of the given team name)
team flag id (for each team a custom L2Npc!!!)
team pos (set the base position of the given team to your current position, flag is here to)
team remove (removes a team from the match)

Options ingame part2:
join (starts the joining period, event npc spawns)
teleport (teleport all participated players to their team spot and sit them down)
start (starts the event, let the players stand up)

Options ingame part3:
finish (finishes the event, reward winning team)
dump (output of all informations in server console, please use this before you click "join", "teleport", "start" and "finish" to check if all is going ok)


Player disconnect handling:
If shuffle mode is enabled and participated player disconnects in joininng period he have to participate again!


Using PvP skills in non PvP areas.
///////////////////////////////////////////////////////////////////////////

Rules:
A team can only score if there flag isn't taken!
When a player die there have taken a flag, the flag is immediatelly restored.
When a player has taken a flag and go to their own flag, the points of the team is increased and flag respawn.
///////////////////////////////////////////////////////////////////////////
CTF
 

Nick28

Активный пользователь
Пользователь
12 Фев 2005
842
0
16
Srv. Rev.: 13

///////////////////////////////////////////////////////////////////////////

Description:
This engine is for Team vs. Team pvp. You can create unlimited
amount of teams. All teams vs. all teams at the same time. The team
with the most kills win and each player of it get the setted reward.
///////////////////////////////////////////////////////////////////////////

Features:
Configuration for even teams inn extensions.properties
Participation via NPC
Players do not drop item if they die
Players do not loose expirience if they die
Admin/GM can handle if player can stand up
Players can attack/cast without pressign CTRL
If player die he is revived and teleported to team spot in 20 seconds
Players do not get karma or pvp flag
Players do not get PvP/PK points
Configure all settings via TvT panel(only one time needed)
On teleport players karma is set to 0 and original karma is saved
On teleport players color is set to team color and original color is saved
On finish saved karma is restored
On finish saved name color is restored
///////////////////////////////////////////////////////////////////////////

Usage:
Set you even teams option in extensions,properties:
TvTEvenTeams=NO|BALANCE|SHUFFLE

NO means: not even teams.
BALANCE means: Players can only join team with lowest player count.
SHUFFLE means: Players can only participate to tzhe event and not direct to a team. Teams will be schuffeled in teleporting teams.


In TvT Panel:
Set name(input1), description(input1), join location(input1)

npc(input1[id]), npc pos(no input)
reward(input1[id]), reward amount(input1)

team add(input1), team remove(input1)
team pos(no input), team color(input1,input2[color,teamname])

join(no input), start(no input)
finish(no input), abort(no input)

teleport(no input), sit force(no input), dump(no input)

1. Set all infos(first 4 button blocks)
2. Join
3. Teleport
4. Start
5. Finish

Now if you want to start the next TvT match you just have to start with
step 2! (After each restart you have to set the infos again)
///////////////////////////////////////////////////////////////////////////
TvT
 

Nick28

Активный пользователь
Пользователь
12 Фев 2005
842
0
16
.About "AIO4J":

=> From: Asynchronous IO for Java


1. What is Asynchronous IO for Java?

Asynchronous IO for Java (AIO4J) is a package that provides the capability to perform input and output (IO) on sockets and files asynchronously -- that is, where the Java application can request the operation but can continue doing useful work while the underlying system performs the operation. The application is informed of the operation's completion later.

This package provides Java applications with capabilities that are now available from most operating systems at the "C" API layer, such as IO Completion Ports on Windows. AIO4J provides Java application programmers with access to these capabilities, but in a way that is very much in keeping with Java idioms and styles of programming.

AIO4J can be used as a replacement for classic synchronous IO and also as an alternative to the New IO package introduced in Java 1.4. AIO4J aims to give performance and scalability that is better than either of these other packages. In particular, AIO4J aims to help Java server applications address what has been called the "C10K problem": building server applications that serve 10,000 clients simultaneously with good responsiveness and performance. This is very difficult with Java synchronous IO because most systems cannot sustain 10,000 threads, and Java New IO does not perform well with such a load.


2. How does it work?

AIO4J provides a standard Java package of function, layered above a native library that interfaces with the underlying capabilities of the operating system.

The package provides facilities that support a range of programming styles, including Blocking, Polling and Callbacks as techniques for getting notifications of the completion of Read or Write operations.

For Callbacks, the application can control the number and the type of threads that are used.


3. How to enable AIO4J ?

Go to the gameserver\config folder, use note to open server.properties, search for these lines:
#io type nio or aio4j
IOType = nio

change IOType = aio4j
AIO4J
 

Nick28

Активный пользователь
Пользователь
12 Фев 2005
842
0
16
Picture guide for Team versus Team Engine (By FBI Angent)

Guide created by Hero1711
Step1:

Open TvT panel by using //tvt.

Type the Name of the event into [input1] and press "Name" button.

Type the Decription of the event into [input1] and press "Decription" button.
For example "TvT Event".




Step2:

Open TvT panel by using //tvt.

Type the Location (for joining) of the event into [input1] and press "Join Location" button.

For example "Giran Town".




Step3:

Open TvT panel by using //tvt.

Type the Manager NPC ID (for joining) of the event into [input1] and press "NPC" button.

For example "8212".

After that, press "NPC Pos" button.




Step4:

Open TvT panel by using //tvt.

Type the Reward ID into [input1] and press "Reward" button.

For example "57" (Adena).

After that, type the Reward Amount into [input1] and press "Reward Amount" button.

For example "10000000" (10 milions Adena).




Step5:

Open TvT panel by using //tvt.

Type the 1st Team name into [input1] and press "Team Add" button.

For example "Team1".




Step6:

Open TvT panel by using //tvt.

Type the 2nd Team name into [input1] and press "Team Add" button.

For example "Team2".

..:: You can add more team if you want ::..




Step7:

Open TvT panel by using //tvt.

Type the 1st Team color (Hex color ID) into [input1] and 1st Team name into [input2] and press "Team Color" button.

For example "FFFF33" for "Team1".




Step8:

Open TvT panel by using //tvt.

Type the 2nd Team color (Hex color ID) into [input1] and 2nd Team name into [input2] and press "Team Color" button.

For example "33FFFF" for "Team2".




Step9:

Go to the pvp location. Choose the spawning location of 1st Team

For example: Coliseum Gate 1.

Open TvT panel by using //tvt.

Type the 1st Team name into [input1] and press "Team Pos" button.

For example "Team1".




Step10:

Go to the pvp location. Choose the spawning location of 2st Team (In the same area of 1st Team)

For example: Coliseum Gate 2.

Open TvT panel by using //tvt.

Type the 2nd Team name into [input1] and press "Team Pos" button.

For example "Team2".




Step11:

Go back the joining location (As you set from step 3).

For example: Giran Town.

Open TvT panel by using //tvt.

You will see the result of 10 steps above.




Step12:

Open TvT panel by using //tvt.

Press "Join" button, an announcement will be sent to all players and the Manager NPC will appear.




Step13:

Talk with the Manager NPC, you can join the event by pressing "Join" button.

========================================
NOTE: I'm using SHUFFLE mode, so that players will be randomly put in teams (With BALANCE mode, you need to choose which team to join).
You can change the mode in gameserver\config\extensions.properties
========================================




Step14:

After joining, talk with Manager NPC and press "Remove" button to remove you from the event.

After canceling the event, go can join again by talking with Manager NPC and follow step 13.




Step15:

When all players joined the event, open TvT panel by using //tvt and press "Teleport" button.




Step16:

After that, all participants will be teleported to their team location (As you set from step 9 and step 10).

NOTE:
All buffs will be removed and you can't move until the event starts (Sit Force).




Step17:

When all players are ready up, open TvT panel by using //tvt and press "Start" button to start the event.

NOTE:
You'll stand up (auto).
An announcement will be sent to all players.
Each enemy you killed, your team will obtain 1 point.
If you're dead, wait 20 seconds and you'll be sent to your team spawning location (As you set from step 9 and step 10).




Step18:

After a period (For example: 5 minutes), you want to end the event, open TvT panel by using //tvt and press "Finish" button to finish the event.

NOTE:
Two announcements will be sent to all players to tell them the winner team.
Winner team will obtain the reward (As you set from step 4).
All participants will be teleported to the Manager NPC.







Renew The Event:

After the old event finished, you can create the new one (Without setting again) by start from step 12.

Aborting The Event:

You can abort the event by press "Abort" button from TvT panel.

Two announcements will be sent to all players.

The Manager NPC will disappear.

All participants will be teleported to Manager NPC.





..:: Guide End ::..

Guide created by Hero1711
GUIDE
 
Последнее редактирование модератором: