Sending Packets

09/28/2010 21:23 Interest07#31
Well, in order to pick up particular stuff you need to look in memory to see what's lying on the floor / what resources are around. Then get the ID of the one you wish to pick and use that in the packet you are sending.
09/29/2010 13:46 maniack88#32
thanks interest07 for the enlighten, but how do i use the command as it has two item id, one is own items, and other is from the pwdatabase..

pickUpItem($uniqueItemId, $itemTypeId, $pid)

should i move the uniqueItemId as i only want to pickup certain item on the ground. thx in advance
09/29/2010 18:45 Interest07#33
You pick up items as follows using the packets:

-Get the item list from memory
-For each item in the list:
*Check it's itemTypeId to see if it is useful
*If yes, get its location and uniqueItemId
-Move to the item you want
-pickupitem using the itemTypeId and uniqueItemId you got from the item list

Both id's should be right next to eachother in memory, so it shouldn't be a problem to get one if you have the other.
10/04/2010 20:15 heroceasar7384#34
@Interest07: Can U show me how to use the Function handInQuest($questId,$optionIndex, $pid)

I don't know how to find the $questId, pls show me how to find the questId , thanks you.

I used this Function after call function startNpcDialogue($npcId, $pid)

Help me pls, thanks

Sorry, my Engish is bad!
10/04/2010 21:06 chuckleeyahoo.com#35
now i got me pro macros for afk'ing bosses :D
thanks man the macro system they got sux balls serious
1/2 the time the macro jams and stops working
some times they wont work at all
i made a macro i tried to make ingame and even hotkeyed it to a blank skill button so its like a real skill but my autoit script gets ran :D

1 thing i was trying to use the fly mount packet send which index number is fly mount?
i changed equip to 1 but what do i put for index number?
what is the order for equipment

i dont wanna be sending 100 bad packets trying to figure it out
10/04/2010 22:46 Interest07#36
Quote:
Originally Posted by heroceasar7384 View Post
@Interest07: Can U show me how to use the Function handInQuest($questId,$optionIndex, $pid)

I don't know how to find the $questId, pls show me how to find the questId , thanks you.

I used this Function after call function startNpcDialogue($npcId, $pid)

Help me pls, thanks

Sorry, my Engish is bad!
If you go to http://www.pwdatabase.com for example and look for volume 1 for world quest you'd end up here:
http://www.pwdatabase.com/ms/quest/8398

8398 is the questId.




Quote:
Originally Posted by chuckleeyahoo.com View Post
now i got me pro macros for afk'ing bosses :D
thanks man the macro system they got sux balls serious
1/2 the time the macro jams and stops working
some times they wont work at all
i made a macro i tried to make ingame and even hotkeyed it to a blank skill button so its like a real skill but my autoit script gets ran :D

1 thing i was trying to use the fly mount packet send which index number is fly mount?
i changed equip to 1 but what do i put for index number?
what is the order for equipment

i dont wanna be sending 100 bad packets trying to figure it out
flyGear is located at equipmentIndex 0xC
10/05/2010 14:17 DIAsko#37
Hello! If anyone knows C # how to write on it the function of sending packets
I've written here but when you run a PW crashes.

Quote:

asm.cs

public int GetAddress_2(int pid, byte[] dat)
{
int hwnd = OpenProcess(PROCESS_ALL_ACCESS | PROCESS_CREATE_THREAD | PROCESS_VM_WRITE, 0, pid);
int pAdr = VirtualAllocEx(hwnd, 0, dat.Length, MEM_COMMIT, 4);
WriteProcessMemory(hwnd, pAdr, dat, dat.Length, 0);
return pAdr;
}

main.cs

public void test_pack_send() {

int processID = nobleMemory.GetProcessID("elementclient", "Perfect World");
int BaseAddress = 0x009C0E6C;
int CallAddress = 0x005D7C30;
byte[] data = Encoding.Unicode.GetBytes("2e00"); // Сесть на медитацию
ASM asm = new ASM();
int pAdr = asm.GetAddress_2(processID, data);

asm.Pushad();
asm.Mov_ECX(BaseAddress);
asm.Mov_ECX_DWORD_Ptr_ECX();
asm.Mov_ECX_DWORD_Ptr_EAX_Add(0x20);

asm.Push68(2);
asm.Push68(pAdr);

asm.Mov_EAX(CallAddress);
asm.Call_EAX();
asm.Popad();
asm.Ret();
asm.RunAsm(processID, 0);


}
10/05/2010 14:26 heroceasar7384#38
@ Interest07 :
this is simple picture from PW Vietnam :

[Only registered and activated users can see links. Click Here To Register...]

Can you use the sendpacket function to auto select the option in list after used Func startNpcDialogue($npcId, $pid)

The ID of this NPC in PW Vietnam is 2148553236

If you can use packet function to auto select the option in the picture, I think the Func RepairAllItem will be perfect.

Don't tell me you're using ControlClick to select that option :D

Thanks for read
Sorry, My English is bad :D

Wait reply from you :)
10/05/2010 16:21 Interest07#39
The packets work without regard for what's shown in the menu. You simply start the npc dialogue, and then send the packet for repairAll. You do not need to select any options in the NPC menu.


As to the C# code:

asm.Mov_ECX(BaseAddress);
asm.Mov_ECX_DWORD_Ptr_ECX();
asm.Mov_ECX_DWORD_Ptr_EAX_Add(0x20);

should be
asm.Mov_ECX(BaseAddress);
asm.Mov_ECX_DWORD_Ptr_ECX_Add(0x20);

as far as i can tell (don't know how that asm class works)

And why don't you just use
byte[] data = {0x2E, 0x00};
Not that I suppose it matters, just wondering :)
10/05/2010 16:49 heroceasar7384#40
Quote:
Originally Posted by Interest07 View Post
The packets work without regard for what's shown in the menu. You simply start the npc dialogue, and then send the packet for repairAll. You do not need to select any options in the NPC menu.
Is that right ? I will test and hope is true :D
So, thanks a lot interest07 :)
10/12/2010 05:11 serpentmind#41
Hi Interest07, do you have the code for target auto-follow?
10/12/2010 10:49 Interest07#42
Quote:
Originally Posted by serpentmind View Post
Hi Interest07, do you have the code for target auto-follow?
try [Only registered and activated users can see links. Click Here To Register...]
10/12/2010 11:20 wafs#43
Does this means you guys can send packets like makes your char gain reputation/fame even without items? Go rank 8 easily?
10/12/2010 12:23 Interest07#44
No, packets are simply how the client tells the server what you are doing. There is only a fixed number of different messages the server will understand, and none of those involve telling it you have gained exp/reputation/money/items :P
10/13/2010 07:33 Smurfin#45
yea, I have tried sending the ghost soldier pass accepting quest packet at npc near furnace that gives 5 rep and it replied with something like no such item in possession.

even though we have the right packet it still checks whether or not it meets the basic requirement :(