[Release] Server Buffs based on Online Player Count

02/23/2019 16:53 campomanes25#16
please help me with these errors [Imgur]([Only registered and activated users can see links. Click Here To Register...])
02/26/2019 15:04 -Valor#17
Quote:
Originally Posted by campomanes25 View Post
please help me with these errors [Imgur]([Only registered and activated users can see links. Click Here To Register...])
Check your code on User.cpp en User.h. Misplaced lines can cause this error.
03/03/2019 13:50 DerHeiligeJesus#18
System does not work for me. Compiled without problems, but get no buff if i reach the count.
04/27/2019 11:04 TestUrSkillz#19
Hey there.
Can anyone send one line for the propItem entries ?
06/20/2019 15:27 matonskie23#20
Quote:
Originally Posted by TestUrSkillz View Post
Hey there.
Can anyone send one line for the propItem entries ?
BUFF_ITEM
II_SYS_SYS_LS_CHEERING
06/21/2020 16:23 aoyamananami#21
Quote:
Originally Posted by Naltalah View Post
Edit: The consensus of the feedback so far is, that this code is very performance inefficient. If I have the time, I will rewrite the code and reupdate.

I coded this for a friend and thought why not share it with everyone.

Disclaimer: I'm still kind of new to coding, so if you have any suggestions on how to improve the code, let me know <3

I won't be adding a guide on how to create the items that are used as the a buff, there are enough guides on that out there.

ProjectCmn.cpp


Project.cpp


Project.h


User.h


User.cpp


VersionCommon.h (WorldServer)

add this:

PHP Code:
#define        __SYS_ONLINECOUNT_BUFFS
#ifdef __SYS_ONLINECOUNT_BUFFS
#define        __SYS_ONLINECOUNT_BUFFS_MODE    1    // 0 = Only highest buff will be active, 1 = All buffs will be active
#endif // __SYS_ONLINECOUNT_BUFFS 
Resource

You will need to create a new file called onlinebuff.inc.

It has to look like this:

PHP Code:
// dwBuffID                     Online Count
II_ONLINEBUFF_LEVEL1            10
II_ONLINEBUFF_LEVEL2            20 
First comes the ID of the buff, after that the amount of users that have to be online to apply this buff.

Please note that this does not work for multiple channels.

I also added these instruction as an attachment if you want to save it for later.
i do have get error in user.cpp


please help.
07/04/2020 15:21 foreks73#22
Hello everybody!Help.where to define EventDrop.lua so that the server reads it, except for LuaFunc
01/02/2022 05:06 foreks73#23
help please fix
1> User.cpp (11189): Warning C4244: Argument: Convert "DWORD" to "WORD", possible data loss
1> User.cpp (11190): warning C4244: argument: convert "DWORD" to "WORD", possible data loss
1> User.cpp (11194): warning C4244: argument: convert "DWORD" to "WORD", possible data loss
1> User.cpp (11195): warning C4244: argument: convert "DWORD" to "WORD", possible data loss
1> User.cpp (11220): Warning C4244: Argument: Convert "DWORD" to "WORD", possible data loss