|
You last visited: Today at 17:13
Advertisement
Question About Weapon Leveling
Discussion on Question About Weapon Leveling within the Flyff Private Server forum part of the Flyff category.
06/22/2013, 03:47
|
#1
|
elite*gold: 0
Join Date: Dec 2012
Posts: 239
Received Thanks: 33
|
Question About Weapon Leveling
My weapon Level Can't Gets Exp and Level..
InGame Screen -->
I Used This Source -->
AnyOne Can Help me Plss
Sorry For My Bad English xD
Thanks In Advance Guys
|
|
|
06/22/2013, 07:30
|
#2
|
elite*gold: 28
Join Date: Aug 2012
Posts: 2,335
Received Thanks: 471
|
you have any error logs or have you added the part in attackarbiter.cpp?
|
|
|
06/22/2013, 13:23
|
#3
|
elite*gold: 0
Join Date: Dec 2012
Posts: 239
Received Thanks: 33
|
Quote:
Originally Posted by Shonenx33
you have any error logs or have you added the part in attackarbiter.cpp?
|
sir what source can i get the code of Weapon level with out bug like my weapon level that i add,,sorry for my english xD
no error in my logs sir..
i only add this in AttackArbiter.cpp:
Quote:
#ifdef __WEAPON_LVL
#include "UserMacro.h"
#endif
void CAttackArbiter::OnDamaged( int nDamage )
{
#if __VER >= 9 // __RECOVERY10
m_pDefender->m_nAtkCnt = 1;
#endif // __RECOVERY10
m_pDefender->SetDamagedMotion( m_pAttacker, m_dwAtkFlags );
g_UserMng.AddDamage( m_pDefender, GETID( m_pAttacker ), nDamage, m_dwAtkFlags );
FLOAT fFaktor = 22.0f; // Waffen EXP einstellen Ich habe hier vorhin von 25 auf 15 gestellt
CItemElem* pItemElem;
BYTE nValue = 0;
BOOL bLvlUp = FALSE;
if(m_pDefender->IsPlayer() && !m_pAttacker->IsPlayer())
{
// Wenn Spieler von Monster angegriffen -> Schild leveln.
pItemElem = m_pDefender->GetWeaponItem(PARTS_SHIELD);
nValue = 1;
}
else
if(!m_pDefender->IsPlayer() && m_pAttacker->IsPlayer())
{
// Wenn Monster von Spieler angegriffen -> Waffe leveln.
pItemElem = m_pAttacker->GetWeaponItem();
nValue = 2;
}
if(nValue == 1)
{
// if(m_pDefender->HasBuff(BUFF_ITEM, II_SYS_SYS_SCR_WEAPON_EXP2))
// fFaktor *= 2;
//if(m_pDefender->HasBuff(BUFF_ITEM, II_SYS_SYS_SCR_WEAPON_EXP3))
// fFaktor *= 3;
}
else
if(nValue == 2)
{
//if(m_pAttacker->HasBuff(BUFF_ITEM, II_SYS_SYS_SCR_WEAPON_EXP2))
// fFaktor *= 2;
//if(m_pAttacker->HasBuff(BUFF_ITEM, II_SYS_SYS_SCR_WEAPON_EXP3))
// fFaktor *= 3;
}
nDamage = (int)(nDamage * fFaktor);
if(pItemElem && (nValue == 1 || nValue == 2))
{
if(nValue == 2) // Wenn erste Hand eine Waffe ist
{
// Prüfe ob in der anderen Hand auch eine Waffe ist.
if(m_pAttacker->GetLWeaponItem())
{
BYTE cbHandFlag = GetHandFlag();
int nPart;
for( BYTE cbFlag = 0x01; cbFlag <= 0x02; ++cbFlag )
{
if( cbHandFlag & cbFlag )
{
nPart = (cbFlag & 0x01) ? PARTS_RWEAPON : PARTS_LWEAPON;
}
}
pItemElem = m_pAttacker->GetWeaponItem(nPart);
}
}
if(pItemElem && pItemElem->m_nWeaponLevel < 30 && pItemElem->m_nWeaponExp + nDamage >= (DWORD)(INT_MAX / 100 * pItemElem->m_nWeaponLevel))
{
// Level up
int nRest = pItemElem->m_nWeaponExp + nDamage - (INT_MAX / 100 * pItemElem->m_nWeaponLevel);
pItemElem->m_nWeaponExp = 0;
if(nValue == 2)
{
m_pAttacker->ResetDestParamEquip(pItemElem->GetProp(), pItemElem);
}
else
if(nValue == 1)
{
m_pDefender->ResetDestParamEquip(pItemElem->GetProp(), pItemElem);
}
pItemElem->m_nWeaponLevel++;
if(nValue == 2)
{
m_pAttacker->SetDestParamEquip(pItemElem->GetProp(), pItemElem);
}
else
if(nValue == 1)
{
m_pDefender->SetDestParamEquip(pItemElem->GetProp(), pItemElem);
}
bLvlUp = TRUE;
while(nRest > 0)
{
if(pItemElem->m_nWeaponLevel < 30 && nRest >= (INT_MAX / 100 * pItemElem->m_nWeaponLevel))
{
// Level Up
nRest -= (INT_MAX / 100 * pItemElem->m_nWeaponLevel);
if(nValue == 2)
{
m_pAttacker->ResetDestParamEquip(pItemElem->GetProp(), pItemElem);
}
else
if(nValue == 1)
{
m_pDefender->ResetDestParamEquip(pItemElem->GetProp(), pItemElem);
}
pItemElem->m_nWeaponLevel++;
if(nValue == 2)
{
m_pAttacker->SetDestParamEquip(pItemElem->GetProp(), pItemElem);
}
else
if(nValue == 1)
{
m_pDefender->SetDestParamEquip(pItemElem->GetProp(), pItemElem);
}
}
else
{
pItemElem->m_nWeaponExp += nRest;
if(pItemElem->m_nWeaponExp > (DWORD)(INT_MAX / 100 * pItemElem->m_nWeaponLevel))
pItemElem->m_nWeaponExp = (INT_MAX / 100 * pItemElem->m_nWeaponLevel);
nRest = 0;
}
}
}
else
{
// Exp gesteigert
pItemElem->m_nWeaponExp += nDamage;
if(pItemElem->m_nWeaponExp > (DWORD)(INT_MAX / 100 * pItemElem->m_nWeaponLevel))
pItemElem->m_nWeaponExp = (INT_MAX / 100 * pItemElem->m_nWeaponLevel);
}
CString str;
if(bLvlUp && pItemElem && pItemElem->GetProp())
{
str.Format("Deine Waffe(%s) ist auf Level %d gestiegen", pItemElem->GetProp()->szName, pItemElem->m_nWeaponLevel);
}
if(nValue == 2)
{
m_pAttacker->UpdateItem((BYTE)pItemElem->m_dwObjId, UI_WEAPON_LEVEL, pItemElem->m_nWeaponLevel);
m_pAttacker->UpdateItem((BYTE)pItemElem->m_dwObjId, UI_WEAPON_EXP, pItemElem->m_nWeaponExp);
if(bLvlUp)
{
((CUser*)m_pAttacker)->AddText(str);
g_UserMng.AddCreateSfxObj(m_pAttacker, XI_GEN_LEVEL_UP01 );
}
}
else
if(nValue == 1)
{
m_pDefender->UpdateItem((BYTE)pItemElem->m_dwObjId, UI_WEAPON_LEVEL, pItemElem->m_nWeaponLevel);
m_pDefender->UpdateItem((BYTE)pItemElem->m_dwObjId, UI_WEAPON_EXP, pItemElem->m_nWeaponExp);
if(bLvlUp)
{
((CUser*)m_pDefender)->AddText(str);
g_UserMng.AddCreateSfxObj(m_pDefender, XI_GEN_LEVEL_UP01 );
}
}
}
}
|
|
|
|
06/22/2013, 15:53
|
#4
|
elite*gold: 0
Join Date: Jun 2013
Posts: 21
Received Thanks: 0
|
just atack higher moster ,
|
|
|
06/23/2013, 06:17
|
#5
|
elite*gold: 0
Join Date: Dec 2012
Posts: 239
Received Thanks: 33
|
Quote:
Originally Posted by Suplado21
just atack higher moster ,
|
I try atk higher monster nothing happen ..no exp gain...
I ask my friend..he said need a database of weapon level...its that true? XD
|
|
|
06/23/2013, 06:22
|
#6
|
elite*gold: 0
Join Date: Jun 2013
Posts: 21
Received Thanks: 0
|
Try to re check your DBmanagersave
|
|
|
06/23/2013, 07:52
|
#7
|
elite*gold: 28
Join Date: Aug 2012
Posts: 2,335
Received Thanks: 471
|
just use one from a relased source.
|
|
|
 |
