Events & Event NPC Extend

Results 1 to 11 of 11
  1. #1
    Hardcore Member Rostfrei is offline
    MemberRank
    Oct 2018 Join Date
    133Posts

    Events & Event NPC Extend

    Events & Event NPC Extend
    Today i will release the Offsets needed to extend both Events and Event NPCs added in the file Event.scp

    Default Limits are : 1 Event NPC and 10 Events in total

    Event Extend

    Open the procedure called cabal_sp_ems_get_events in your EventData Database.

    Comment out the TOP 10 .

    Before:

    Code:
    SELECT
    TOP 10
    EventID,
    EventType,
    [Option],

    After:

    Code:
    SELECT
    --TOP 10
    EventID,
    EventType,
    [Option],
    Save the procedure.

    ------------------------------------------------------------------------------------------------------------------------------------

    Now you need to change a offset in your DBAgent.bin


    Open DBAgent.bin in 010 Editor press CTRL+G and jump to the following Address:

    Code:
    85940h
    Now change following:

    Code:
    0A > AA
    Event NPC Extend

    Open WorldSvr.bin in 010 Editor press CTRL+G and jump to the following Addresses:

    Code:
    405E74
     
    Offset1 (2 values) 90 90
    
    405FD2
    
    Offset2 (6 values) 90 90 90 90 90 90
    
    407F15
    
    Offset3 (2 values) 90 90
    
    407ED3h
    
    Offset4 (18 values) 90 90 90 90 90 90 ...
    
    407EE9h
    
    Offset5 (6 values) 90 90 90 90 90 90
    
    40805C
    
    Offset6 (6 values) 90 90 90 90 90 90
    Thats it . After it you can add more then 10 Events to more then 1 NPC even on the same Map.


    Known Issues

    The following offsets will cause a Warning in ur Logs similar to this :

    Code:
    [Mon Oct 19 2020 18:23:45.669988 4147828480]: [###INVALID###] 'iNpcsIdx > 0 && iNpcsIdx < MAX_NPCSDATANUM' Failed : File: world1-npc.scp, Table: NpcPos, Row: 0 [World.cpp:614]
    This does not effect ur Server functionality . It is a check which fails now because of the changed offsets. IF you want u can disable this check on ur own.

    -----------------------------------------------------------------------------------------------

    After 18 or 20 enabled Events at the same time which means UseFlag= 1 . The channels crash without Error after some minutes.

    Maybe someone here is able to find the issue and fix it. If so please share it in this post and i will add it.



    If you like this release it would be nice if you hit the thanks Button.
    Last edited by Rostfrei; 20-10-20 at 02:56 PM.


  2. #2
    Ultimate Member Tryout is offline
    MemberRank
    Jul 2020 Join Date
    155Posts

    Re: Events &amp; Event NPC Extend

    I can't find 0A to change into AA in DBAgent bin

    Click image for larger version. 

Name:	Untitled.png 
Views:	32 
Size:	62.2 KB 
ID:	168431

    - - - Updated - - -

    I found it instead of CTRL + F use CTRL + G :D

    - - - Updated - - -


    This 2 offset to left from the searched address or this 2 offset to the right to change 405E74 Offset1 (2 values) 90 90? Sorry I am new with this.
    Last edited by Tryout; 20-10-20 at 06:46 AM.

  3. #3
    Hardcore Member Rostfrei is offline
    MemberRank
    Oct 2018 Join Date
    133Posts

    Re: Events &amp; Event NPC Extend


    Quote Originally Posted by Tryout View Post
    This 2 offset to left from the searched address or this 2 offset to the right to change 405E74 Offset1 (2 values) 90 90? Sorry I am new with this.
    Always the values from the right of ur searched address

  4. #4
    Member uiop is offline
    MemberRank
    Jan 2018 Join Date
    47Posts

    Re: Events & Event NPC Extend

    There is no complete repair.

  5. #5
    Hardcore Member Rostfrei is offline
    MemberRank
    Oct 2018 Join Date
    133Posts

    Re: Events & Event NPC Extend

    Quote Originally Posted by uiop View Post
    There is no complete repair.
    What you mean with complete repair ?

  6. #6
    Member uiop is offline
    MemberRank
    Jan 2018 Join Date
    47Posts

    Re: Events & Event NPC Extend

    I solved it perfectly.The administrator deleted my post.So I can't share it

  7. #7
    Hardcore Member Rostfrei is offline
    MemberRank
    Oct 2018 Join Date
    133Posts

    Re: Events & Event NPC Extend

    Quote Originally Posted by uiop View Post
    I solved it perfectly.The administrator deleted my post.So I can't share it
    This offsets i shared working normally. I am using like 5 Event NPCs with 15 Active Events etc ...

  8. #8
    Lurker AzureSensei is offline
    ModeratorRank
    Aug 2013 Join Date
    RageZoneLocation
    277Posts

    Re: Events & Event NPC Extend

    Quote Originally Posted by uiop View Post
    I solved it perfectly.The administrator deleted my post.So I can't share it
    I've clearly stated why your "perfect solution" aka image has been deleted, if you would like a reminder: post some sort of a pointers for people to solve the issue, rather than posting an image of something that you have not done yourself, but claiming to do so, or don't reply in thread at all.
    Like or Rep is the best way to show appreciation!

  9. #9
    Member ifahits is offline
    MemberRank
    Jan 2018 Join Date
    Cabal SectionLocation
    55Posts

    Re: Events & Event NPC Extend

    Thankyou for sharing
    btw this eventnpc can i make another event npc on any map like yul example PORTLUX ?

  10. #10
    Hardcore Member Rostfrei is offline
    MemberRank
    Oct 2018 Join Date
    133Posts

    Re: Events & Event NPC Extend

    Quote Originally Posted by ifahits View Post
    Thankyou for sharing
    btw this eventnpc can i make another event npc on any map like yul example PORTLUX ?
    Yes you can. Just add second NPC to Event.scp and it will work normally.

  11. #11
    Ultimate Member Tryout is offline
    MemberRank
    Jul 2020 Join Date
    155Posts

    Re: Events & Event NPC Extend

    Waiting for the said issue in disconnecting if has 18/20 events, and also how can I disable this MAX_NPCSDATANUM?



Advertisement