Sending Packets

07/26/2013 05:02 ntldr32#361
oh man, i feel like a stupid here, there is nothing wrong with that function, and all the ids sre correct,:facepalm:
i just "FORGET TO MOVE TO TARGET" b4 i call "useSkill". omg lol:awesome:
07/28/2013 23:44 ntldr32#362
Quote:
Originally Posted by Interest07 View Post
Move struct:

PHP Code:
Imports pwi_lib
Public Class movement
    
Public Sub moveTo(ByVal targetID As Integer)
        
Dim targetXtargetYtargetZ As Single
        Dim mob 
As New monsters
        
For As Integer 0 To mob.count 1
            
If targetID mob.getMonsterID(iThen
                targetX 
mob.getX(i)
                
targetY mob.getY(i)
                
targetZ mob.getZ(i)
                
moveTo(targetX 1targetY 1targetZ0)
            
End If
        
Next
    End Sub
    
Public Sub moveTo(ByVal X As SingleByVal Y As SingleByVal Z As SingleByVal height As Single)
        
Dim client As New e_client
        Dim pr_handle 
As Integer e_client.PROCESS_INFORMATION
        Dim ofs 
as New offsets
        Dim actionStruct 
As Integer MemFunctions.MemReadInt(pr_handlee_client.CHAR_DATA_BASE ofs.ACTIONSTRCT2_Offset)
        
Dim actionList As Integer MemFunctions.MemReadInt(pr_handleactionStruct 48)
        
Dim moveAction As Integer MemFunctions.MemReadInt(pr_handleactionList 4)
        
Dim flag As Integer MemFunctions.MemReadInt(pr_handlemoveAction 100)
        
MemFunctions.MemWriteInt(pr_handlemoveAction 80)
        
MemFunctions.MemWriteInt(pr_handlemoveAction 241)
        
MemFunctions.MemWriteFloat(pr_handlemoveAction ofs.ActionMoveX_OffsetX)
        
MemFunctions.MemWriteFloat(pr_handlemoveAction ofs.ActionMoveY_OffsetY)
        
MemFunctions.MemWriteFloat(pr_handlemoveAction ofs.ActionMoveZ_OffsetZ)
        
MemFunctions.MemWriteFloat(pr_handlemoveAction ofs.ActionHeight_OffSetheight)
        
MemFunctions.MemWriteInt(pr_handlemoveAction 100flag 1)
        
MemFunctions.MemWriteInt(pr_handlemoveAction 1080)
        
MemFunctions.MemWriteInt(pr_handlemoveAction + &H2C0)
        
MemFunctions.MemWriteInt(pr_handleactionStruct + &HCmoveAction)
        
MemFunctions.MemWriteInt(pr_handleactionStruct + &H181)
        
MemFunctions.MemWriteInt(pr_handleactionStruct + &H14moveAction)
    
End Sub
End 
Class 
Is it safe if I do this?, I mean what if i ignore the parameter "height", can make me banned?
07/29/2013 00:31 Murmuring#363
Quote:
Originally Posted by ntldr32 View Post
I mean what if i ignore the parameter "height", can make me banned?
hm banned i dont know...while testing stuff i made so much critical or invalid actions and none of my accounts got banned.
but if you dont use height on moving, your bot never work for flying or swimming mobs.
like using range chars and try then to move to mob for looting...
so what is the point on dont use height :confused:
07/29/2013 01:05 Sᴡoosh#364
Server doesn't log faulty packets or setbacks based on geo calculation. Wrong height doesn't get you banned. When setback happens, players don't even get your wrong position - server only broadcasts new movement vector if it is legal. So, GMs don't notice your heightmap error either.
07/29/2013 19:52 ntldr32#365
Quote:
Originally Posted by Murmuring View Post
so what is the point on dont use height :confused:
bcos i dont know what is "height" on that function,
is that the Z cordinat that count from sea level (like geologist count the height of a mountain),
or its a number count from ground level (like arcitech count the height of a building)?, idk,...
i also need to know how to stop movement after we reach the requirmnt skill range,
so far to stop movement i do move to my current coordinat after reach the requird range for skill.
07/29/2013 21:59 Murmuring#366
take a look in the link and at page 23 for more info ;)
[Only registered and activated users can see links. Click Here To Register...]
07/29/2013 23:58 Interest07#367
To stop use the idle action struct.Height is the height you fill in when you alt + click on a point in the map (to fly somewhere)
08/12/2013 00:26 somatando#368
I found all offsets that i need, only except is the item list base, don't know how to find...
can anyone help me?
08/12/2013 11:03 dumbfck#369
You should be able to find pretty much everything you need via the [Only registered and activated users can see links. Click Here To Register...]
Edit: Whoops, I somehow posted this in the wrong thread lol. I posted the current list offsets [Only registered and activated users can see links. Click Here To Register...] the other day...
08/12/2013 17:33 somatando#370
Quote:
Originally Posted by dumbfck View Post
You should be able to find pretty much everything you need via the [Only registered and activated users can see links. Click Here To Register...]
Edit: Whoops, I somehow posted this in the wrong thread lol. I posted the current list offsets [Only registered and activated users can see links. Click Here To Register...] the other day...
My pw is pwbr, so i think it have different offsets.
but gonna try, thanks! :)
10/12/2013 10:42 oneormore#371
I can get send packet in your tools :

