View Single Post
Old 09.10.2005, 00:36   #9
Alien003
Архивный участник
 
Join Date: Jun 2005
Posts: 143
Default

well ..i know what is wrong ..just hardcoded the silence effect on my server

im going to think about this tomorrow ..then i post something

the problem is that the packet we are sending is allways sending 0000 instead of calling the function to get the abnormal effect before

*edit*
so you guys can search for it too here goes what I found:

in 0x004961C0 we have the CNPC::SendNPCInfo(User *pUser, bool NewlyCreated) function

a bit down it calls a procedure

Code:
00496636   . E8 B5E71100    CALL C3server.005B4DF0
that procedure PUSHes the last bytes of the NPCinfo packet

if we change the

Code:
005B4DFA  |. B9 00000000    MOV ECX,0
to 01000000 we will get a silence effect on all mobs,
02000000 will make root, and 0300000 will make both of them (same for other effects)

...now we need to find a way to call the CCreature::CheckAbnormalVisualEffect() and make that push correct



I'm in the right way, right? :P
Alien003 is offline