![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#51 | |
|
Архивный участник
Join Date: Jun 2006
Posts: 7
|
Quote:
Wish I knew more programming than the junk I picked up in CS1, I'd love to help out. |
|
|
|
|
|
#52 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
Quote:
|
|
|
|
|
|
#53 | ||
|
Архивный участник
Join Date: May 2006
Posts: 23
|
Quote:
Umm I would just like to point out that in retail you can infact have 40 members in any level clan. It was a update in c2 however it seems to be a little known fact. "2. The game was revised so that, while the maximum number of clan members had been 40 when the clan level reaches 5, the maximum number is 40 even before the clan reaches level 5. The number of clans that can be included in an alliance was increased to 12." http://www.lineage2.com/news/chronicle2_15.html I know it is kind of offtopic but when I see you write this code I feel it is neccessairy to point it out. |
||
|
|
|
|
#54 |
|
Архивный участник
Join Date: Dec 2005
Posts: 242
|
I have a hard headache, plz someone that know good the packets can tell me
what is wrong here ? The server don't crash but don't showme the recipebook empty. Code:
const char * format = "cddd";
__asm
{
push 0x0000 //Number of Items
push 0x06EA //MaxMP (TODO) should show 1770 =x06EA Mp
push is_dwarf //is dwarven ?
push 0x00D6 //the packet header
push format //packet format 'cddd'
push pSocket //push address of the start of the packet
call fCUserSocketSend
add esp, 0x18 //fix our stack pointer (6 * 0x04 = 0x18)
}
|
|
|
|
|
#55 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
Dude, you should of showed me on MSN
I'll talk to you about it later. After you wake up, heheh.
|
|
|
|
|
#56 |
|
Архивный участник
Join Date: Jan 2006
Posts: 69
|
Sorry ppl in 1st post i made mistake now all fixed
Code:
//clan limits
const WORD CLan_0 = 0x0A
const WORD CLan_1 = 0x0F
const WORD CLan_2 = 0x14
const WORD CLan_3 = 0x19
const WORD CLan_4 = 0x1E
const WORD CLan_5 = 0x28
//clan limits
DWORD * NewCLan_0Addr = (DWORD *)0x0051038E;
*NewCLan_0Addr = (DWORD)CLan_0;
DWORD * NewCLan_1Addr = (DWORD *)0x005103F6;
*NewCLan_1Addr = (DWORD)CLan_1;
DWORD * NewCLan_2Addr = (DWORD *)0x005103E2;
*NewCLan_2Addr = (DWORD)CLan_2;
DWORD * NewCLan_3Addr = (DWORD *)0x005103EC;
*NewCLan_3Addr = (DWORD)CLan_3;
DWORD * NewCLan_4Addr = (DWORD *)0x005103F6;
*NewCLan_4Addr = (DWORD)CLan_4;
DWORD * NewCLan_5Addr = (DWORD *)0x00510400;
*NewCLan_5Addr = (DWORD)CLan_5;
|
|
|
|
|
#57 |
|
Архивный участник
Join Date: Aug 2005
Posts: 42
|
Hi and thx for sharing your source work.
I'm willing to do some research on clan rights, using your dll to catch this kind of packets, and use some own table to store rights. So, when someone send to the server the packet implying any of this rights capture with dll the packet, do the dirty job, and send finally a totally autobuild (by the dll) the packet to the cached exe (or l2server...I need to study it). This is the idea...now the question/problem. You can call me stupid noob if the question is so categorized. ![]() I have a personal server at home running a C2 (maybe I'll update it to C3), and that is all I have for doing research and test. Would be useful later to all of you?? Or Is totally needed I run up a C4 to my work be useful for the community? Thx for the responses, and will be pleased on help/ideas about that. |
|
|
|
|
#58 |
|
Архивный участник
Join Date: Mar 2006
Posts: 82
|
I was looking for some information about fishing in L2J server website and i found a Fishing engine (which was posted by [glow=red:1c88000d9a]Nemesiss[/glow:1c88000d9a] ). This engine contained html's and more
![]() I hope this will be usefull... (don't flame me for sharing it, this is just for studing purpose) All credits goes to Nemesiss and L2J community Вложения из исходного сообщения (сами файлы в копии отсутствуют): fishing_212.rar — 136472 байт |
|
|
|
|
#59 | |
|
Архивный участник
Join Date: May 2006
Posts: 36
|
Quote:
AutoSS have 2 parts 1 message system+shortcut engine 2 inventory service patch. both parts have diferent headers but almoust same struct. |
|
|
|
|
|
#60 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
@montejo1974: I am doing all of this on a C4 client. the goal is to make a C4 DLL, since most people run C3/C4 servers.
The correct procedure for handling packets is this: Client sends a packet with header 0xXX (my ReceivePacket function handles this). You make a function to send a packet back to the client using the fCUserSocketSend function, the proper pSocket, the proper format, the right packet header, and all the variables. See the L2J source for examples of how to handle packets, what headers correspond to what, etc. Here is the L2J codes for handling client -> server packets: Code:
switch(id)
{
case 0x00:
msg = new ProtocolVersion(data, client);
break;
case 0x01:
msg = new MoveBackwardToLocation(data, client);
break;
// case 0x02:
// // Say ... not used any more ??
// break;
case 0x03:
msg = new EnterWorld(data, client);
break;
case 0x04:
msg = new Action(data, client);
break;
case 0x08:
msg = new AuthLogin(data, client);
break;
case 0x09:
msg = new Logout(data, client);
break;
case 0x0a:
msg = new AttackRequest(data, client);
break;
case 0x0b:
msg = new CharacterCreate(data, client);
break;
case 0x0c:
msg = new CharacterDelete(data, client);
break;
case 0x0d:
msg = new CharacterSelected(data, client);
break;
case 0x0e:
msg = new NewCharacter(data, client);
break;
case 0x0f:
msg = new RequestItemList(data, client);
break;
// case 0x10:
// // RequestEquipItem ... not used any more, instead "useItem"
// break;
case 0x11:
msg = new RequestUnEquipItem(data, client);
break;
case 0x12:
msg = new RequestDropItem(data, client);
break;
case 0x14:
msg = new UseItem(data, client);
break;
case 0x15:
msg = new TradeRequest(data, client);
break;
case 0x16:
msg = new AddTradeItem(data, client);
break;
case 0x17:
msg = new TradeDone(data, client);
break;
case 0x1a:
msg = new DummyPacket(data, client, id);
break;
case 0x1b:
msg = new RequestSocialAction(data, client);
break;
case 0x1c:
msg = new ChangeMoveType2(data, client);
break;
case 0x1d:
msg = new ChangeWaitType2(data, client);
break;
case 0x1e:
msg = new RequestSellItem(data, client);
break;
case 0x1f:
msg = new RequestBuyItem(data, client);
break;
case 0x20:
msg = new RequestLinkHtml(data,client);
break;
case 0x21:
msg = new RequestBypassToServer(data, client);
break;
case 0x22:
msg = new RequestBBSwrite(data, client);
break;
case 0x23:
msg = new DummyPacket(data,client, id);
break;
case 0x24:
msg = new RequestJoinPledge(data, client);
break;
case 0x25:
msg = new RequestAnswerJoinPledge(data, client);
break;
case 0x26:
msg = new RequestWithdrawalPledge(data, client);
break;
case 0x27:
msg = new RequestOustPledgeMember(data, client);
break;
// case 0x28:
// // RequestDismissPledge
// break;
case 0x29:
msg = new RequestJoinParty(data, client);
break;
case 0x2a:
msg = new RequestAnswerJoinParty(data, client);
break;
case 0x2b:
msg = new RequestWithDrawalParty(data, client);
break;
case 0x2c:
msg = new RequestOustPartyMember(data, client);
break;
case 0x2d:
// RequestDismissParty
break;
case 0x2e:
msg = new DummyPacket(data, client, id);
break;
case 0x2f:
msg = new RequestMagicSkillUse(data, client);
break;
case 0x30:
msg = new Appearing(data, client); // (after death)
break;
case 0x31:
if (Config.ALLOW_WAREHOUSE)
msg = new SendWareHouseDepositList(data, client);
break;
case 0x32:
msg = new SendWareHouseWithDrawList(data, client);
break;
case 0x33:
msg = new RequestShortCutReg(data, client);
break;
case 0x34:
msg = new DummyPacket(data, client, id);
break;
case 0x35:
msg = new RequestShortCutDel(data, client);
break;
case 0x36:
msg = new CannotMoveAnymore(data, client);
break;
case 0x37:
msg = new RequestTargetCanceld(data, client);
break;
case 0x38:
msg = new Say2(data, client);
break;
case 0x3c:
msg = new RequestPledgeMemberList(data, client);
break;
case 0x3e:
msg = new DummyPacket(data, client, id);
break;
case 0x3f:
msg = new RequestSkillList(data, client);
break;
// case 0x41:
// // MoveWithDelta ... unused ?? or only on ship ??
// break;
case 0x42:
msg = new RequestGetOnVehicle(data, client);
break;
case 0x43:
msg = new RequestGetOffVehicle(data, client);
break;
case 0x44:
msg = new AnswerTradeRequest(data, client);
break;
case 0x45:
msg = new RequestActionUse(data, client);
break;
case 0x46:
msg = new RequestRestart(data, client);
break;
// case 0x47:
// // RequestSiegeInfo
// break;
case 0x48:
msg = new ValidatePosition(data, client);
break;
// case 0x49:
// // RequestSEKCustom
// break;
// THESE ARE NOW TEMPORARY DISABLED
case 0x4a:
// new StartRotating(data, _client);
break;
case 0x4b:
// new FinishRotating(data, _client);
break;
case 0x4d:
msg = new RequestStartPledgeWar(data, client);
break;
case 0x4e:
msg = new RequestReplyStartPledgeWar(data, client);
break;
case 0x4f:
msg = new RequestStopPledgeWar(data, client);
break;
case 0x50:
msg = new RequestReplyStopPledgeWar(data, client);
break;
case 0x51:
msg = new RequestSurrenderPledgeWar(data, client);
break;
case 0x52:
msg = new RequestReplySurrenderPledgeWar(data,client);
break;
case 0x53:
msg = new RequestSetPledgeCrest(data, client);
break;
case 0x55:
msg = new RequestGiveNickName(data, client);
break;
case 0x57:
msg = new RequestShowBoard(data, client);
break;
case 0x58:
msg = new RequestEnchantItem(data, client);
break;
case 0x59:
msg = new RequestDestroyItem(data, client);
break;
case 0x5b:
msg = new SendBypassBuildCmd(data, client);
break;
case 0x5c:
msg = new RequestMoveToLocationInVehicle(data, client);
break;
case 0x5d:
msg = new CannotMoveAnymoreInVehicle(data, client);
break;
case 0x5e:
msg = new RequestFriendInvite(data, client);
break;
case 0x5f:
msg = new RequestAnswerFriendInvite(data, client);
break;
case 0x60:
msg = new RequestFriendList(data, client);
break;
case 0x61:
msg = new RequestFriendDel(data, client);
break;
case 0x62:
msg = new CharacterRestore(data, client);
break;
case 0x63:
msg = new RequestQuestList(data, client);
break;
case 0x64:
msg = new RequestQuestAbort(data, client);
break;
case 0x66:
msg = new RequestPledgeInfo(data, client);
break;
// case 0x67:
// // RequestPledgeExtendedInfo
// break;
case 0x68:
msg = new RequestPledgeCrest(data, client);
break;
case 0x69:
msg = new RequestSurrenderPersonally(data,client);
break;
// case 0x6a:
// // Ride
// break;
case 0x6b: // send when talking to trainer npc, to show list of available skills
msg = new RequestAquireSkillInfo(data, client);// --> [s] 0xa4;
break;
case 0x6c: // send when a skill to be learned is selected
msg = new RequestAquireSkill(data, client);
break;
case 0x6d:
msg = new RequestRestartPoint(data, client);
break;
case 0x6e:
msg = new RequestGMCommand(data, client);
break;
case 0x6f:
msg = new RequestPartyMatchConfig(data, client);
break;
case 0x70:
msg = new RequestPartyMatchList(data, client);
break;
case 0x71:
msg = new RequestPartyMatchDetail(data, client);
break;
case 0x72:
msg = new RequestCrystallizeItem(data, client);
break;
case 0x73:
msg = new RequestPrivateStoreManageSell(data, client);
break;
case 0x74:
msg = new SetPrivateStoreListSell(data, client);
break;
// case 0x75:
// msg = new RequestPrivateStoreManageCancel(data, _client);
// break;
case 0x76:
msg = new RequestPrivateStoreQuitSell(data, client);
break;
case 0x77:
msg = new SetPrivateStoreMsgSell(data, client);
break;
// case 0x78:
// // RequestPrivateStoreList
// break;
case 0x79:
msg = new RequestPrivateStoreBuy(data, client);
break;
// case 0x7a:
// // ReviveReply
// break;
// case 0x7b:
// // RequestTutorialLinkHtml
// break;
// case 0x7c:
// // RequestTutorialPassCmdToServer
// break;
// case 0x7d:
// // RequestTutorialQuestionMark
// break;
// case 0x7e:
// // RequestTutorialClientEvent
// break;
case 0x7f:
msg = new RequestPetition(data, client); //cSd
break;
case 0x80:
msg = new RequestPetitionCancel(data, client); //cS
break;
case 0x81:
msg = new RequestGmList(data, client);
break;
case 0x82:
msg = new RequestJoinAlly(data, client);
break;
case 0x83:
msg = new RequestAnswerJoinAlly(data, client);
break;
case 0x84:
msg = new AllyLeave(data, client);
break;
case 0x85:
msg = new AllyDismiss(data, client);
break;
// case 0x86:
// // RequestDismissAlly
// break;
case 0x87:
msg = new RequestSetAllyCrest(data, client);
break;
case 0x88:
msg = new RequestAllyCrest(data, client);
break;
case 0x89:
msg = new RequestChangePetName(data, client);
break;
case 0x8a:
msg = new RequestPetUseItem(data, client);
break;
case 0x8b:
msg = new RequestGiveItemToPet(data, client);
break;
case 0x8c:
msg = new RequestGetItemFromPet(data, client);
break;
case 0x8e:
msg = new RequestAllyInfo(data, client);
break;
case 0x8f:
msg = new RequestPetGetItem(data, client);
break;
case 0x90:
msg = new RequestPrivateStoreManageBuy(data, client);
break;
case 0x91:
msg = new SetPrivateStoreListBuy (data, client);
break;
// case 0x92:
// // RequestPrivateStoreBuyManageCancel
// break;
case 0x93:
msg = new RequestPrivateStoreQuitBuy (data, client);
break;
case 0x94:
msg = new SetPrivateStoreMsgBuy(data, client);
break;
// case 0x95:
// // RequestPrivateStoreBuyList
// break;
case 0x96:
msg = new RequestPrivateStoreSell(data, client);
break;
// case 0x97:
// // SendTimeCheckPacket
// break;
// case 0x98:
// // RequestStartAllianceWar
// break;
// case 0x99:
// // ReplyStartAllianceWar
// break;
// case 0x9a:
// // RequestStopAllianceWar
// break;
// case 0x9b:
// // ReplyStopAllianceWar
// break;
// case 0x9c:
// // RequestSurrenderAllianceWar
// break;
case 0x9d:
// RequestSkillCoolTime
if (Config.DEBUG) _log.info("Request Skill Cool Time .. ignored");
msg = null;
break;
// case 0x9e:
// // RequestPackageSendableItemList
// break;
// case 0x9f:
// // RequestPackageSend
// break;
case 0xa0:
msg = new RequestBlock(data,client);
break;
// case 0xa1:
// // RequestCastleSiegeInfo
// break;
case 0xa2:
msg = new RequestSiegeAttackerList(data,client);
break;
case 0xa3:
msg = new RequestSiegeDefenderList(data,client);
break;
case 0xa4:
msg = new RequestJoinSiege(data,client);
break;
case 0xa5:
msg = new RequestConfirmSiegeWaitingList(data,client);
break;
// case 0xa6:
// // RequestSetCastleSiegeTime
// break;
case 0xa7:
msg = new MultiSellChoose(data,client);
break;
// case 0xa8:
// // NetPing
// break;
case 0xaa:
msg = new RequestUserCommand(data, client);
break;
case 0xab:
msg = new SnoopQuit(data, client);
break;
case 0xac: // we still need this packet to handle BACK button of craft dialog
msg = new RequestRecipeBookOpen(data, client);
break;
case 0xad:
msg = new RequestRecipeBookDestroy(data, client);
break;
case 0xae:
msg = new RequestRecipeItemMakeInfo(data, client);
break;
case 0xaf:
msg = new RequestRecipeItemMakeSelf(data, client);
break;
//case 0xb0:
// msg = new RequestRecipeShopManageList(data, client);
// break;
case 0xb1:
msg = new RequestRecipeShopMessageSet(data, client);
break;
case 0xb2:
msg = new RequestRecipeShopListSet(data, client);
break;
case 0xb3:
msg = new RequestRecipeShopManageQuit(data, client);
break;
case 0xb5:
msg = new RequestRecipeShopMakeInfo(data, client);
break;
case 0xb6:
msg = new RequestRecipeShopMakeItem(data, client);
break;
case 0xb7:
msg = new RequestRecipeShopManagePrev(data, client);
break;
case 0xb8:
msg = new ObserverReturn(data, client);
break;
case 0xb9:
msg = new RequestEvaluate(data, client);
break;
case 0xba:
msg = new RequestHennaList(data, client);
break;
case 0xbb:
msg = new RequestHennaItemInfo(data, client);
break;
case 0xbc:
msg = new RequestHennaEquip(data, client);
break;
case 0xc0:
// Clan Privileges
msg = new RequestPledgePower(data, client);
break;
case 0xc1:
msg = new RequestMakeMacro(data, client);
break;
case 0xc2:
msg = new RequestDeleteMacro(data, client);
break;
case 0xc6:
msg = new RequestWearItem(data, client);
break;
case 0xc7:
msg = new RequestRecordUpdate(data, client);
break;
case 0xCA:
msg = new GameGuardReply(data,client);
break;
case 0xcc:
msg = new RequestSendFriendMsg(data, client);
break;
case 0xcd:
msg = new RequestShowMiniMap(data, client);
break;
case 0xce: // MSN dialogs so that you dont see them in the console.
break;
case 0xcf: //record video
break;
case 0xd0: // Request auto ss and (b)sps.
int id2 = data.getShort() & 0xffff;
switch (id2)
{
case 1:
msg = new RequestOustFromPartyRoom(data, client);
break;
case 2:
msg = new RequestDismissPartyRoom(data, client);
break;
case 3:
msg = new RequestWithdrawPartyRoom(data, client);
break;
case 4:
msg = new RequestChangePartyLeader(data, client);
break;
case 5:
msg = new RequestAutoSoulShot(data, client);
break;
case 6:
msg = new RequestExEnchantSkillInfo(data, client);
break;
case 7:
msg = new RequestExEnchantSkill(data, client);
break;
case 8:
msg = new RequestManorList(data, client);
break;
case 9:
msg = new RequestProcureCropList(data, client);
break;
case 0x0a:
msg = new RequestSetSeed(data, client);
break;
case 0x0b:
msg = new RequestSetCrop(data, client);
break;
case 0x0c:
msg = new RequestWriteHeroWords(data, client);
break;
case 0x0d:
msg = new RequestExAskJoinMPCC(data, client);
break;
case 0x0e:
msg = new RequestExAcceptJoinMPCC(data, client);
break;
case 0x0f:
msg = new RequestExOustFromMPCC(data, client);
break;
case 0x10:
msg = new RequestExPledgeCrestLarge(data, client);
break;
case 0x11:
msg = new RequestExSetPledgeCrestLarge(data, client);
break;
case 0x12:
msg = new RequestOlympiadObserverEnd(data, client);
break;
case 0x13:
msg = new RequestOlympiadMatchList(data, client);
break;
default:
msg = null;
int size = data.remaining();
_log.warning("Unknown Packet: 0xd0:" + Integer.toHexString(id2));
byte[] array = new byte[size];
data.get(array);
_log.warning(Util.printData(array, size));
break;
}
break;
}
Btw: inside the ReplyRequestShowMiniMap() function I added a pSocket check just in case a socket goes bad on you: Code:
if ( pSocket != NULL )
{
//code to send packet to client
}
![]() @draft: I know that there is more than one part to AutoSS. I have the message system for enabling and disabling in place. I'm working on the actual automatic use of the soulshots now. Just because I post a packet dump doesn't mean I don't know about the other parts in the process. I will say this to everyone: we all do what we can do. Don't treat anyone like an idiot because they post a something and you want to act better than them. It'd be better to actually post something useful. |
|
|
|
|
#61 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
Everyone else I have had attach it has no problems. Maybe your exe isn't compatible. Use an original C1 exe, or the PP release exe. I know the PP release will work with this dll just fine.
|
|
|
|
|
#62 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
Open the exe in STUD_PE Exe Injector. Go to functions.
Click "Add new import" Select "Open DLL" Select the L2EP[Elhaym].dll Click "Select import function" Select "DllMain@12" Click "Add to List" Click OK. That should be the entire process... |
|
|
|
|
#63 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 42
|
Quote:
![]() Thans you very much for the answer. |
|
|
|
|
|
#64 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 76
|
Quote:
Keep up the good work ! |
|
|
|
|
|
#65 |
|
Архивный участник
Join Date: Nov 2005
Posts: 215
|
Where you were earlier guys?!
:P ... Adding ave_big_head (Abnormal), maybe not working ... Thx to Aspire for HEX. Code:
#include "headers.h"
void AddAveEffects();
const WCHAR * ave_big_head = L"ave_big_head";
const DWORD ave_bleeding_addr = 0x0056E4BC; //Start point
const BYTE db_ave_bleeding_addr[] = {0x8B,0x46,0x20,0x8B,0x4E,0x0C};
const DWORD sub_58C90D = 0x58C90D; //.text:0056E4CB call sub_58C90D
const DWORD loc_56E4C5 = 0x56E4C5; //push offset Ave_dot_bleed ; "ave_dot_bleeding" //Out point
//justification by 1 byte
struct jmp_far
{
BYTE _push; //push
DWORD addr; //address
BYTE _ret; //ret
};
//Abnormal_effects_update----------------------------------------------------------------------------------------------
void AbnormalEffects(HANDLE hMainInst)
{
BYTE OldCodeBuff[8];
jmp_far jump;
if(ReadProcessMemory(hMainInst,(LPVOID)ave_bleeding_addr,&OldCodeBuff,sizeof(jump),NULL))
{
if(memcmp(OldCodeBuff,db_ave_bleeding_addr,sizeof(db_ave_bleeding_addr))==0)
{
jump._push = 0x68;
jump.addr = (DWORD)&AddAveEffects;
jump._ret = 0xC3;
if(!WriteProcessMemory(hMainInst,(LPVOID)ave_bleeding_addr,&jump,sizeof(jump),NULL))
{
MessageBox(0,"AVE_EFFECTS: Can't write process memory!","Error Notice!",MB_OK | MB_ICONSTOP);
}
}
else
{
MessageBox(0,"AVE_EFFECTS: Wrong file version!","Error Notice!",MB_OK | MB_ICONSTOP);
}
}
else
{
MessageBox(0,"AVE_EFFECTS: Can't read process memory!","Error Notice!",MB_OK | MB_ICONSTOP);
}
}
//---------------------------------------------------------------------------------------------------------------------
Naked void AddAveEffects()
{
__asm
{
//ave_big_head
mov eax,[esi+20h]
mov ecx,[esi+0Ch]
mov edx,[ecx+eax*8]
push dword ptr [ave_big_head]
push edx
mov edx, sub_58C90D
call edx
add esp,8
test eax,eax
jne LEnd
mov eax,[esi+90h]
mov dword ptr [eax+1BCh],2000h
mov ecx,[esp+013Ch]
mov fs:[0],ecx
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
retn
LEnd:
//ave_dot_bleeding -> header
mov eax,[esi+20h]
mov ecx,[esi+0Ch]
mov edx,[ecx+eax*8]
push loc_56E4C5
retn
}
}
//---------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
#66 | ||
|
Архивный участник
Join Date: May 2006
Posts: 36
|
Maybe :d this info is useful too?
btw seems sun he finish his L2server version) Quote:
|
||
|
|
|
|
#67 |
|
Архивный участник
Join Date: Apr 2005
Posts: 151
|
*delete*
|
|
|
|
|
#68 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
Just as a response to recent posts...
Code:
{00}Pointer($005010F0),//VersionPacket
{01}Pointer($0050A160),//CheckForBot,//MoveToLocation
{02}Pointer($00501350),//SayPacket
{03}UserEnterWorld,//Pointer($00507210),//EnterWorldPacket
{04}Pointer($0050A4D0),//ActionPacket
{05}Pointer($00501070),//DummyPacket
{06}Pointer($00501070),//DummyPacket
{07}Pointer($00501070),//DummyPacket
{08}Pointer($0050E440),//LoginPacket
{09}Pointer($005015E0),//LogoutPacket
{0A}Pointer($005014A0),//AttackPacket
{0B}Pointer($00506C30),//CharacterCreatePacket
{0C}Pointer($00506F40),//CharacterDeletePacket
{0D}Pointer($00506B70),//CharacterSelectPacket
{0E}Pointer($00507000),//NewCharacterPacket
{0F}Pointer($005016D0),//ItemListPacket
{10}Pointer($005072D0),//EquipItemPacket
{11}Pointer($005073E0),//UnequipItemPacket
{12}Pointer($005077B0),//DropItemPacket
{13}Pointer($00501770),//GetItemPacket
{14}Pointer($00507520),//UseItemPacket
{15}Pointer($0050B710),//TradeRequestPacket
{16}Pointer($005019B0),//TradeAddItemsPacket
{17}Pointer($00501A60),//TradeDonePacket
{18}Pointer($00501070),//DummyPacket
{19}Pointer($00501070),//DummyPacket
{1A}Pointer($00507B20),//TeleportPacket
{1B}Pointer($00507BA0),//SocialActionPacket
{1C}Pointer($00507CD0),//ChangeMoveTypePacket
{1D}Pointer($00507DB0),//ChangeStopTypePacket
{1E}Pointer($0050F0A0),//SellPacket
{1F}Pointer($0050E6E0),//BuyPacket
{20}Pointer($00515460),//bbs????
{21}Pointer($00515660),//HTMLcmd
{22}Pointer($00501B50),//WriteHTMLPacket
{23}Pointer($00507EB0),//CreatePledgePacket
{24}Pointer($005102B0),//JoinPledgePacket
{25}Pointer($005105F0),//AnswerJoinPledgePacket
{26}Pointer($00508F60),//WithdrawPledgePacket
{27}Pointer($00509070),//OustPledgeMemberPacket
{28}Pointer($0049AAE0),//DoNothingPacket
{29}Pointer($005107C0),//JoinPartyPacket
{2A}Pointer($00510AB0),//AnswerJoinPartyPacket
{2B}Pointer($005091B0),//WithdrawPartyPacket
{2C}Pointer($005092C0),//OustPartyMemberPacket
{2D}Pointer($00509400),//DismissPartyPacket
{2E}Pointer($00502950),//MagicSkillListPacket
{2F}Pointer($00502A90),//MagicSkillUsePacket
{30}Pointer($00501FA0),//AppearingPacket
{}Pointer($00502490),
{}Pointer($00502660),
{}Pointer($00502060),
{}Pointer($00502140),
{}Pointer($005021D0),
{}Pointer($00502280),
{}Pointer($005023F0),
{}Pointer($00510FF0),
{}Pointer($00501070),//DummyPacket
{}Pointer($0049AAE0),
{}Pointer($0049AAE0),
{}Pointer($005094C0),
{}Pointer($0049AAE0),
{}Pointer($0049AAE0),
{}Pointer($005029F0),
{}Pointer($0049AAE0),
{}Pointer($00502B60),
{}Pointer($00502C80),
{}Pointer($00502DD0),
{}Pointer($00501900),
{}Pointer($005030E0),
{}Pointer($00508030),
{}Pointer($00508160),
{}Pointer($005031C0),
{}Pointer($00508440),
{}Pointer($0050AD50),
{}Pointer($0050AE80),
{}Pointer($005032F0),
{}Pointer($00511940),
{}Pointer($00511C60),
{}Pointer($00511EC0),
{}Pointer($00512140),
{}Pointer($0050CDE0),
{}Pointer($0049AAE0),
{}Pointer($005096B0),
{}Pointer($00503470),
{}Pointer($0050CE70),
{}Pointer($00503470),
{}Pointer($00503480),
{}Pointer($005084D0),
{}Pointer($00503560),
{}Pointer($0050D110),
{}Pointer($00503900),
{}Pointer($005039C0),
{}Pointer($00503B30),
{}Pointer($00512580),
{}Pointer($00512730),
{}Pointer($0050BB50),
{}Pointer($0050A7B0),
{}Pointer($00503C20),
{}Pointer($00503D00),
{}Pointer($00503D80),
{}Pointer($0049AAE0),
{}Pointer($0050BBC0),
{}Pointer($0050D3B0),
{}Pointer($0050BCB0),
{}Pointer($0050D690),
{}Pointer($0050AF90),
{}Pointer($00503EE0),
{}Pointer($0050A840),
{}Pointer($00504130),
{}Pointer($0050D850),
{}Pointer($00504230),
{}Pointer($00508750),
{}Pointer($0050BDE0),
{}Pointer($00504340),
{}Pointer($005046D0),
{}Pointer($005047B0),
{}Pointer($005048A0),
{}Pointer($00504980),
{}Pointer($00504A30),
{}Pointer($00504B00),
{}Pointer($0050BF30),
{}Pointer($0049AAE0),
{}Pointer($00504BC0),
{}Pointer($005151A0),
{}Pointer($00504D90),
{}Pointer($00504E40),
{}Pointer($00508860),
{}Pointer($00504F00),
{}Pointer($0050C360),
{}Pointer($005127C0),
{}Pointer($00512B90),
{}Pointer($00509750),
{}Pointer($0050DBE0),
{}Pointer($00512E60),
{}Pointer($005098C0),
{}Pointer($0050C0B0),
{}Pointer($00504FA0),
{}Pointer($005050F0),
{}Pointer($00505200),
{}Pointer($005053E0),
{}Pointer($0049AAE0),
{}Pointer($00513010),
{}Pointer($00505510),
{}Pointer($00505680),
{}Pointer($00505780),
{}Pointer($00505870),
{}Pointer($00505920),
{}Pointer($005059D0),
{}Pointer($00505AA0),
{}Pointer($0050C1E0),
{}Pointer($00505B60),
{}Pointer($00513410),
{}Pointer($005136F0),
{}Pointer($005139D0),
{}Pointer($00513CA0),
{}Pointer($00513F30),
{}Pointer($00505C90),
{}Pointer($00505D10),
{}Pointer($00509A30),
{}Pointer($0050DE90),
{}Pointer($00505E70),
{}Pointer($00505F00),
{}Pointer($00505FD0),
{}Pointer($00509BB0),
{}Pointer($00509E20),
{}Pointer($00509F80),
{}Pointer($005060A0),
{}Pointer($00506220),
{}Pointer($00508960),
{AA} ReplyLocPacket, //UserCommand
{AB} DummyPacket, //??
{AC} DummyPacket, //OpenReceipeBook
{AD} DummyPacket, //RequestRecipeBookDestroy
{AE} DummyPacket, //RequestRecipeItemMakeInfo
{AF} DummyPacket, //RequestRecipeItemMakeSelf
{B0} DummyPacket, //RequestRecipeShopManageList
{B1} DummyPacket, //RequestRecipeShopMessageSet
{B2} DummyPacket, //RequestRecipeShopListSet
{B3} DummyPacket, //RequestRecipeShopManageQuit
{B4} DummyPacket, //??
{B5} DummyPacket, //??
{B6} DummyPacket, //??
{B7} DummyPacket, //??
{B8} DummyPacket, //ObserverReturn
{B9} DummyPacket, //RequestEvaluate
{BA} RequestHennaEquipList, //RequestHennaEquipList
{BB} RequestHennaItemInfo, //RequestHennaItemInfo
{BC} RequestHennaEquip, //RequestHennaEquip
{BD} RequestHennaUnequipList, //RequestHennaUnequipList
{BE} RequestHennaUnequipInfo, //RequestHennaUnequipInfo
{BF} RequestHennaUnequip, //RequestHennaUnequip
{C0} DummyPacket, //Clan Privileges
{C1} RequestMakeMacro, //RequestMakeMacro
{C2} RequestDeleteMacro, //RequestDeleteMacro
{C3} DummyPacket, //
{C4} DummyPacket, //
{C5} DummyPacket, //
{C6} DummyPacket, //
{C7} DummyPacket, //RequestRecordUpdate
{C8} DummyPacket, //
{C9} DummyPacket, //
{CA} DummyPacket, //
{CB} DummyPacket, //
{CC} DummyPacket, //
{CD} ShowMiniMap, //ShowMiniMap
{CE} DummyPacket, //MSN.. ?
{CF} DummyPacket //autoSS
Code:
procedure SetPacketHandler; begin Pointer(Pointer($00514254+6)^):=@PacketHandlerArr; Byte(Pointer($0050F945+1)^):=Length(PacketHandlerArr); end; |
|
|
|
|
#69 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 731
|
Quote:
[offtopic] And you sayd you where not active huh [/offtopic]
|
|
|
|
|
|
#70 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
Livid:
wow dude... send me ur paypal / WM... i wanna donate for that share... |
|
|
|
|
#71 |
|
Архивный участник
Join Date: Jun 2005
Posts: 258
|
Any update on your project mcrabben?
|
|
|
|
|
#72 | |
|
Архивный участник
Join Date: Dec 2005
Posts: 242
|
Quote:
|
|
|
|
|
|
#73 | ||
|
Архивный участник
Join Date: Mar 2006
Posts: 82
|
Quote:
Hope that this project wont become payable
|
||
|
|
|
|
#74 |
|
Архивный участник
Join Date: Jul 2005
Posts: 50
|
yes i whant to help al littel but
|
|
|
|
|
#75 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
I'll share the Party functionality fix, since I got some parts of the fix from files out there.
It's all in assembly, since that was the easiest way to do it, considering how I have to keep everything in certain registers and all. I could do it all in C++, but, more effort than it is worth. Code:
const DWORD * TEMPLATE_GET_USER = (DWORD *)0x00517B90; const DWORD * TEMPLATE_GET_USER2 = (DWORD *)0x0058C8B6; const DWORD * TEMPLATE_GET_USER3 = (DWORD *)0x00406970; const DWORD * TEMPLATE_GET_USER4 = (DWORD *)0x0041E4D0; Code:
// Fixes the RequestParty functionality in C4 by converting the
// charName string passed in the packet back into an ObjectID.
//
// Parameters:
// DWORD * pBuffer - address of the packet sent by the client
//
void RequestPartyFix(DWORD * pBuffer)
{
__asm
{
mov ebx, pBuffer
lea esi, [ebx+1]
push esi
call FindUserByCharName
or eax, eax
jz UserNotFound
mov ecx, [eax+18h]
//Start String Loop
push ecx
add ebx, 1 //set ebx to point to the first wchar in the string
xor eax, eax
xor ecx, ecx
StringLoop:
cmp ecx, 16 //if we have searched for 16 characters, give up.
je EndStringLoop //jump so we prevent a buffer overrun attack
mov ax, [ebx] //copy our wchar value
add ebx, 2 //move our pointer to the next wchar in the string
add ecx, 1
cmp ax, 0 //see if this is the null-terminated part of the string
jnz StringLoop //if not, loop and keep searching
EndStringLoop:
pop ecx
//End String Loop
mov eax, [ebx] //copy lootType
mov ebx, pBuffer
mov [ebx+1], ecx //mov objectID to pBuffer+1
mov [ebx+5], eax //mov lootType to pBuffer+5
mov word ptr [ebx+9], 0599h
//mov word ptr [ebx+9], 0 //zero out pBuffer+9
mov word ptr [ebx-2], 0Bh //set packet length to 11 bytes
jmp RequestPartyFixExit
UserNotFound:
xor eax, eax
mov [ebx+1], eax
mov [ebx+5], eax
RequestPartyFixExit:
}
}
// Converts a charName into a character User struct by finding
// a User struct for that charName. ObjectID is inside of it.
//
// Parameters:
// DWORD * charName - address of a wstring name (offset wchar * charName)
//
Naked DWORD * FindUserByCharName(DWORD * charName)
{
__asm
{
PUSH EBP
MOV EBP,ESP
ADD ESP,-4Ch
PUSH EBX
PUSH EDI
PUSH ESI
LEA EAX,DWORD PTR SS:[EBP-4Ch] //our 64 byte buffer
PUSH EAX
PUSH DWORD PTR SS:[EBP+8h] //charName
CALL TEMPLATE_GET_USER
ADD ESP,8h
SUB ESP,124h
MOV ESI,ESP
XOR EBX,EBX
MOV DWORD PTR DS:[ESI+120h],8Bh
MOV DWORD PTR DS:[ESI+11Ch],EBX
MOV WORD PTR DS:[ESI+4h],BX
LEA EDX,DWORD PTR SS:[EBP-4Ch] //our 64 byte buffer
PUSH EDX
CALL TEMPLATE_GET_USER2
ADD ESP,4
MOV ECX,ESI
MOV EDX,EAX
LEA EAX,DWORD PTR SS:[EBP-4Ch] //our 64 byte buffer
PUSH EDX
PUSH EAX
CALL TEMPLATE_GET_USER3
MOV ECX,16922550h
LEA EAX,DWORD PTR SS:[EBP-0Ch] //our 12 byte objectID holder
PUSH EAX
CALL TEMPLATE_GET_USER4
MOV EAX,DWORD PTR SS:[EBP-0Ch] //return our User struct (pUser)
POP ESI
POP EDI
POP EBX
LEAVE
RETN 4
}
}
Code:
// Fixes the AskjoinParty packet that is sent to the client.
// Will send the charName instead of the objectID, as well
// as the proper loot type.
Naked void AskJoinPartyPacketFix()
{
__asm
{
mov ecx, [ebp-14h]
mov edx, [esi+0F54h]
lea edx, [edx+0A0h]
push ecx //loot type
push edx //charName
push 4Bh //packet header
push FORMAT_JOINPARTY //format 'cSd'
push eax //pSocket
call CSOCKET_SEND
add esp, 20 //fix our stack pointer
push 510A4Dh
retn
}
}
If someone has my code, the RequestPartyFix is called from the correct case (0x29) and will automatically fix the packet. The other fix for the AskJoinPartyPacket should be easy to find if you know how to search for packet functions in the L2Server. If not, there are tools and files out there to help you. A note to everyone: I still want to help everyone out there with more code, but at the same time, I will not force myself to code for so much time, only to give it all away. I know a lot of people here want to learn, and that is why this thread was started. So you can learn. There are lots of examples in my older versions, as well as code snippets throughout this thread. The DLL is just barely mature enough to finally be used live, coupled with the correct EXE. It has been running well, which is nice. The couple of us that work on this project hope to keep working on this as we go, and see how it all comes along. |
|
|
|
|