-
Posts
19 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Vectors
-
-
In the functions CItem::EquipTo and CItem::Unequip (in item.cpp)SET_BIT(dwImmuneFlag, m_pOwner->GetWear(i)->m_pProto->dwImmuneFlag);Replace with:SET_BIT(dwImmuneFlag, m_pOwner->GetWear(i)->GetRealImmuneFlag());Then add the function referred up there to item.cpp:DWORD CItem::GetRealImmuneFlag(){DWORD dwImmuneFlag = m_pProto->dwImmuneFlag;for (int i = 0; i < ITEM_ATTRIBUTE_MAX_NUM; ++i){if (GetAttributeType(i)){const TPlayerItemAttribute& ia = GetAttribute(i);if (ia.bType == APPLY_IMMUNE_STUN && !IS_SET(dwImmuneFlag, IMMUNE_STUN))SET_BIT(dwImmuneFlag, IMMUNE_STUN);else if (ia.bType == APPLY_IMMUNE_FALL && !IS_SET(dwImmuneFlag, IMMUNE_FALL))SET_BIT(dwImmuneFlag, IMMUNE_FALL);else if (ia.bType == APPLY_IMMUNE_SLOW && !IS_SET(dwImmuneFlag, IMMUNE_SLOW))SET_BIT(dwImmuneFlag, IMMUNE_SLOW);}}return dwImmuneFlag;}As a new function, it also needs to have an entry on item.h, so find:long GetLimitValue(DWORD idx) const { return m_pProto ? m_pProto->aLimits[idx].lValue : 0; }And add afterwards:DWORD GetRealImmuneFlag();
Vectors (:
-
-
solved
-
-
Game build etmesi bekletmese uğraşırdımda zaman kaybı.
Thanks, not fix
-
-
-
did you try to complie it on windows
visual studio shows way more warnings then gcc (you dont have to fully link it the thing that must be done is the compling)
fails with the visual studio source problem?
only a makefile for the mainline
-
Use freebsd 9.2 +
9.2 already
-
I have to compile the source mainline - game and db
I get an error while starting
-
-
burdan yardım alıp turkmmo'ya video mu atcan aSF:AS:D:ÇASDç
-
not wearing belts libgame_item2_pc2.so" ./game core dumped :S
[Help]Imagebox click function
in Community Support - Questions & Answers
Posted
so much simpler