OnScreen Damge (Critical Hit)

Results 1 to 8 of 8
  1. #1
    Apprentice barao45 is offline
    MemberRank
    Sep 2020 Join Date
    7Posts

    OnScreen Damge (Critical Hit)

    Hi people, how are you?. I'm trying to modify a screen on damage in H5, but i dont understand the functions. i have this code but when my PJ makes a Critical hit is painted on orange color but i wanna to show the damage and the word "Critical", could someone give me a hand please?. i can pay for it.

    this is the HandleSystemMessage attached into the post
    Attached Files Attached Files
    • File Type: txt 1.txt (2.3 KB, 5 views)


  2. #2
    C++ Developer zipper20032 is offline
    MemberRank
    Oct 2006 Join Date
    0x198837ADLocation
    663Posts

    Re: OnScreen Damge (Critical Hit)

    You are in the switch-case statement on case 139, which seems to be resist message index and not the critical.

    From this code, the critical message color would be displayed only when the resist is happening and I don't think you can resist and get a critical at the exactly same time.

    Also, I'm not exactly sure why there are 2 switch cases for the same thing.

    What source code files are you using?

  3. #3
    Apprentice barao45 is offline
    MemberRank
    Sep 2020 Join Date
    7Posts

    Re: OnScreen Damge (Critical Hit)

    I dont remember what source i'm using, i used deadz and glock. Now, i'm trying to add messages when the player gain exp or when him receive damage. do you know where must i touch?.

  4. #4
    Apprentice barao45 is offline
    MemberRank
    Sep 2020 Join Date
    7Posts

    Re: OnScreen Damge (Critical Hit)

    What code i should take if i wanna show Message OverHit, 2261 is for single hit but the overshit is made with a skills.

  5. #5
    C++ Developer zipper20032 is offline
    MemberRank
    Oct 2006 Join Date
    0x198837ADLocation
    663Posts

    Re: OnScreen Damge (Critical Hit)

    If possible, the best way to see what indexes are for every message is to debug the server application from your IDE. (breakpointing on vars, functions and methods and see their values in run-time).
    I don't know what's the message index for Overhit. You are using some other sources which I have no knowledge of them which include this message handler.

    Pinpointing you to a location in files is very hard without having your source code tho. I've searched 4 different source codes. None of them have that handler or anything regarding the system messages or damage message handlers.

    From what file of your server source code is this handler tho?

  6. #6
    Apprentice barao45 is offline
    MemberRank
    Sep 2020 Join Date
    7Posts

    Re: OnScreen Damge (Critical Hit)

    Thanks Zipper. I never used de debug in the IDE, i don't know how can i do it and playing the game. It is hard to do it?.

  7. #7
    C++ Developer zipper20032 is offline
    MemberRank
    Oct 2006 Join Date
    0x198837ADLocation
    663Posts

    Re: OnScreen Damge (Critical Hit)

    No, it's not complicated. Go and watch some tutorials about breakpoints.

    If you can run the app directly from IDE after you compiled it, that's debugging, or you have the Run Debug in Eclipse. It should work.

  8. #8
    Apprentice barao45 is offline
    MemberRank
    Sep 2020 Join Date
    7Posts

    Re: OnScreen Damge (Critical Hit)

    One question. Where can i find in the server core the events that shows in the inferface.u?.
    I would like to know what options are with:
    EV_SystemMessage
    EV_AttackForDmg
    Etc.

    and params that are set here

    ParseInt(a_Param,"Index",SystemMsgIndex); I saw that in another part of code in ParseInt i obtain damage that the player does with-> ParseInt(a_Param,"Param3", playerDamage);



Advertisement