-
Posts
196 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Mano
-
-
You'll have to adapt new sashes with code starts from 86001 in this two files
in InstanceBase.cpp this function needs to be edit
Spoiler#ifdef ENABLE_SASH_SYSTEM
void CInstanceBase::SetSash(DWORD dwSash)
{
if (!IsPC())
return;
if (IsPoly())
return;
dwSash += 85000;
ClearSashEffect();
float fSpecular = 65.0f;
if (dwSash > 86000)
{
dwSash -= 1000;
fSpecular += 35;
m_dwSashEffect = EFFECT_REFINED + EFFECT_SASH;
__EffectContainer_AttachEffect(m_dwSashEffect);
}
fSpecular /= 100.0f;
m_awPart[CRaceData::PART_SASH] = dwSash;
CItemData * pItemData;
if (!CItemManager::Instance().GetItemDataPointer(dwSash, &pItemData))
return;
m_GraphicThingInstance.AttachSash(pItemData, fSpecular);
#ifdef ENABLE_OBJ_SCALLING
DWORD dwRace = GetRace(), dwPos = RaceToJob(dwRace), dwSex = RaceToSex(dwRace);
dwPos += 1;
if (dwSex == 0)
dwPos += 5;
float fScaleX, fScaleY, fScaleZ, fPositionX, fPositionY, fPositionZ;
if (pItemData->GetItemScale(dwPos, fScaleX, fScaleY, fScaleZ, fPositionX, fPositionY, fPositionZ))
{
m_GraphicThingInstance.SetScale(fScaleX, fScaleY, fScaleZ, true);
if (m_kHorse.IsMounting())
fPositionZ += 10.0f;
m_GraphicThingInstance.SetScalePosition(fPositionX, fPositionY, fPositionZ);
}
#endif
}And item.cpp this also needs to be edit
Spoiler#ifdef __SASH_SYSTEM__
else if (GetSubType() == COSTUME_SASH)
{
toSetValue -= 85000;
if (GetSocket(SASH_ABSORPTION_SOCKET) >= SASH_EFFECT_FROM_ABS)
toSetValue += 1000;
toSetValue = (bAdd == true) ? toSetValue : 0;
toSetPart = PART_SASH;
}
#endifRead the code and you'll understand the reason
Kind regards
-
you have game.core ?
-
item.cpp
instancebase.cpp
check both files
-
change
Spoilerm_GraphicThingInstance.SetScaleNew(scale, scale, scale);
to
Spoilerm_GraphicThingInstance.SetScale(scale, scale, scale, true);
and
Spoilerm_GraphicThingInstance.SetScaleNew(1.0f,1.0f,1.0f);
to
Spoilerm_GraphicThingInstance.SetScale(1.0f,1.0f,1.0f, true);
-
Spoiler
- 1
-
fix for cheque system error
PythonNetworkStreamPhaseGame.cpp
search
Spoilerbool CPythonNetworkStream::SendExchangeElkAddPacket(DWORD elk)
after add
Spoiler#ifdef ENABLE_CHEQUE_SYSTEM
bool CPythonNetworkStream::SendExchangeChequeAddPacket(BYTE cheque)
{
if (!__CanActMainInstance())
return true;
TPacketCGExchange packet;
packet.header = HEADER_CG_EXCHANGE;
packet.subheader = EXCHANGE_SUBHEADER_CG_CHEQUE_ADD;
packet.arg1 = cheque;
if (!Send(sizeof(packet), &packet))
{
Tracef("send_trade_cheque_add_packet Error\n");
return false;
}
return SendSequence();
}
#endif- 1
-
What do you mean by bump ? is it client crash or something ??
-
15 hours ago, Dobrescu Sebastian said:
no, it isn't
why would metin2 support .txt instead of. sql then ?
Anyway i'm glad that your problem is fixed @mogulul
- 1
-
i recommend you to use txt not sql cause in my opinion txt is much better than sql
-
Crash problem after summoning the pet is because item_proto.txt data not correct
-
check packet.h from game source and UserInterface
Alse check your channels syserr and paste it here
-
change
Spoilerpack_open
to
Spoileropen
-
Hey all
i have a small question
how can i increase the modification time of MakeFile ?
Kind regards
-
use the same tutorial but change the subtype
WEAPON_SWORD
to
COSTUME_WEAPON
-
Such a good release
Thanks
-
or in offlineshop_manger.cpp in
Spoilervoid COfflineShopManager::AddItem(LPCHARACTER ch, BYTE bDisplayPos, BYTE bPos, int iPrice)
add
Spoilerif (ch->IsAcceOpen()) { ch->ChatPacket(CHAT_TYPE_INFO, "Nu poti sa folosesti magazinul offline cand craftezi o esarfa."); return; }
maybe not the same result because now it can open offlineshop when the acce window is open but he can't put any item in the offlineshop
Thank you
-
Nice as always
-
-
Searching for a web itemshop not ingame
-
Hey
as the title said i'm searching for a completely itemshop script
if you have a script pm me and i will contact you
i can offer you the money you want if you have a good itemshop
kind regards
-
i tried to make it also with costume mount
Spoilerelif item.ITEM_TYPE_COSTUME == itemType:
self.__AppendLimitInformation()and this for show the bounses
Spoilerelif item.ITEM_TYPE_COSTUME == itemType:
if itemVnum >= 52001 and itemVnum <= 52200:
self.AppendSpace(5)
for g in xrange(item.ITEM_APPLY_MAX_NUM):
(affectType, affectValue) = item.GetAffect(g)
affectString = self.__GetAffectString(affectType, affectValue)
if affectString:
affectColor = self.GetChangeTextLineColor(affectValue)
self.AppendTextLine(affectString, affectColor)
for i in xrange(item.LIMIT_MAX_NUM):
(limitType, limitValue) = item.GetLimit(i)Spoilerif app.ENABLE_COSTUME_SYSTEM:
if item.ITEM_TYPE_COSTUME == itemType:
isCostumeItem = 1
isCostumeHair = item.COSTUME_TYPE_HAIR == itemSubType
isCostumeBody = item.COSTUME_TYPE_BODY == itemSubType
isCostumeMount = item.COSTUME_TYPE_MOUNT == itemSubType
if app.ENABLE_COSTUME_WEAPON_SYSTEM:
isCostumeWeapon = item.COSTUME_TYPE_WEAPON == itemSubType
isCostumeAcce = item.COSTUME_TYPE_ACCE == itemSubTypebut it doesn't work
btw syserr is clean
- 1
-
20 minutes ago, stein20 said:
system 100%
Could you upload your ActorInstanceCollisionDetection.cpp
So i can compare with mine cause i'm sure that my implement is correct
- 1
-
8 minutes ago, stein20 said:
i tried it 3 times and every time i got the 2 errors mentioned before
-
Well the system is working good there are no colission with npc and pets but
there is also no colission with sea, buildings and when i try to kill mobs client crash
hope you fix it
kind regards
New sashes
in Community Support - Questions & Answers
Posted
Check my post here