[Help] duration SP

Results 1 to 10 of 10
  1. #1
    Valued Member killuas is offline
    MemberRank
    Aug 2012 Join Date
    UkraineLocation
    143Posts

    note [Help] duration SP

    how to reduce or increase the time duration SP ?


  2. #2
    struct { int:-!!(1); } Aesir is offline
    MemberRank
    May 2015 Join Date
    MadnessLocation
    279Posts

    Re: [Help] duration SP

    MPOptionParam1 in database.

  3. #3
    Valued Member killuas is offline
    MemberRank
    Aug 2012 Join Date
    UkraineLocation
    143Posts

    Re: [Help] duration SP

    Quote Originally Posted by Aesir View Post
    MPOptionParam1 in database.
    I have a value of 120
    120 indicates 2:00
    strategic point of time is 1:00
    then instead of the 120 to be 60 ?

  4. #4
    struct { int:-!!(1); } Aesir is offline
    MemberRank
    May 2015 Join Date
    MadnessLocation
    279Posts

    Re: [Help] duration SP

    The method for save the time (of create and even determine the end/duration time) is made through the GetTickCount() in c++ (winbase.h header - in this case included in windows.h in stdafx.h), then you don't have a measure in seconds or minutes, but in Tick.
    As you see in the piece of code above the DWORD is multiplied for 60 and after for 1000 before being compared with the m_dwTimeCreated value (with value assigned by m_dwCurrentTick variable).

    Code:
    DWORD dwLiveTime = ptmpNPCMonster->MonsterInfoPtr->MPOptionParam1*60*1000;
                        if(dwLiveTime < i_dwCurrentTick-ptmpNPCMonster->m_dwTimeCreated)
    Last edited by Aesir; 27-11-15 at 11:08 PM.

  5. #5
    [Help] duration SP Future is offline
    LegendRank
    Dec 2011 Join Date
    2,265Posts

    Re: [Help] duration SP

    I don't know where in the code it was, but I remember that the sp time specified in MPOptionParam1 gets devided by 2 for the normal strategic point time it lives.

    Those 120 minutes are the time that it lives in case if a mothership war ;)

  6. #6
    This is my title !!!! sami37 is offline
    MemberRank
    Jun 2010 Join Date
    287Posts

    Re: [Help] duration SP

    When I try to use this option, it seemed she was serving to activate an automatic unspawn

  7. #7
    Valued Member killuas is offline
    MemberRank
    Aug 2012 Join Date
    UkraineLocation
    143Posts

    Re: [Help] duration SP

    I changed the value of 60 and then change the value to 30
    but in creating a strategic point of the message that the time 1:00
    It must also write 30 minutes or less ....

    as message 1 hour and the duration of the point goes for 1 hour.
    the value of which I changed to 60 or 30 does nothing

  8. #8
    Enthusiast Brian Do is offline
    MemberRank
    Apr 2012 Join Date
    49Posts

    Re: [Help] duration SP

    check .dat

  9. #9
    Valued Member killuas is offline
    MemberRank
    Aug 2012 Join Date
    UkraineLocation
    143Posts

    Re: [Help] duration SP

    Quote Originally Posted by Brian Do View Post
    check .dat
    What should I check in .dat? I haven't found the SP time

    - - - Updated - - -

    Quote Originally Posted by Aesir View Post
    The method for save the time (of create and even determine the end/duration time) is made through the GetTickCount() in c++ (winbase.h header - in this case included in windows.h in stdafx.h), then you don't have a measure in seconds or minutes, but in Tick.
    As you see in the piece of code above the DWORD is multiplied for 60 and after for 1000 before being compared with the m_dwTimeCreated value (with value assigned by m_dwCurrentTick variable).

    Code:
    DWORD dwLiveTime = ptmpNPCMonster->MonsterInfoPtr->MPOptionParam1*60*1000;
                        if(dwLiveTime < i_dwCurrentTick-ptmpNPCMonster->m_dwTimeCreated)
    Do I need to change the code?
    Last edited by killuas; 28-11-15 at 06:57 PM.

  10. #10
    Retired (Goddamn idiots) DragonLord is offline
    MemberRank
    Dec 2003 Join Date
    /dev/urandomLocation
    554Posts

    Re: [Help] duration SP

    I just fail to understand the predicament here.
    Why don't you open the game's source? You'll see all the information you need to know about the map files (.dat) as well as all the code relevant to the thing you're looking for.
    Why is reading so difficult for your lot?

    If you can not work with code, you should either study a bit and learn the who and the what and the where, or just move swiftly along and never look back.
    Please, stop wasting everyone's time and do as suggested.



Advertisement