-
Posts
38 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Jodie
-
-
It depends on who wants to add those things but you're right Meanwhile, you forgot GUILDBANK, PET_FEED and so on
- Jodie
-
Your welcome
-
Then use, pc.get_guild(). It returns guild id if you have a guild. Otherwise it will return zero.
guild.get_name(player.get_guild())
- Jodie
-
int guild_get_name(lua_State * L) { if (!lua_isnumber(L, 1)) { lua_pushstring(L, ""); return 1; } CGuild * pkGuild = CGuildManager::instance().FindGuild((DWORD) lua_tonumber(L, 1)); if (pkGuild) lua_pushstring(L, pkGuild->GetName()); else lua_pushstring(L, ""); return 1; }
That means, you have to enter the guild id. The function will return empty string if you don't
- Jodie
-
I was looking at metin2client.bin about the new functions. I wanted to share one function with you. They're probably using this for new systems. So, let's do this
Open PythonPlayerModule.cpp
PyObject * playerWindowTypeToSlotType(PyObject * poSelf, PyObject * poArgs) { int iWindowType = 0; if (!PyTuple_GetInteger(poArgs, 0, &iWindowType)) return Py_BuildException(); return Py_BuildValue("i", WindowTypeToSlotType(iWindowType)); }
Search this
{ "SendDragonSoulRefine", playerSendDragonSoulRefine, METH_VARARGS },
Add this
{ "WindowTypeToSlotType", playerWindowTypeToSlotType, METH_VARARGS },
Open GameType.h and search this
BYTE SlotTypeToInvenType(BYTE bSlotType);
After add this
BYTE WindowTypeToSlotType(BYTE bWindowType);
Open GameType.cpp and add this.
BYTE c_aWindowTypeToSlotType[WINDOW_TYPE_MAX] = { RESERVED_WINDOW, // SLOT_TYPE_NONE SLOT_TYPE_INVENTORY, // SLOT_TYPE_INVENTORY RESERVED_WINDOW, // SLOT_TYPE_NONE SLOT_TYPE_SAFEBOX, // SLOT_TYPE_SAFEBOX SLOT_TYPE_MALL, // SLOT_TYPE_MALL SLOT_TYPE_DRAGON_SOUL_INVENTORY, // SLOT_TYPE_DRAGON_SOUL_INVENTORY RESERVED_WINDOW, // SLOT_TYPE_NONE RESERVED_WINDOW, // SLOT_TYPE_NONE }; BYTE WindowTypeToSlotType(BYTE bWindowType) { if (bWindowType >= WINDOW_TYPE_MAX) return RESERVED_WINDOW; return c_aWindowTypeToSlotType[bWindowType]; }
- Jodie
- 3
-
I just liked the new guild system. The new dungeon looks fine (Graphic) but it doesn't fit for metin2. I think, they can do better than this.
- Jodie
-
Personally, why did you open your topic at this section? Whatever, your problem is about hook. (Detours.h)
- Jodie
-
You could try to increase the mob's attack speed or you could increase the attention of the monster in the source files.
- Jodie
-
Just look at UserInterface.cpp and find 'python2.lib' with 'python27.lib' if you're using python 2.7. 'python22.lib' if you don't.
- Jodie
-
The first error is saying that you don't have resist_claw column in your mob_proto.sql. It will be okay if you add that column in your mob_proto.sql. The second error is saying that there is a query problem about monarch.
- Jodie
-
Errorlog.txt is only working when you're using your binary in distribute mode or release mode. You can debug your executable file(metin2client.bin) with Visual Studio if you know a bit visual studio. We can't do anything for you at the moment. At least, we don't know the error exactly.
- Jodie
-
59 minutes ago, bumxd said:
WEAR_RING1 = 24, // 24 : 신규 반지슬롯1 (왼쪽)
WEAR_RING2 = 25, // 25 : 신규 반지슬롯2 (오른쪽)
WEAR_BELT = 26, // 26 : 신규 벨트슬롯WEAR_MAX = 32 //
Those things are wrong. It should be like this if you don't using acce and weapon costume system.
- WEAR_RING1 should be 21
- WEAR_RING2 should be 22
- WEAR_BELT should be 23
- Jodie
-
Yes, it does. I'm just saying that I showed you a way about that.
- Jodie
-
Actually, you can learn this with kraizy.tar.gz if you really want to learn how to compile the source files.
- Jodie
-
You have to edit which one relates to inventory. Indeed quick slot too.
- Jodie
-
/usr/src/Frost-M2/Server/game/src/main.cpp:448: undefined reference to `Acce_init()' /usr/src/Frost-M2/Server/game/src/main.cpp:454: undefined reference to `LoadBlockSpamList()' /usr/src/Frost-M2/Server/game/src/main.cpp:455: undefined reference to `LoadBannSpamList()'
Then you can follow that system's tutorial again. It seems like you missed something.
- Jodie
-
typedef struct character_point_instant
In char.cpp. I think you have to edit a few thing to complete that work. I just showed you a way.
- Jodie
-
Then convert BYTE to WORD.
- Jodie
-
What do you mean?
-
Actually, you're answering of your question. c_Equipment_New is showing which slot will be okay for it.
int CItem::FindEquipCell(LPCHARACTER ch, int iCandidateCell)
Game is calling this function to find which wear type is okay for that by Type.
- Jodie
-
TPlayerItem has no member named 'soulTime' and 'soul'. You have to define them.
- Jodie
-
You don't have to cry. The compiler is saying there are undefined references. You have to define them.
- Jodie
-
It will work.
- Jodie
-
Actually, you can get that from other lines or you can remove the references in the source files. My advise for you to get that folder from other lines if you don't know this job well.
- Jodie
Window Type Functions
in Programming & Scripts
Posted
Yeah, they're changing a lot things at the moment