• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

How to add new effects

KylerXX

Active Member
Joined
Jun 24, 2010
Messages
439
Reaction score
31
I try add new effects editing tools.cpp and const.h but if I add on compiling when I put the .exe on my server I open, ok, normally, but when I create an account an I want to enter, the .exe crash...
 
itemloader.h
Code:
enum clientVersion_t
{
	CLIENT_VERSION_750 = 1,
	CLIENT_VERSION_755 = 2,
	CLIENT_VERSION_760 = 3,
	CLIENT_VERSION_770 = 3,
	CLIENT_VERSION_780 = 4,
	CLIENT_VERSION_790 = 5,
	CLIENT_VERSION_792 = 6,
	CLIENT_VERSION_800 = 7,
	CLIENT_VERSION_810 = 8,
	CLIENT_VERSION_811 = 9,
	CLIENT_VERSION_820 = 10,
	CLIENT_VERSION_830 = 11,
	CLIENT_VERSION_840 = 12,
	CLIENT_VERSION_841 = 13,
	CLIENT_VERSION_842 = 14,
	CLIENT_VERSION_850 = 15,
	CLIENT_VERSION_854 = 16,
	CLIENT_VERSION_857 = 17,
	CLIENT_VERSION_860 = 18,
	CLIENT_VERSION_860_OT = 19	
};
items.cpp
Code:
	else if(Items::dwMinorVersion != 19)
	{
		std::cout << "[Error - Items::loadFromOtb] Another (client) version of items.otb is required." << std::endl;
		return ERROR_INVALID_FORMAT;
	}
resources.h or definitions.h
Code:
#define CLIENT_VERSION_MIN 860
#define CLIENT_VERSION_MAX 860
#define CLIENT_VERSION_STRING "Only clients with protocol 8.60 are allowed!"

#define STATUS_SERVER_NAME "TheForgottenServer"
#define STATUS_SERVER_VERSION "0.3.5"
#define STATUS_SERVER_CODENAME "Crying Damson"
#define STATUS_SERVER_PROTOCOL "8.60"

go to "your source folder"/dev-cpp/obj and delete all files and now start compiling...
 
no, uh you got that wrong.
_OT would mean the client version that OTServ is using (not TFS)
Huh it's only for this :
items.cpp
You can use:
Code:
	else if(Items::dwMinorVersion != 19)

or

Code:
	else if(Items::dwMinorVersion != CLIENT_VERSION_860_OT)
...
So i don't know why i add this -.- in previous post...

So use "CLIENT_VERSION_860_OT" isn't my bad or something...
 
Back
Top