Xaleas
-
Posts
24 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Xaleas
-
-
I inserted everything like in your updated post and the calculation is way too high, realy strange.
battle.cpp:
Spoiler#ifdef __SASH_SYSTEM__ //replace it with your define for sash static void ApplySashAttackValue(LPITEM pkItem, int* pdamMin, int* pdamMax) { LPCHARACTER ch = pkItem ? pkItem->GetOwner() : NULL; if (!ch) return; LPITEM sashItem = ch->GetWear(WEAR_COSTUME_SASH); if (!sashItem) return; TItemTable* pkItemAbsorbed = ITEM_MANAGER::instance().GetTable(sashItem->GetSocket(SASH_ABSORBED_SOCKET)); if (!pkItemAbsorbed) return; if (pkItemAbsorbed->bType != ITEM_WEAPON) return; double AttBonusMax = static_cast<double>(pkItemAbsorbed->alValues[4] + pkItemAbsorbed->alValues[5]); AttBonusMax *= sashItem->GetSocket(SASH_ABSORBED_SOCKET); AttBonusMax /= 100; AttBonusMax += 0.5; double AttBonusMin = static_cast<double>(pkItemAbsorbed->alValues[3] + pkItemAbsorbed->alValues[5]); AttBonusMin *= sashItem->GetSocket(SASH_ABSORBED_SOCKET); AttBonusMin /= 100; AttBonusMin += 0.5; //todebug if(ch->GetDesc()->IsPhase(PHASE_GAME)) ch->ChatPacket(CHAT_TYPE_INFO, "Going to add to your attack : min(%0.2f) max(%0.2f) ", AttBonusMin, AttBonusMax); *pdamMax += static_cast<int>(AttBonusMax); *pdamMin += static_cast<int>(AttBonusMin); } #endif void Item_GetDamage(LPITEM pkItem, int* pdamMin, int* pdamMax) { *pdamMin = 0; *pdamMax = 1; if (!pkItem) return; switch (pkItem->GetType()) { case ITEM_ROD: case ITEM_PICK: return; } if (pkItem->GetType() != ITEM_WEAPON) sys_err("Item_GetDamage - !ITEM_WEAPON vnum=%d, type=%d", pkItem->GetOriginalVnum(), pkItem->GetType()); *pdamMin = pkItem->GetValue(3); *pdamMax = pkItem->GetValue(4); #ifdef __SASH_SYSTEM__ //replace it with your define for sash ApplySashAttackValue(pkItem, pdamMin, pdamMax); #endif }
Output from __UpdateBattleStatus():
1112 09:50:16783 :: Going to add to your points : wep(min 92.000000 max 104.000000) mag(min 100.250000 max115.750000)
1112 09:53:16584 :: Going to add to your points : wep(min 92.000000 max 104.000000) mag(min 100.250000 max115.750000)Old calculation from item.cpp:
Spoilerelse if (pkItemAbsorbed->bType == ITEM_WEAPON) { long lAttGrade = pkItemAbsorbed->alValues[4] + long(pkItemAbsorbed->alValues[5] * 2); if (pkItemAbsorbed->alValues[3] > pkItemAbsorbed->alValues[4]) lAttGrade = pkItemAbsorbed->alValues[3] + long(pkItemAbsorbed->alValues[5] * 2); double dValue = lAttGrade * GetSocket(SASH_ABSORPTION_SOCKET); dValue = (double)dValue / 100; dValue = (double)dValue + .5; lAttGrade = (long) dValue; if (((pkItemAbsorbed->alValues[3] > 0) && (lAttGrade < 1)) || ((pkItemAbsorbed->alValues[4] > 0) && (lAttGrade < 1))) lAttGrade += 1; else if ((pkItemAbsorbed->alValues[3] > 0) || (pkItemAbsorbed->alValues[4] > 0)) lAttGrade += 1; m_pOwner->ApplyPoint(APPLY_ATT_GRADE_BONUS, bAdd ? lAttGrade : -lAttGrade); long lAttMagicGrade = pkItemAbsorbed->alValues[2] + long(pkItemAbsorbed->alValues[5] * 2); if (pkItemAbsorbed->alValues[1] > pkItemAbsorbed->alValues[2]) lAttMagicGrade = pkItemAbsorbed->alValues[1] + long(pkItemAbsorbed->alValues[5] * 2); dValue = lAttMagicGrade * GetSocket(SASH_ABSORPTION_SOCKET); dValue = (double)dValue / 100; dValue = (double)dValue + .5; lAttMagicGrade = (long) dValue; if (((pkItemAbsorbed->alValues[1] > 0) && (lAttMagicGrade < 1)) || ((pkItemAbsorbed->alValues[2] > 0) && (lAttMagicGrade < 1))) lAttMagicGrade += 1; else if ((pkItemAbsorbed->alValues[1] > 0) || (pkItemAbsorbed->alValues[2] > 0)) lAttMagicGrade += 1; m_pOwner->ApplyPoint(APPLY_MAGIC_ATT_GRADE, bAdd ? lAttMagicGrade : -lAttMagicGrade); }
-
For Live Server use a OVH Server, you can buy it cheap from resellers like https://abcvg.net/ pay with BTC and you are safe.
But don't use OVH for Webserver because if you have some renders about metin on your homepage Gameforge send abuse mails to OVH. -
On 4/24/2020 at 5:45 PM, SorinSmon said:
1.
when making party and the leader go offline appear this in syser and i understand is because of this.
2. still problem with poison bar on stone metin. any fix?
Same Problem here.
-
Who have good fix for it can contact me, i pay for it.
-
Hello,
I´m looking for a good shop search system thats works well with great offlineshop system.
Please dont come to me with public stuff.
I pay few hundred euros for a good system.
PM me, thanks.
-
Hello,
I'm search someone who can code my psd to wbb style.
Contact me please via pm
Regards
-
-
Hello,
I search Coder for following things:
Website: HTML,CSS
Logininterface
Board Design
Contact me via PM.
Regards
- 1
-
Hello,
I´m search the fix for Shamans that they can attack from mounts with more then ~140 Attack speed and every hit count.
Contact me here in board.
Regards
- 1
-
-
Am 14.12.2019 um 23:47 schrieb displayjokes:
Check in the script of the window, python if you are not making two slot in the same position, i've had this issue and that was the fix, not sure if it the case, if not, post uitooltip.py on pastebin
uitooltip: https://pastebin.com/epv4D7ug
uiinventory: https://pastebin.com/Ze2Khcyq
Thanks for any help!
-
vor 21 Stunden schrieb Kori:
Any syserr?
no syserr is clean.
-
Hello,
I want add my Rings in Costume Window and have a Problem with the tooltip.
https://metin2.download/picture/bBipB4iQfNzXt4I34u9XMo5zor60b5hS/.gif
Wen i go with the mouse over the item they dont show anything, but in normal invnetory it show all.
Also i can not use right click on the ring or belt.
i add under uiinventory.py -> def RefreshCostumeSlot(self):
for i in xrange(player.NEW_EQUIPMENT_SLOT_COUNT): slotNumber = player.NEW_EQUIPMENT_SLOT_START + i self.wndEquip.SetItemSlot(slotNumber, getItemVNum(slotNumber), 0)
But it only help to show the icon.
I hope someone cvan help me, many thanks!
Group Leader can give himself the group buff
in Community Support - Questions & Answers
Posted
Hello,
I want the group leaders to be able to give themselves a group buff.
What i try:
(ENABLE_PARTY_BUFF_LEADER)
party.cpp
bool CParty::SetRole(DWORD dwPID, BYTE bRole, bool bSet)
And remove at uiparty.py in (def OnMouseLeftButtonDown(self):) :
I can now give myself a buff but lose the leader rank in the group and thats a big problem.
Someone have maybe a idea?
Thanks for any help!