realBaseAddress=0xB8FBCC
SendPacketAddress=0x415A7E7020000000 --??? send packet is wrong?
playerCounterOffset=0x00000980
playerIntervalOffset=0x00000934

And, How I can use sendpacket target mod_id?

Sry, My english very bad ^^
10/14/2013 13:49 Stark77#372
Hi everyone - i got a question related to genie skills:

Thanks again to Interest for sharing this - so the structure should be like this:
7400<skill id>0001<target id>

As for SkillID of Extrem Poison (ID=972 -> 03 cc) and
my targetID (ID=-2146419000-> 46 41 90 00)

I think i should send thisPacket: 7400 CC03 0001 00904146

But the game tells me "Unable to cast genie skill."
Anyone knows what iam doing wrong?

____

BTW: 7400FE030001701F0500 is working just fine for holy path
10/23/2013 02:38 MotAiDo#373
Function SellItem not run. Please help me!

Tks!

packet = "2500"
packet &= "02000000"
packet &= "10000000" 'nBytes following
packet &= "01000000" 'nDifferent items being sold
packet &= Int2Hex(itemTypeId)
packet &= Int2Hex(invIndex)
packet &= Int2Hex(amount)
10/25/2013 11:06 Salll#374
Quote:
Originally Posted by Interest07 View Post
Just in case you don't have the action structs...


Follow:

Interaction struct (regular attack, pickup item, initiate dialogue with npc, use skill or harvest resource):


Move struct:

Im trying to useskill with the code on my bot, I have to convert it into vb language and this is my code.

interactWith sub

I've tried it in PW-ID and just got a report bug:(
anybody can explain it?:handsdown:
11/24/2013 06:34 Smurfin#375
Quote:
Originally Posted by Interest07 View Post
I use MHS to set a breakpoint at the sendPacketFunction (0x659450 in PWI atm) to run this script:

Code:
void On_BP_1(LPVOID lpvAddress, LPPROC_INFO_MHS lpProcInfo)
{
	DWORD pktSize_ptr = lpProcInfo->pcContext->Esp+8;
	DWORD pktSize = 0;
	
	ReadProcessMemory(lpProcInfo->hProcess, (void *)pktSize_ptr, &pktSize, 4, NULL);
	
	DWORD pkt_ptr_ptr = lpProcInfo->pcContext->Esp+4;
	DWORD pkt_ptr = 0;
	BYTE bp_newpacket[255] = {0};
	char bp_packet[1024] = {0};	

	ReadProcessMemory(lpProcInfo->hProcess, (void *)pkt_ptr_ptr, &pkt_ptr, 4, NULL);
	ReadProcessMemory(lpProcInfo->hProcess, (void *)pkt_ptr, &bp_newpacket, pktSize, NULL);
	
	for (int i = 0; i < pktSize; i++){
		SPrintF(&bp_packet[i*3], "%02X ", bp_newpacket[i]);
	}

	DWORD callingFunctionAddress = 0;
	DWORD callingfunctionAddress_ptr = lpProcInfo->pcContext->Esp;
	
	ReadProcessMemory(lpProcInfo->hProcess, (void *)callingfunctionAddress_ptr, &callingFunctionAddress, 4, NULL);
	



PrintF("[%08X] Packet: %s",callingFunctionAddress, bp_packet);
}
Hi Interest07,

I had opened process elementclient.exe in mhs, open disassambler in it, then went to sendpacketaddress (0x6F55E0 for indo) , opened script editor, saved it to On_BP_1.lss (it's On_BP_1 , one, right ?) in mhs folder, but nothing happened.

when should I start seeing packets coming ? or maybe I missed something :(:confused::( , also, the add breakpoint menu setting only has script function and parm, there is no setting to point it to the script file, how mhs knows where to run the script.

here is the screenshot, please check what's missing to be done
[Only registered and activated users can see links. Click Here To Register...]