Jump to content

[HELP]Unlimited arrow


Recommended Posts

Try change this

 

void CHARACTER::UseArrow(LPITEM pkArrow, DWORD dwArrowCount)
{
int iCount = pkArrow->GetCount();
DWORD dwVnum = pkArrow->GetVnum();
iCount = iCount - MIN(iCount, dwArrowCount);
pkArrow->SetCount(iCount);
 
if (iCount == 0)
{
LPITEM pkNewArrow = FindSpecifyItem(dwVnum);
 
sys_log(0, "UseArrow : FindSpecifyItem %u %p", dwVnum, get_pointer(pkNewArrow));
 
if (pkNewArrow)
EquipItem(pkNewArrow);
}
}
 
to this
 
void CHARACTER::UseArrow(LPITEM pkArrow, DWORD dwArrowCount)
{
 
}
 
char_battle.cpp
 
or remove function
Edited by Grudge
  • Love 1
Link to comment
Share on other sites

Oke, I comment all function :

 

void CHARACTER::UseArrow(LPITEM pkArrow, DWORD dwArrowCount)
{
//int iCount = pkArrow->GetCount();
//DWORD dwVnum = pkArrow->GetVnum();
//iCount = iCount - MIN(iCount, dwArrowCount);
//pkArrow->SetCount(iCount);
 
//if (iCount == 0)
//{
//LPITEM pkNewArrow = FindSpecifyItem(dwVnum);
 
//sys_log(0, "UseArrow : FindSpecifyItem %u %p", dwVnum, get_pointer(pkNewArrow));
 
//if (pkNewArrow)
//EquipItem(pkNewArrow);
//}
}
 
 
All working when I use skill or kill mob arrow don't disappears.
 
 
 
 
Now help me with change getting up where change this time ?
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.