-
Posts
196 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by TheSLZ
-
Just use this MakeFile: MAKE = gmake CC = g++ INCDIR = LIBDIR = BINDIR = .. OBJDIR = .obj LIBDIR += -L/usr/local/lib/mysql GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3 | cut -d'.' -f1) BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1) P4_VERSION = 40146 $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi) TARGET = $(BINDIR)/db_r$(P4_VERSION) CFLAGS = -g -Wall -O2 -pipe -fno-rtti -fno-exceptions -pthread -D_THREAD_SAFE ifeq ($(GCC_VERSION), 4) CFLAGS += -mtune=i686 else CFLAGS += -mcpu=i686 endif # boost INCDIR += -I../../boost LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib ifeq ($(BSD_VERSION), 7) INCDIR += -I../../libmysql/7.x-5.1.35 LIBDIR += -L../../libmysql/7.x-5.1.35 else INCDIR += -I../../libmysql/5.x-5.1.35 LIBDIR += -L../../libmysql/5.x-5.1.35 endif LIBS = -lthecore -lmysqlclient -lsql -lpoly -lgame -lm -lz SRCS = Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp AuctionManager.cpp ProtoReader.cpp CsvReader.cpp OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o) default: $(TARGET) $(TARGET): $(OBJS) @echo linking ... @$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET) @touch version.cpp $(OBJDIR)/%.o: %.cpp @echo compile $< @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@ $(OBJDIR)/version.o: version.cpp @$(CC) $(CFLAGS) -D__P4_VERSION__="$(P4_VERSION)" -c $< -o $@ @echo compile $< $(OBJDIR): @mkdir $(OBJDIR) clean: @rm -f $(OBJS) $(BINDIR)/db_r* dep: @touch Depend makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null sinclude Depend And edit version.cpp like this: #include <stdio.h> #include <stdlib.h> void WriteVersion() { #ifndef __WIN32__ FILE* fp(fopen("VERSION.txt", "w")); if (NULL != fp) { fprintf(fp, "db revision: 40146n"); //fprintf(fp, "%s@%s:%sn", __USER__, __HOSTNAME__, __PWD__); fclose(fp); } else { fprintf(stderr, "cannot open VERSION.txtn"); exit(0); } #endif } After you are able to compile db core.
-
Connecting to the server.. (Noob question)
TheSLZ replied to asdfghjkesha's topic in Community Support - Questions & Answers
What is your game version? -
syserr? If you use source, Use Mainline game&db and Novaline client binary.
-
Connecting to the server.. (Noob question)
TheSLZ replied to asdfghjkesha's topic in Community Support - Questions & Answers
If you use 2008 serverfile, use 2008 client. If you use 2011 serverfile, use 2011 client. (I think you use 2008 serverfile and 2010-11 client. It's not compatibile) -
English: And Hungarian
-
Thx for the fix. This fix for item_shop storage too?
-
Vanilla 40k invisible
TheSLZ replied to CrazyBear's topic in Community Support - Questions & Answers
Traceur3RUN's dif's is for 40k, not Vanilla. I suggest you, make your own game file. Use mainline source. (Because Vanilla doesn't make any update) (Bad English.. sry) Regards -
Vanilla 40k invisible
TheSLZ replied to CrazyBear's topic in Community Support - Questions & Answers
No, the problem is in the game file, i think vanilla only edit the char.cpp, but need to edit on char_skill.cpp and guild.cpp if (IsAffectFlag(AFF_REVIVE_INVISIBLE)) RemoveAffect(AFFECT_REVIVE_INVISIBLE); to if (IsAffectFlag(AFFECT_REVIVE_INVISIBLE)) RemoveAffect(AFFECT_REVIVE_INVISIBLE); -
This packed by Themida.. Try mine [Hidden Content] Fixed say_title/reward Enabled dragon_soul and new equipment system Mount beat to 20250 (sorry bad english i think ) Not protected I included lib folder and python22 in the rar, and 2inventory and 4inventory binary. Regards
-
Copy items from one client to the other.
TheSLZ replied to hardrevo's topic in Community Support - Questions & Answers
if you haven't got queries, you can do serverside easily, just copy clientside item_proto things, (id, antiflag etc) to serverside item_proto. (Or look for working xml to sql converter) -
Notepad++, bad syntax
TheSLZ replied to Indikator's topic in Community Support - Questions & Answers
It's cause by the new notepad. Try older version, i use 5.9.6.1 [Hidden Content] Regards -
Copy items from one client to the other.
TheSLZ replied to hardrevo's topic in Community Support - Questions & Answers
locale_xy: item_proto lines item_list lines and you should find the modells, textures and icons. Models and textures should be in item.eix-epk icons icon.eix-epk. But these can be in a new patch eix/epk If you wan't copy an armour, you need the msm lines, msm files in the root.eix-epk (Sorry for bad English) Regards -
Metin2 4inventory page bug (?)
TheSLZ replied to TheSLZ's topic in Community Support - Questions & Answers
Syserr (client&server) is empty. But i solved, i use P3NG3R's drop dialog, and it's written for 2 inv, i change this in uicommon.py: if None == iPos or iPos >= 90 or iPos < 0: to if None == iPos or iPos >= 180 or iPos < 0: And it's solved the bug. -
Works fine the 3. and 4. inventory Thx for the Release
-
Hi Metin2Dev I have a little error with 4inventory page. Sometimes i can't drop/equip/move items. i need to restart the client to fix this. (But sometimes i click lots of and it's fix itself) It's cause by i change some BYTE to int in char_item.cpp? (To make belt slots work with 4 inventory) BYTE bCell = Cell.cell; to int bCell = Cell.cell; (2x) BYTE bPage = bCell / (INVENTORY_MAX_NUM / 4); to int bPage = bCell / (INVENTORY_MAX_NUM / 4); (2x) BYTE p = bCell + (5 * j); to int p = bCell + (5 * j); Can anyone give me a solution? Regards, SLZ
-
For me worked this fix
-
Bonus scwitch time delete (char_item.cpp) if (pPC) { DWORD dwNowMin = get_global_time() / 60; DWORD dwLastChangeItemAttrMin = pPC->GetFlag(msc_szLastChangeItemAttrFlag); if (dwLastChangeItemAttrMin + dwChangeItemAttrCycle > dwNowMin) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ĽÓĽşŔ» ąŮ˛ŰÁö %dşĐ ŔĚł»żˇ´Â ´Ů˝Ă şŻ°ćÇŇ Ľö ľř˝Ŕ´Ď´Ů.(%d şĐ ł˛Ŕ˝)"), dwChangeItemAttrCycle, dwChangeItemAttrCycle - (dwNowMin - dwLastChangeItemAttrMin)); return false; } pPC->SetFlag(msc_szLastChangeItemAttrFlag, dwNowMin); } } change to: if (pPC) { DWORD dwNowMin = get_global_time() / 60; pPC->SetFlag(msc_szLastChangeItemAttrFlag, dwNowMin); } } Edit: Sorry for double post..
-
Drop time: Common item drop time: item.h StartDestroyEvent(int iSec=300); Change 300 to someting Only by player's dropped item time: char_item.cpp pkItemToDrop->StartDestroyEvent(); change 30second example: pkItemToDrop->StartDestroyEvent(30); Sorry i can't remember where is the bonus switch time
-
Flame Dungeon Problem
TheSLZ replied to Adrian1428's topic in Community Support - Questions & Answers
If the flame map in ch1, the flame_dungeon should be in ch1 too. -
Sema, i think the result is the same, not?
-
my own game based on mainline source, version: 1.0.0.5_SLZ (Before that, i used 2089m and 34083)
-
This way? loop_timer("magyarok_a_rajok", 2) when magyarok_a_rajok.timer begin if pc.hp <= 0 then say("You dead") end end
-
Source Max lvl 300.
TheSLZ replied to Traceur3RUN's topic in Community Support - Questions & Answers
/usr/src/mainline/Srcs/Server/common/length.h PLAYER_EXP_TABLE_MAX = 120, PLAYER_MAX_LEVEL_CONST = 120, to PLAYER_EXP_TABLE_MAX = 300, PLAYER_MAX_LEVEL_CONST =300, And you may need to edit the exp table in this file (3x) /usr/src/mainline/Srcs/Server/game/src/constants.cpp Under this: const DWORD exp_table_euckr[PLAYER_EXP_TABLE_MAX + 1] = And this: const DWORD exp_table_common[PLAYER_EXP_TABLE_MAX + 1] = And this: const DWORD exp_table_newcibn[PLAYER_EXP_TABLE_MAX + 1 ] = But i think need to edit the navicat/player/player level tinyint-->int (for 255+level) (In Design table) -
Ok, thx Paci
-
I understand the error, but i use 40k, so the notice_multiline should be exist, no?