Similar Threads
|
Weapon Leveling Problem ! :(
05/25/2013 - Flyff Private Server - 2 Replies
Anyone Know ? How to Fix This Error !
Please Help me !
http://prntscr.com/16lsp0
http://prntscr.com/16lsp0
|
[Help] Weapon Leveling Bug
02/24/2013 - Flyff Private Server - 7 Replies
Anyone can help me, i compile that system w/out error when i at ingame
i attack the monster and have noticed your Weapon blabla got level but when i look at my weapon is still level 1 i need to relog, to change the level and when i shutdown the server it still level 1 again..
|
Good bug for leveling weapon skill
05/15/2009 - WoW Exploits, Hacks, Tools & Macros - 1 Replies
Didn't see anyone post this one but if you haven't noticed during the Argent Tournament you can attack the champions and valiants when people are fighting them and you can do it with your normal weapon which gets you weapon skill so you can level up your weapon skill without taking any damage you could probly bot it too and leave yourself there leveling all the different weapons you need but works great ;)
|
CO 2.0 Weapon Down-Leveling?
04/24/2009 - Conquer Online 2 - 7 Replies
Just wondering if you could level a weapon's level down, for instance a level 110 club down to 105, etc.
|
Trojan weapon skill leveling.
04/24/2008 - Conquer Online 2 - 13 Replies
After much unsuccessful searching, I still have a few questions about how the left handed weapon works on trojans. I am new to the world of trojans. I did warriors, a couple waters, and made an archer. I recently agreed to RB a water into a trojan for a buddy of mine for GWing. But I want to get him to full strength, including skills. I just made him last week, and haven't been doing much with him, and just have a few questions before I begin.
Keeping in mind, the goal is 110water>100tro.
...
|
All times are GMT +1. The time now is 17:14.
|
|