Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 19.05.2005, 07:03   #7
kembl
Архивный участник
 
Join Date: May 2005
Posts: 63
Default

Да через него можно, конкретно чреез функцию Send, если кому интересно вот список функций с формат сообщений

public const string ADD_ITEM = "12\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\t{10}\n";
public const string ADD_ITEM2 = "55\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\t{10}\n";
public const string ADD_SKILL = "6\t{0}\t{1}\t{2}\t{3}\n";
public const string BAN_CHAR = "39\t{0}\t{1}\t{2}\t{3}\n";
public const string CHANGE_CHARACTER_NAME = "4\t{0}\t{1}\t{2}\n";
public const string CHANGE_PLEDGE_LEVEL = "46\t{0}\t{1}\t{2}\t{3}\n";
public const string CHECK_CHARACTER = "1\t{0}\t{1}\n";
public const string COMMENT_DELETE = "33\t{0}\t{1}\t{2}\t{3}\n";
public const string COMMENT_WRITE = "32\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string COPY_CHAR = "43\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string CREATE_PET = "44\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\n";
public const string CREATE_PLEDGE = "47\t{0}\t{1}\t{2}\t{3}\n";
public const string DEL_BOOKMARK = "24\t{0}\t{1}\t{2}\t{3}\n";
public const string DEL_ITEM = "13\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string DEL_ITEM2 = "54\t{0}\t{1}\t{2}\n";
public const string DEL_PLEDGECREST = "25\t{0}\t{1}\t{2}\n";
public const string DEL_QUEST = "11\t{0}\t{1}\t{2}\t{3}\n";
public const string DEL_SKILL = "7\t{0}\t{1}\t{2}\n";
public const string DELETE_CHAR = "34\t{0}\t{1}\t{2}\n";
public const string DISABLE_CHARACTER = "20\t{0}\t{1}\t{2}\t{3}\n";
public const string ENABLE_CHARACTER = "21\t{0}\t{1}\t{2}\t{3}\n";
public const string GET_CHARACTERS = "22\t{0}\t{1}\t{2}\n";
public const string KICK_CHARACTER = "5\t{0}\t{1}\n";
public const string MAN_ANNOUNCE = "50\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string MAN_INTANNOUNCE = "51\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string MOD_CHAR = "15\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\n ";
public const string MOD_CHAR_PLEDGE = "17\t{0}\t{1}\t{2}\t{3}\n";
public const string MOD_CHAR2 = "16\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\n ";
public const string MOD_ITEM = "14\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\t{10}\t{11}\n";
public const string MOD_PLEDGENAME = "26\t{0}\t{1}\t{2}\t{3}\n";
public const string MOD_SKILL = "8\t{0}\t{1}\t{2}\t{3}\n";
public const string MOD_WEEKPLAY = "52\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string MODIFY_CHAR = "29\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\n ";
public const string MOVE_CHAR = "31\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string MOVE_ITEM = "30\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\n";
public const string MOVE_ITEM2 = "40\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string NO_PACKET = "0\t{0}\t{1}\n";
public const string PLEDGE_CHANGE_OWNER = "37\t{0}\t{1}\t{2}\t{3}\n";
public const string PLEDGE_DELETE = "38\t{0}\t{1}\t{2}\n";
public const string PLEDGE_OUST = "36\t{0}\t{1}\t{2}\n";
public const string PRINT_ALL_ACCOUNT_DATA = "41\t{0}\n";
public const string PRINT_ALL_WAREHOUSE_DATA = "42\t{0}\n";
public const string PUNISH_CHARACTER = "18\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string RESTORE_CHAR = "35\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string RESTORE_CHAR2 = "49\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string SEIZE_ITEM = "28\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string SEIZE_ITEM2 = "53\t{0}\t{1}\t{2}\t{3}\n";
public const string SEND_HOME = "45\t{0}\t{1}\t{2}\n";
public const string SET_BOOKMARK = "23\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\n" ;
public const string SET_BUILDER_ACCOUNT = "19\t{0}\t{1}\t{2}\t{3}\n";
public const string SET_BUILDER_CHARACTER = "3\t{0}\t{1}\t{2}\n";
public const string SET_CHARACTER_LOCATION = "2\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\n";
public const string SET_ONETIMEQUEST = "9\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string SET_PROHIBITED = "27\t{0}\t{1}\t{2}\t{3}\n";
public const string SET_QUEST = "10\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string SET_SKILL_ALL = "48\t{0}\t{1}\t{2}\n";

А вот пример использования команды 20 - DISABLE_CHARACTER написаный на visual basic

message = "20 1595,,,,,,,,,," '1595 - char_id
Set objSocket = CreateObject("L2ATL.Socket")
nRet = objSocket.Send("la2:7777", message & vbCrLf, strOutMsg)
set objSocket = nothing
WScript.Echo "Nret: " & nRet & " strOutMsg: " & strOutMsg


Но! Пример взят из ATL гайда Лично у меня работает без ошибок, но и без видимых результатов! Вообщем копать надо здесь, la2Admin то работает.

А вот пример на C# как допустим добавить айтем на чара:

public void AddItem(string charName, int warehouse, int itemType, int itemAmount, int enchant, int eroded, int bless, int ident, int wished)
{
object[] objArray1 = new object[11] { charName, warehouse, itemType, itemAmount, enchant, eroded, bless, ident, wished, this.m_adminId, "" } ;
this.DoOperation(12, string.Format("12\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{ 6}\t{7}\t{8}\t{9}\t{10}\n", objArray1));
}
kembl is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:07.