[Release] Server Buffs based on Online Player Count
Discussion on [Release] Server Buffs based on Online Player Count within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.
[Release] Server Buffs based on Online Player Count
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.
#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.
I mean the function is being defined only for WorldServer and is being used by WorldServer,Neuz and Database server as the error tells you. Without checking the code I'd suggest adding a #ifdef __WORLDSERVER arround the LoadOnlineCountFile() function.
When you check your screen shot you posted you see that the snippet in project.h is grayed out which means that the compiler skips this snippet when compiling neuz and databaseserver... unfortunate when you tell him to use the function in the .cpp file for those projects aswell
I mean the function is being defined only for WorldServer and is being used by WorldServer,Neuz and Database server as the error tells you. Without checking the code I'd suggest adding a #ifdef __WORLDSERVER arround the LoadOnlineCountFile() function.
When you check your screen shot you posted you see that the snippet in project.h is grayed out which means that the compiler skips this snippet when compiling neuz and databaseserver... unfortunate when you tell him to use the function in the .cpp file for those projects aswell
Navicat [Err1136] - Column count doesn't match value count at row 1 02/21/2012 - Metin2 Private Server - 2 Replies Hallöchen Liebe Com,
Als ich gerade in der Querry Table auf meinem Server die 80er Rüstungen erneut einfügen wollte, stoß ich auf diesen Fehler:
INSERT INTO `item_proto` VALUES ('12039', 'Auraplattenpanzer+9', 'Auraplattenpanzer +9', '2','0','0','2','300','1','1','0','3000','10000',' 1','90','0','0','8','4294967290','37','20','10','4 0','0','154','0','26','0','45','0','64944','127',' 65008','21631','4855','0','0','15','100','3');
1136 - Column count doesn't match value count at row 1
Navicat - [Err] 1136 - Column count doesn't match value count at row 1 01/14/2012 - Metin2 Private Server - 1 Replies Hallo x(
Ich weis nicht ob ich zu doof bin ein loch in den Schnee zu pissen oder ob wirklich was falsch hier ist..
Aufjedenfall muss ich die Querry für die 12 neuen metin steine in Serverside einfügen aber jedesmal bekomme ich die meldung:
INSERT INTO mob_proto VALUES(8028, 'Metin der Hoffnung', 'Metin der Hoffnung', 5, 2, 3, 95, '', 'NOMOVE', 0, '', 'STUN,SLOW,CURSE,TERROR', 0, '', 0, 0, 0, 60, 0, 0, 0, 999999, 5, 1, 184800, 92400, 540, 57, 9529, 9530, 0, 2000, 175, 0, 0, 0, 0, 0, 0, 0,...
column count doesn't match value count value at row 1 fehler beheben. wie? 12/15/2011 - Metin2 Private Server - 1 Replies Hallo Epvp ich habe bei den 1678 serverfiles von daroo diesen fehler hier column count doesn't match value count value at row 1 wenn ich etwas in die item_proto oder in die mob_proto hinzufügen will z.B wenn ich querys einfügen will kommt dieser fehler habe schon alles ausprobiert mit 6 0en hinten dran aber es klappt einfach nichts Bitte helft mir :)
Bitte helft mir :( :(
Daroo Files Lehrer [Err] 1136 - Column count doesn't match value count at row 1 12/08/2011 - Metin2 Private Server - 3 Replies Hallo ,
Wollte bei den Daroo Files die LKehrer bestücken.
Manche habe ich schon doch ich habe ehrlich keine
Lust mehr bekommen. Und habe gehofft das es hier welche
Released haben. Ich habe auch 2 Themen dazu gefunden mit
den Release.
Doch wenn ich sie einfügen will kommt dieser Fehler
1136 - Column count doesn't match value count at row 1