[Help] Killer system not working 99.62T

Results 1 to 8 of 8
  1. #1
    Proficient Member AmitNet is offline
    MemberRank
    Oct 2012 Join Date
    ILLocation
    156Posts

    [Help] Killer system not working 99.62T

    Hello ragezone, I took the source code from these files:
    http://forum.ragezone.com/f197/files...t-chs-1094548/
    Trying to make a similiar "Killer" system for my castle siege server.
    The killer system sends a message to the target and to the killer that he kills (or died).
    (The only difference is that instead of sending the message to each of them it will posted as global message and shows the "kill log")
    The problem is that it's not working. Please check my code:

    PHP Code:
    void GCDiePlayerSend_Hook(OBJECTSTRUCTlpObjint TargetIndexunsigned char skillint KillerIndex)
    {
        
    SYSTEMTIME t;
        
    GetLocalTime(&t);

        if(
    gObj(TargetIndex)->Type == && gObj(KillerIndex)->Type == 1)
        {
            if(
    TargetIndex != KillerIndex)
            {
                
    char Msg[70];
                
    sprintf(Msg"[%d:%d:%d] %s killed %s"t.wHourt.wMinutet.wSecondgObj(KillerIndex)->NamegObj(TargetIndex)->Name);
                for (
    int i OBJECT_MINOBJECT_MAXi++)
                {
                    
    OutYellowMSG2(""Msgi);
                }


            }
        }

        
    GCDiePlayerSend(lpObjTargetIndexskillKillerIndex);

    func.HookThis((DWORD)&GCDiePlayerSend_Hook,0x00401082);
    #define GCDiePlayerSend ((void(*)(OBJECTSTRUCT* lpObj, int TargetIndex, BYTE skill, int KillerIndex)) 0x0043EA00) // OK
    Thanks.
    Last edited by AmitNet; 09-12-18 at 01:47 AM.


  2. #2
    Proficient Member AmitNet is offline
    MemberRank
    Oct 2012 Join Date
    ILLocation
    156Posts

    re: [Help] Killer system not working 99.62T

    up...

  3. #3
    Proficient Member AmitNet is offline
    MemberRank
    Oct 2012 Join Date
    ILLocation
    156Posts

    re: [Help] Killer system not working 99.62T

    up....

  4. #4
    Proficient Member AmitNet is offline
    MemberRank
    Oct 2012 Join Date
    ILLocation
    156Posts

    re: [Help] Killer system not working 99.62T

    edit: need the offset for GCDiePlayerSend 99.62T

  5. #5
    Proficient Member AmitNet is offline
    MemberRank
    Oct 2012 Join Date
    ILLocation
    156Posts

    re: [Help] Killer system not working 99.62T

    Quote Originally Posted by AmitNet View Post
    edit: need the offset for GCDiePlayerSend 99.62T
    up...

  6. #6
    Proficient Member AmitNet is offline
    MemberRank
    Oct 2012 Join Date
    ILLocation
    156Posts

    re: [Help] Killer system not working 99.62T

    bump

  7. #7

    Re: [Help] Killer system not working 99.62T

    this?
    #define GCDiePlayerSend ((void(*)(LPOBJ lpObj, int TargetIndex, BYTE skill, int KillerIndex)) 0x00425BB0)

    MU97D offsets.h - download source codes. - program 1137038

    or

    00401091 > $ |E9 0A2A0400 JMP GameServ.00443AA0 ; GCDiePlayerSend
    gsprotocol.txt 源代码在线查看 - 读取两个文本文件 资源下载 虫虫电子下载站

  8. #8
    Proficient Member AmitNet is offline
    MemberRank
    Oct 2012 Join Date
    ILLocation
    156Posts

    Re: [Help] Killer system not working 99.62T

    Quote Originally Posted by KarLi View Post
    this?
    #define GCDiePlayerSend ((void(*)(LPOBJ lpObj, int TargetIndex, BYTE skill, int KillerIndex)) 0x00425BB0)

    MU97D offsets.h - download source codes. - program 1137038

    or

    00401091 > $ |E9 0A2A0400 JMP GameServ.00443AA0 ; GCDiePlayerSend
    gsprotocol.txt 源代码在线查看 - 读取两个文本文件 资源下载 虫虫电子下载站
    I need for Castle-Siege



Advertisement