Jump to content
  • 0

Source help


denyxp31

Question

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

Drop time:

 

Common item drop time: item.h 

StartDestroyEvent(int iSec=300);

Change 300 to someting

 

Only by player's dropped item time: char_item.cpp

pkItemToDrop->StartDestroyEvent();

change 30second example:

pkItemToDrop->StartDestroyEvent(30);

 

Sorry i can't remember where is the bonus switch time

 

 

Link to comment
Share on other sites

  • 0

Bonus scwitch time delete (char_item.cpp)

 

 
if (pPC)
{
DWORD dwNowMin = get_global_time() / 60;
 
DWORD dwLastChangeItemAttrMin = pPC->GetFlag(msc_szLastChangeItemAttrFlag);
 
if (dwLastChangeItemAttrMin + dwChangeItemAttrCycle > dwNowMin)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ĽÓĽşŔ» ąŮ˛ŰÁö %dşĐ ŔĚł»żˇ´Â ´Ů˝Ă şŻ°ćÇŇ Ľö ľř˝Ŕ´Ď´Ů.(%d şĐ ł˛Ŕ˝)"),
dwChangeItemAttrCycle, dwChangeItemAttrCycle - (dwNowMin - dwLastChangeItemAttrMin));
return false;
}
 
pPC->SetFlag(msc_szLastChangeItemAttrFlag, dwNowMin);
}
}
 
change to:
 
if (pPC)
{
DWORD dwNowMin = get_global_time() / 60;
pPC->SetFlag(msc_szLastChangeItemAttrFlag, dwNowMin);
}
}

 

 

Edit: Sorry for double post..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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.