Posts: 275
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
Client side:
void CTargetInfoUI::UpdateAttrIcon()
{
ObjInfo* pInfo = ObjInfo::getSingleton();
bool bAdd = IsAddSubInfo(eSUB_INFO_ATTR);
int nAttr = 0, nAttrLv = 0;
if (m_pImgArr[eARRAY_ATTR_ATT] != NULL)
{
if (bAdd == true)
{
/*
_getAttr(eATTR_ATT, nAttr, nAttrLv);
m_pImgArr[eARRAY_ATTR_ATT]->SetRenderIdx(nAttr);
m_pImgArr[eARRAY_ATTR_ATT]->Hide(FALSE);
m_pImgArr[eARRAY_ATTR_ATT]->SetPosX(m_nWidth - DEF_ICON_GAP_ATTR);
CmdTargetInfoTooltip* pCmd = new CmdTargetInfoTooltip;
pCmd->setData(this, eTOOLTIP_ATTRATT);
m_pImgArr[eARRAY_ATTR_ATT]->SetCommandEnter(pCmd);
UpdateTooltip(eTOOLTIP_ATTRATT);*/
m_pImgArr[eARRAY_ATTR_ATT]->Hide(TRUE);
}
else
{
m_pImgArr[eARRAY_ATTR_ATT]->Hide(TRUE);
}
}
if (m_pImgArr[eARRAY_ATTR_DEF] != NULL)
{
if (bAdd == true)
{
/*
_getAttr(eATTR_DEF, nAttr, nAttrLv);
m_pImgArr[eARRAY_ATTR_DEF]->SetRenderIdx(nAttr);
m_pImgArr[eARRAY_ATTR_DEF]->Hide(FALSE);
m_pImgArr[eARRAY_ATTR_DEF]->SetPosX(m_nWidth);
CmdTargetInfoTooltip* pCmd = new CmdTargetInfoTooltip;
pCmd->setData(this, eTOOLTIP_ATTRDEF);
m_pImgArr[eARRAY_ATTR_DEF]->SetCommandEnter(pCmd);
UpdateTooltip(eTOOLTIP_ATTRDEF);
*/
m_pImgArr[eARRAY_ATTR_ATT]->Hide(TRUE);
}
else
{
m_pImgArr[eARRAY_ATTR_DEF]->Hide(TRUE);
}
}
}
This will disable the elemental icons on mobs
Database query:
update t_npc set a_attribute = 0;
This will remove the elemental stats of mobs server side
Then you still need to remove it from skills, I think you can easily look for the magic IDs and remove the respective ones from t_skillLevel
Posts: 395
Threads: 58
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jan 2012
Reputation:
0
2 hours ago, Desarija said:
Client side:
void CTargetInfoUI::UpdateAttrIcon()
{
ObjInfo* pInfo = ObjInfo::getSingleton();
bool bAdd = IsAddSubInfo(eSUB_INFO_ATTR);
int nAttr = 0, nAttrLv = 0;
if (m_pImgArr[eARRAY_ATTR_ATT] != NULL)
{
if (bAdd == true)
{
/*
_getAttr(eATTR_ATT, nAttr, nAttrLv);
m_pImgArr[eARRAY_ATTR_ATT]->SetRenderIdx(nAttr);
m_pImgArr[eARRAY_ATTR_ATT]->Hide(FALSE);
m_pImgArr[eARRAY_ATTR_ATT]->SetPosX(m_nWidth - DEF_ICON_GAP_ATTR);
CmdTargetInfoTooltip* pCmd = new CmdTargetInfoTooltip;
pCmd->setData(this, eTOOLTIP_ATTRATT);
m_pImgArr[eARRAY_ATTR_ATT]->SetCommandEnter(pCmd);
UpdateTooltip(eTOOLTIP_ATTRATT);*/
m_pImgArr[eARRAY_ATTR_ATT]->Hide(TRUE);
}
else
{
m_pImgArr[eARRAY_ATTR_ATT]->Hide(TRUE);
}
}
if (m_pImgArr[eARRAY_ATTR_DEF] != NULL)
{
if (bAdd == true)
{
/*
_getAttr(eATTR_DEF, nAttr, nAttrLv);
m_pImgArr[eARRAY_ATTR_DEF]->SetRenderIdx(nAttr);
m_pImgArr[eARRAY_ATTR_DEF]->Hide(FALSE);
m_pImgArr[eARRAY_ATTR_DEF]->SetPosX(m_nWidth);
CmdTargetInfoTooltip* pCmd = new CmdTargetInfoTooltip;
pCmd->setData(this, eTOOLTIP_ATTRDEF);
m_pImgArr[eARRAY_ATTR_DEF]->SetCommandEnter(pCmd);
UpdateTooltip(eTOOLTIP_ATTRDEF);
*/
m_pImgArr[eARRAY_ATTR_ATT]->Hide(TRUE);
}
else
{
m_pImgArr[eARRAY_ATTR_DEF]->Hide(TRUE);
}
}
}
This will disable the elemental icons on mobs
Database query:
update t_npc set a_attribute = 0;
This will remove the elemental stats of mobs server side
Then you still need to remove it from skills, I think you can easily look for the magic IDs and remove the respective ones from t_skillLevel
I will look into this and try it, where exactly is this in client? . Will this also delete the elemental from each Character when pressing T?
Posts: 340
Threads: 27
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Mar 2021
Reputation:
0
8 hours ago, BayBay said:
I will look into this and try it, where exactly is this in client? . Will this also delete the elemental from each Character when pressing T?
no, you have to manually edit the skills. Take a look in the t_magic index should be linked on there!
Posts: 395
Threads: 58
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jan 2012
Reputation:
0
1 hour ago, Scura said:
no, you have to manually edit the skills. Take a look in the t_magic index should be linked on there!
thanks! I will do so
Posts: 395
Threads: 58
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jan 2012
Reputation:
0
4 hours ago, Scura said:
no, you have to manually edit the skills. Take a look in the t_magic index should be linked on there!
Ok Scura im a bit lost, Exactly what Magic ID's must i delete in t_skillLevel, how do i know which ones?
Posts: 275
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
3 hours ago, BayBay said:
Ok Scura im a bit lost, Exactly what Magic ID's must i delete in t_skillLevel, how do i know which ones?
Open t_magic and search for all magics with a_type = -1. Then you open t_skillLevel and search for these magic IDs in a_magicIndex1-3 and set them to -1 instead
16 hours ago, BayBay said:
I will look into this and try it, where exactly is this in client? . Will this also delete the elemental from each Character when pressing T?
Engine/Contents/function/TargetInfoNewUI.cpp
To remove it from the character info menu, you need to edit CharecterInfoNew.xml in your client folder (sub1_page2 I believe)
Posts: 395
Threads: 58
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jan 2012
Reputation:
0
7 hours ago, Desarija said:
Open t_magic and search for all magics with a_type = -1. Then you open t_skillLevel and search for these magic IDs in a_magicIndex1-3 and set them to -1 instead
Engine/Contents/function/TargetInfoNewUI.cpp
To remove it from the character info menu, you need to edit CharecterInfoNew.xml in your client folder (sub1_page2 I believe)
Thanks!! I will do all of this ill let you know if it worked