Initial MSVC 2008 projects workspace
This commit is contained in:
142
out/dist_L2Detect/L2Detect.ini
Normal file
142
out/dist_L2Detect/L2Detect.ini
Normal file
@@ -0,0 +1,142 @@
|
||||
# First - configure Lineage2 game protocol version and L2 Client version.
|
||||
# Supported versions are:
|
||||
# * Chaotic Throne 1 - The Kamael = 0
|
||||
# * Chaotic Throne 1.5 - Hellbound = 1
|
||||
# * Chaotic Throne 2 - Gracia (Part 1) = 2
|
||||
# * Chaotic Throne 2.2 - Gracia Part 2 = 3
|
||||
# * Chaotic Throne 2.3 - Gracia Final = 4
|
||||
# * Chaotic Throne 2.4 - Gracia Epilogue = 5
|
||||
# default is 4 (CT2.3 Gracia Final)
|
||||
Lineage2Version = 5
|
||||
Lineage2ClientVersion = 5
|
||||
|
||||
|
||||
# ===============
|
||||
# Network setup
|
||||
# ===============
|
||||
|
||||
# =======================
|
||||
# Listen ports setup
|
||||
# * Ports on which program will bind listen sockets - local address
|
||||
FakeListenLoginIP = 127.0.0.1
|
||||
FakeListenLoginPort = 2106
|
||||
FakeListenGameIP = 127.0.0.1
|
||||
FakeListenGamePort = 9878
|
||||
|
||||
# ========================
|
||||
# Forward connection to
|
||||
# * Where to redirect login connection - IP/hostname & port
|
||||
RealLoginServerIP = 212.158.160.162
|
||||
RealLoginServerPort = 2106
|
||||
|
||||
# You may force radar to redirect connection to specified game server IP:port.
|
||||
# To do this, you must set BOTH ForceGameServerIP and ForceGameServerPort.
|
||||
# if ForceGameServerIP == "" or ForceGameServerPort == 0 then feature is diabled.
|
||||
# ===========================
|
||||
# Force choose game server by IP:port
|
||||
# * independently of selection in server list window during login
|
||||
# * if not set (empty string) - use selected server
|
||||
ForceGameServerIP =
|
||||
|
||||
# ===========================
|
||||
# Force choose game server by IP:port
|
||||
# * independently of selection in server list window during login
|
||||
# * if = 0 - use selected server
|
||||
ForceGameServerPort = 0
|
||||
|
||||
# ===========================
|
||||
# Catch following game traffic port in INGAME mode
|
||||
IngameGameServerPort = 7777
|
||||
|
||||
# =========================================================================
|
||||
# Logging Setup
|
||||
# =========================================================================
|
||||
# =========================================================================
|
||||
# Warn messages level printed to stdout
|
||||
# 0 - no messages to screen
|
||||
# 1 - errors only ( Recommended :) )
|
||||
# 2 - errors, warnings
|
||||
# 3 - errors, warnings, AI
|
||||
# 4 - errors, warnings, AI, packet names
|
||||
# 5 - errors, warnings, AI, packet names, debug messages
|
||||
# 6 - errors, warnings, AI, packet names, debug messages, packet dumps
|
||||
# Default: 1; it cannot be <0, but can be very big number. [0..0xFFFFFFFF]
|
||||
WarnMessageLevel = 3
|
||||
|
||||
# =========================================================================
|
||||
# Warn about unknown packets? 1 - yes, 0 - no; (default: 0, no)
|
||||
WarnUnknownPacketsToStdout = 0
|
||||
|
||||
# ==========================================================================
|
||||
# Full dump unknown packets to log? 0-no, 1-yes (Default: 0, not display)
|
||||
DumpUnknownToStdout = 0
|
||||
|
||||
# ====================================
|
||||
# Enable or disable logging of Game Server packets 0-disable, 1-enable (Default: 0, disable)
|
||||
LogGamePackets = 0
|
||||
|
||||
# ====================================
|
||||
# File name prefix for log file with game server packets log
|
||||
# (file name will look like prefix_XXXXXXXX.txt, where XXX-current date/time unix timestamp)
|
||||
# Default: prefix_
|
||||
LogGameFileNamePrefix = trade_
|
||||
|
||||
# ==========
|
||||
# Hacks!!!!
|
||||
# ==========
|
||||
|
||||
# ========================================
|
||||
# Enable or disable game packets modifying
|
||||
# - If disabled (0), only passive sniffing if possible, NO ANY HACKS will work
|
||||
# - If enabled (1), packet-level hacks WILL work. This setting is REQUIRED to be set to ENABLED
|
||||
# if you want any hacks to work
|
||||
# - 0-disable, 1-enable; (Default: 0, disable, passive SNIFFING ONLY)
|
||||
EnableModifyGameTraffic = 1
|
||||
|
||||
# !!!!! Any hacks below will not work, if EnableModifyGameTraffic is set to 0 !!!!!
|
||||
|
||||
# =====================================================================
|
||||
# * Override game protocol version: change game protocol version number
|
||||
# * in C->S ProtocolVersion packet to given number.
|
||||
# * Value: 0 - disable this; any other number greater than 0: override to this number
|
||||
# * Default: 0
|
||||
OverrideGameProtocolVersion = 148
|
||||
# Help on protocol versions (Official server):
|
||||
# - T1 Kamael - 828
|
||||
# - T1.5 Hellbound - 831 ?
|
||||
# - T2 Gracia live - 851
|
||||
# - T2.2 Gracia Part 2 - 12-17
|
||||
# - T2.3 Gracia Final - 83-87
|
||||
# - T2.4 Gracia Epilogue - 146
|
||||
|
||||
# If set to 1, L2Detect will send reply to standard L2J GameGuard query
|
||||
# by itself, so it will be possible to play with GameGuard disabled
|
||||
# on private servers where GameGuard is required.
|
||||
# NOTE: L2Detect will NOT reply to unknown queries! You cannot be sure in it on official servers.
|
||||
# (Default: disabled)
|
||||
ReplyL2JGameGuardQuery = 1
|
||||
|
||||
# If set to 1, you know that server is using G.Epilogue protocol 148 and client
|
||||
# is using G.Epilogue protocol 146; this setting will enable protocol conversion
|
||||
# (converting some packets like ItemList, etc) between server and client, allowing
|
||||
# clent with protocol 146 to play on server with protocol 148.
|
||||
GraciaEpilogueProtocol_148_hacks = 1
|
||||
|
||||
# Fixes L2Walker wrong or old packets
|
||||
L2Walker_DropRequestGMList = 1
|
||||
L2Walker_FixMoveBackwardToLocation = 1
|
||||
L2Walker_FixChangeWaitType2 = 1
|
||||
L2Walker_InjectStatusUpdate = 1
|
||||
|
||||
# Enable/disable game listener thread priority above normal. Try changing this, if you have comp. lags...
|
||||
# default: 0, disabled
|
||||
ThreadProirityRaiseEnable = 1
|
||||
|
||||
# Enable/disable invisible GM tracking
|
||||
# default: 1, enabled
|
||||
InvisGMTrackEnable = 0
|
||||
|
||||
# Invisible GM display speed
|
||||
# default: 400, as //gmspeed 4
|
||||
InvisGMSpeed = 250
|
||||
|
BIN
out/dist_L2Detect/L2Detect_colors.ini
Normal file
BIN
out/dist_L2Detect/L2Detect_colors.ini
Normal file
Binary file not shown.
8
out/dist_L2Detect/L2Detect_folAsi.ini
Normal file
8
out/dist_L2Detect/L2Detect_folAsi.ini
Normal file
@@ -0,0 +1,8 @@
|
||||
m_follow_enable=0
|
||||
m_follow_dist=200
|
||||
m_follow_name=Gehenna
|
||||
m_follow_only_in_party=1
|
||||
m_assist_enable=0
|
||||
m_assist_name=Gehenna
|
||||
m_assist_only_in_party=1
|
||||
m_assist_dont_ally=1
|
42
out/dist_L2Detect/L2Detect_healItems.ini
Normal file
42
out/dist_L2Detect/L2Detect_healItems.ini
Normal file
@@ -0,0 +1,42 @@
|
||||
# Format:
|
||||
# Item Name=ItemID;reuseDelay(milliSeconds);priority;activatePercent
|
||||
# No spaces between '=', ';' !
|
||||
# priority is number between 1 and 100, determines which item will be used first
|
||||
# priority 0 means 'do not use this item' :)
|
||||
# ActivatePercent is stat value in percent from maximum, when this item can be used
|
||||
|
||||
[CP healers]
|
||||
CPHealEnable=1
|
||||
Elixir of CP (S-Grade)=8639;300000;100;10
|
||||
Greater CP Potion=5592;1000;90;95
|
||||
CP Potion=5591;1000;80;98
|
||||
Elixir of CP (D-Grade)=8635;300000;0;20
|
||||
Elixir of CP (C-Grade)=8636;300000;0;30
|
||||
Elixir of CP (B-Grade)=8637;300000;0;30
|
||||
Elixir of CP (A-Grade)=8638;300000;0;30
|
||||
Elixir of CP (No Grade)=8634;300000;0;20
|
||||
|
||||
[HP healers]
|
||||
HPHealEnable=1
|
||||
Elixir of Life (S-Grade)=8627;300000;100;40
|
||||
Quick Healing Potion=1540;500;90;60
|
||||
Greater Healing Potion=1539;14000;90;98
|
||||
Healing Potion=1061;14000;50;98
|
||||
Lesser Healing Potion=1060;14000;10;98
|
||||
Elixir of Life (D-Grade)=8623;300000;0;35
|
||||
Elixir of Life (C-Grade)=8624;300000;0;40
|
||||
Elixir of Life (B-Grade)=8625;300000;0;40
|
||||
Elixir of Life (A-Grade)=8626;300000;0;40
|
||||
Elixir of Life (No Grade)=8622;300000;0;30
|
||||
|
||||
[MP healers]
|
||||
MPHealEnable=1
|
||||
Mana Potion=728;5000;80;90
|
||||
Mana Drug=726;15000;0;98
|
||||
Elixir of Mental Strength (No Grade)=8628;300000;0;50
|
||||
Elixir of Mental Strength (D-Grade)=8629;300000;0;50
|
||||
Elixir of Mental Strength (C-Grade)=8630;300000;0;50
|
||||
Elixir of Mental Strength (B-Grade)=8631;300000;0;50
|
||||
Elixir of Mental Strength (A-Grade)=8632;300000;0;50
|
||||
Elixir of Mental Strength (S-Grade)=8633;300000;0;50
|
||||
|
BIN
out/dist_L2Detect/L2Detect_items.sqlite3db
Normal file
BIN
out/dist_L2Detect/L2Detect_items.sqlite3db
Normal file
Binary file not shown.
BIN
out/dist_L2Detect/L2Detect_mobs.sqlite3db
Normal file
BIN
out/dist_L2Detect/L2Detect_mobs.sqlite3db
Normal file
Binary file not shown.
121
out/dist_L2Detect/L2Detect_quickTarg.ini
Normal file
121
out/dist_L2Detect/L2Detect_quickTarg.ini
Normal file
@@ -0,0 +1,121 @@
|
||||
[main]
|
||||
policy=2
|
||||
vk_key=81
|
||||
max_dist=2000
|
||||
[opts]
|
||||
dont_target_dead=1
|
||||
dont_target_party=1
|
||||
dont_target_clan=1
|
||||
dont_target_ally=1
|
||||
target_only_cw=0
|
||||
allow_target_pk=1
|
||||
allow_target_flagged=1
|
||||
announce_target_in_party_chat=1
|
||||
[class_pri]
|
||||
0=1
|
||||
1=1
|
||||
2=50
|
||||
3=20
|
||||
4=2
|
||||
5=2
|
||||
6=2
|
||||
7=3
|
||||
8=50
|
||||
9=60
|
||||
10=1
|
||||
11=1
|
||||
12=20
|
||||
13=30
|
||||
14=20
|
||||
15=40
|
||||
16=200
|
||||
17=10
|
||||
18=1
|
||||
19=1
|
||||
20=10
|
||||
21=10
|
||||
22=10
|
||||
23=30
|
||||
24=20
|
||||
25=1
|
||||
26=1
|
||||
27=50
|
||||
28=20
|
||||
29=20
|
||||
30=100
|
||||
31=1
|
||||
32=1
|
||||
33=1
|
||||
34=20
|
||||
35=1
|
||||
36=20
|
||||
37=10
|
||||
38=1
|
||||
39=1
|
||||
40=50
|
||||
41=40
|
||||
42=30
|
||||
43=60
|
||||
44=1
|
||||
45=1
|
||||
46=10
|
||||
47=1
|
||||
48=10
|
||||
49=1
|
||||
50=1
|
||||
51=10
|
||||
52=10
|
||||
53=1
|
||||
54=1
|
||||
55=20
|
||||
56=1
|
||||
57=20
|
||||
88=10
|
||||
89=10
|
||||
90=10
|
||||
91=10
|
||||
92=10
|
||||
93=10
|
||||
94=10
|
||||
95=10
|
||||
96=10
|
||||
97=500
|
||||
98=10
|
||||
99=10
|
||||
100=10
|
||||
101=10
|
||||
102=10
|
||||
103=10
|
||||
104=10
|
||||
105=400
|
||||
106=10
|
||||
107=10
|
||||
108=10
|
||||
109=10
|
||||
110=10
|
||||
111=10
|
||||
112=10
|
||||
113=10
|
||||
114=10
|
||||
115=10
|
||||
116=10
|
||||
117=10
|
||||
118=10
|
||||
123=10
|
||||
124=10
|
||||
125=10
|
||||
126=10
|
||||
127=10
|
||||
128=10
|
||||
129=10
|
||||
130=10
|
||||
131=10
|
||||
132=10
|
||||
133=10
|
||||
134=10
|
||||
135=10
|
||||
136=10
|
||||
[dist_pri]
|
||||
0:400:50
|
||||
400:600:30
|
||||
600:1000:10
|
BIN
out/dist_L2Detect/L2Detect_skills.sqlite3db
Normal file
BIN
out/dist_L2Detect/L2Detect_skills.sqlite3db
Normal file
Binary file not shown.
9
out/dist_L2Detect/L2Detect_soundAlerts.ini
Normal file
9
out/dist_L2Detect/L2Detect_soundAlerts.ini
Normal file
@@ -0,0 +1,9 @@
|
||||
soundAlert_alertOnClanWar=2
|
||||
soundAlert_alertOnTargeted=1
|
||||
soundAlert_noPartyTargetAlert=1
|
||||
soundAlert_noClanTargetAlert=1
|
||||
soundAlert_screenMessage=1
|
||||
soundAlert_alertOnInvisGM=3
|
||||
soundAlert_fileNameCritical=ringin.wav
|
||||
soundAlert_fileNameWarning=notify.wav
|
||||
soundAlert_fileNameInfo=ding.wav
|
BIN
out/dist_L2Detect/ding.wav
Normal file
BIN
out/dist_L2Detect/ding.wav
Normal file
Binary file not shown.
BIN
out/dist_L2Detect/notify.wav
Normal file
BIN
out/dist_L2Detect/notify.wav
Normal file
Binary file not shown.
BIN
out/dist_L2Detect/ringin.wav
Normal file
BIN
out/dist_L2Detect/ringin.wav
Normal file
Binary file not shown.
150
out/dist_L2Detect/test.lua
Normal file
150
out/dist_L2Detect/test.lua
Normal file
@@ -0,0 +1,150 @@
|
||||
l2h_console_enable( true );
|
||||
l2h_print( "Hello, world!\n" );
|
||||
--l2h_delay( 1000 );
|
||||
--l2h_soundAlert();
|
||||
l2h_print( "tm: ", l2h_time(), "; tm_msec: ", l2h_timeMsec(), "\n" );
|
||||
|
||||
-- tests
|
||||
function tests()
|
||||
if( l2c_is_INGAME() ) then l2h_print( "IN GAME\n" ); else l2h_print( "NOT IN GAME!\n" ); end
|
||||
local curHp, maxHp, curMp, maxMp, curCp, maxCp, curLoad, maxLoad = l2c_getHPMPCPWeight();
|
||||
l2h_print( "HP: ", curHp, " / ", maxHp, "(", (100.0*curHp/maxHp), "%)", "\n" );
|
||||
l2h_print( "MP: ", curMp, " / ", maxMp, "(", (100.0*curMp/maxMp), "%)", "\n" );
|
||||
l2h_print( "CP: ", curCp, " / ", maxCp, "(", (100.0*curCp/maxCp), "%)", "\n" );
|
||||
l2h_print( "Load: ", curLoad, " / ", maxLoad, "(", (100.0*curLoad/maxLoad), "%)", "\n" );
|
||||
local userInfo = l2c_getStats();
|
||||
l2h_print( "Char: [", userInfo.name, "] oID [", userInfo.objectID,
|
||||
"] heading [", userInfo.heading, "] karma [", userInfo.karma, "]\n" );
|
||||
l2h_print( "========================================================\n" );
|
||||
end
|
||||
|
||||
--[[
|
||||
public final static int ALL = 0;
|
||||
public final static int SHOUT = 1; //!
|
||||
public final static int TELL = 2;
|
||||
public final static int PARTY = 3; //#
|
||||
public final static int CLAN = 4; //@
|
||||
public final static int GM = 5;
|
||||
public final static int PETITION_PLAYER = 6; // used for petition
|
||||
public final static int PETITION_GM = 7; //* used for petition
|
||||
public final static int TRADE = 8; //+
|
||||
public final static int ALLIANCE = 9; //$
|
||||
public final static int ANNOUNCEMENT = 10;
|
||||
public final static int PARTYROOM_ALL = 16; //(Red)
|
||||
public final static int PARTYROOM_COMMANDER = 15; //(Yellow)
|
||||
public final static int HERO_VOICE = 17;
|
||||
public final static int BATTLEFIELD = 20;
|
||||
]]--
|
||||
function tests_say()
|
||||
l2c_say( 1, "WTS Sword of Valhalla" ); -- shout!
|
||||
l2h_delay( 1000 );
|
||||
l2c_sayPm( "Hello!", "negr1" ); -- whisper to negr1
|
||||
end
|
||||
|
||||
function tests_npcDlg()
|
||||
--l2c_npcDlg( "Quest" );
|
||||
l2c_npcDlg( "Raid Monster Information" );
|
||||
end
|
||||
|
||||
function test_move()
|
||||
local x, y, z = l2c_getPos();
|
||||
l2h_print( "Coords: ", x, ", ", y, ", ", z, "\n" );
|
||||
local isSitting, isRunning = l2c_getSitRun();
|
||||
l2h_print( "Sit, run: ", isSitting, ", ", isRunning, "\n" );
|
||||
|
||||
--l2c_moveTo( 77194, 148629, -3592 );
|
||||
--l2h_delay( 1000 );
|
||||
--l2c_moveTo( 77394, 148629, -3592 );
|
||||
--l2h_delay( 1000 );
|
||||
--l2c_moveTo( 77194, 148629, -3592 );
|
||||
l2c_moveToDelta( -300, 0, 0 );
|
||||
l2h_delay( 2000 );
|
||||
l2c_moveToDelta( 0, 100, 0 );
|
||||
l2h_delay( 2000 );
|
||||
l2c_moveToDelta( 0, -100, 0 );
|
||||
l2h_delay( 2000 );
|
||||
l2c_moveToDelta( 300, 0, 0 );
|
||||
l2h_delay( 2000 );
|
||||
end
|
||||
|
||||
function test_targ_atk()
|
||||
local oid, hp, mhp = l2c_getTarget();
|
||||
l2h_print( "Target info: oid, hp, maxHp: ", oid, ", ", hp, ", ", mhp, "\n" );
|
||||
l2c_action( 1209023255 );
|
||||
l2h_delay( 1000 );
|
||||
l2c_targetCancel();
|
||||
--l2c_attack();
|
||||
l2c_targetByName( "Claus" );
|
||||
end
|
||||
|
||||
function test_items()
|
||||
local iid, oid = l2c_getPaperdollItem( 12 ); -- L2_PAPERDOLL_CHEST 12
|
||||
l2h_print( "iid, oid = ", iid, ", ", oid, "\n" );
|
||||
l2h_delay( 1000 );
|
||||
l2c_useItemByObjectId( oid );
|
||||
l2h_delay( 1000 );
|
||||
l2c_useItemByObjectId( oid );
|
||||
local heal_itemID = 1061; -- Healing potion
|
||||
l2c_useItem( heal_itemID );
|
||||
local spiritshot_itemID = 3948; -- Blessed Spiritshot: D Grade
|
||||
l2c_autoSoulshot( spiritshot_itemID, true );
|
||||
l2h_delay( 1000 );
|
||||
l2c_autoSoulshot( spiritshot_itemID, false );
|
||||
end
|
||||
|
||||
function test_buffs()
|
||||
local buffs = l2c_getBuffs();
|
||||
local buffCount = #buffs;
|
||||
local i = 0;
|
||||
l2h_print( "===== ", buffCount, " buffs =====\n" );
|
||||
if buffCount > 0 then
|
||||
for i=1,buffCount do
|
||||
l2h_print( " ", i, ": [", buffs[i].skillID, "] ", buffs[i].skillName, ", ", buffs[i].durationSecs, "s\n" );
|
||||
end
|
||||
end
|
||||
l2c_buffCancel( 1059 );
|
||||
end
|
||||
|
||||
function test_skills()
|
||||
local lvl = l2c_getSkillLevel( 1204 ); -- wind walk
|
||||
l2h_print( "WW lvl: ", lvl, "\n" );
|
||||
local userInfo = l2c_getStats();
|
||||
-- target self
|
||||
l2c_action( userInfo.objectID );
|
||||
-- use wind walk
|
||||
l2c_useSkill( 1204, false );
|
||||
-- wait until cast begins
|
||||
l2h_print( "wait cast start... " );
|
||||
while not l2c_isCastingNow() do
|
||||
l2h_delay( 100 );
|
||||
l2h_print( "w" );
|
||||
end
|
||||
l2h_print( "\n" );
|
||||
local reuse = l2c_getSkillReuseLeft( 1204 );
|
||||
l2h_print( "Reuse = ", reuse, "\n" );
|
||||
end
|
||||
|
||||
--l2h_print( "Waiting for stop...\n" );
|
||||
--while( sys_should_exit() == false ) do
|
||||
-- l2h_delay( 500 );
|
||||
-- tests();
|
||||
-- tests_say();
|
||||
--end
|
||||
--l2h_print( "\nWait OK!\n" );
|
||||
|
||||
--test_move();
|
||||
--test_targ_atk();
|
||||
--test_items();
|
||||
--test_buffs();
|
||||
test_skills();
|
||||
|
||||
l2h_print( "Waiting for stop...\n" );
|
||||
while( sys_should_exit() == false ) do
|
||||
if l2c_isCastingNow() then
|
||||
l2h_print( "casting\n" );
|
||||
else
|
||||
l2h_print( "not casting\n" );
|
||||
end
|
||||
end
|
||||
l2h_print( "\nWait OK!\n" );
|
||||
|
Reference in New Issue
Block a user