TheR3LAX13
-
Posts
12 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by TheR3LAX13
-
-
Working ?
-
On 5/22/2016 at 2:57 PM, Wahmon said:
Hello everyone, today I`m going to show to how to make a VIP system from SRC.
You need Launcher SRC, Server SRC.
So, let`s begin.
1.Launcher:
Go to UserInterface/InstanceBase.h and search
After that add:
Search
After that add:
1.2 Go to InstanceBase.cpp and search
BOOL CInstanceBase::IsGameMaster()
{
if (m_kAffectFlagContainer.IsSet(AFFECT_YMIR))
return true;
return false;
}After that add:
BOOL CInstanceBase::IsVIP()
{
if (m_kAffectFlagContainer.IsSet(AFFECT_VIP))
return true;
return false;
}In same file search:
And after that add:
Search:
After that add:
1.3: In file InstanceBaseEffect.cpp search
After that add:
Search:
After that add:
Search:
After that add:
1.4 In fine PythonCharacterModule.cpp search:
PyObject * chrIsGameMaster(PyObject* poSelf, PyObject* poArgs)
{
int iVirtualID;
if (!PyTuple_GetInteger(poArgs, 0, &iVirtualID))
return Py_BuildException();CInstanceBase * pInstance = CPythonCharacterManager::Instance().GetInstancePtr(iVirtualID);
if (!pInstance)
return Py_BuildValue("i", 0);return Py_BuildValue("i", pInstance->IsGameMaster());
}And after that add:
PyObject * chrIsVIP(PyObject* poSelf, PyObject* poArgs)
{
int iVirtualID;
if (!PyTuple_GetInteger(poArgs, 0, &iVirtualID))
return Py_BuildException();CInstanceBase * pInstance = CPythonCharacterManager::Instance().GetInstancePtr(iVirtualID);
if (!pInstance)
return Py_BuildValue("i", 0);return Py_BuildValue("i", pInstance->IsVIP());
}Search:
And after that add:
Launcher part done.
2.SERVER
2.1 In file common/length.h search:
And after that add:
2.2 In file game/src/affect.h search:
And after add:
2.3 In file game/src/char.cpp search:
if (GetGMLevel() > GM_LOW_WIZARD)
{
m_afAffectFlag.Set(AFF_YMIR);
m_bPKMode = PK_MODE_PROTECT;
}And after add:
else if (GetGMLevel() == GM_VIP)
{
m_afAffectFlag.Set(AFF_VIP);
//m_bPKMode = PK_MODE_PROTECT; //delete '//' if you want GM protection for VIP.
}
Search
And after that add:
else if (GetGMLevel() == GM_VIP)
{
m_afAffectFlag.Set(AFF_VIP);
//m_bPKMode = PK_MODE_PROTECT; //delete '//' if you want GM protection for VIP.
}2.4 In file game/src/config.cpp search
And mofify like that:
if (!strcasecmp(levelname, "VIP"))
level = GM_VIP;
else if (!strcasecmp(levelname, "LOW_WIZARD"))
level = GM_LOW_WIZARD;2.5 In file db/src/ClientManager.cpp search:
And after that add:
3.MYSQL
3.1 Go to your database->COMMON->RIGHT CLICK ON gmlist->DESIGN TABLE->SELECT mAuthority from Fields TAB->VALUES->ADD VIP AFTER PLAYER.
4.CLIENT
4.1. In file ROOT/PlayerSettingModule.py search
chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+37, "", "d:/ymir work/effect/etc/guild_war_flag/flag_yellow.mse")
And after that add:
chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+38, "Bip01", "locale/en/effect/vip.mse")
Edit locale/en with your locale : ex locale/ro || locale/de
4.2 In locale go to effect folder(WHERE YOU HAVE GM.MSE) and add THIS FILES:
In game will be like that:
Post any problems/bugs and we will solve them tohetherSorry for my bad english..:(
whisper font color and icon have problem how do i fix it?
vip speaks as gm how do i fix it ?
-
-
6 minutes ago, VegaS™ said:
I suppose you use the system which i made 4 years ago (2015-2016), i published it, so it's fine.
The problem is in root/introLoading.py.
You added the self.__RegisterTitlePrestigeName() inside of the function def DEBUG_LoadData(self, playerX, playerY), need to be in def LoadData(self, playerX, playerY) too.Thank you so much
-
4 minutes ago, VegaS™ said:
Can't you help?
- 2
-
Hi,
I added vegas title system but I have a problem
system running smoothly but single troubles title does not appear on top of the character
No Syser
No Warning
No Error
How can I solve this problem ?
I've been dealing for 2 days, but I couldn't
I'm sorry for my bad english
Shop Ex Renewal
in Features & Metin2 Systems
Posted
@VegaS™ @Mali61 pls help me!!!