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:
After:
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:
Now change following:
Event NPC Extend
Open WorldSvr.bin in 010 Editor press CTRL+G and jump to the following Addresses:
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 :
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.
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:
[B]405E74[/B]
Offset1 (2 values) 90 90
[B]405FD2[/B]
Offset2 (6 values) 90 90 90 90 90 90
[B]407F15
[/B]
Offset3 (2 values) 90 90
[B]407ED3h
[/B]
Offset4 (18 values) 90 90 90 90 90 90 ...
[B]407EE9h
[/B]
Offset5 (6 values) 90 90 90 90 90 90
[B]40805C
[/B]
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: