Jump to content

Change Attribute With Time


Recommended Posts

Hi guys,
today I found this guide but I can't add the duration to the item.

 

// char_item.cpp
// 1.Search:
	ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경하였습니다."));
// 2.Right below you will find:
	item->SetCount(item->GetCount() - 1);
// 3.Replace sintax from point 2. with:
	bool bRemoveItemNoTime = false;
	for (int i = 0; i < ITEM_LIMIT_MAX_NUM; ++i)
	{
		if (item->GetLimitType(i) == LIMIT_REAL_TIME)
		{
			bRemoveItemNoTime = true;
			break;
		}
	}
	
	if(bRemoveItemNoTime == false)
	{
		item->SetCount(item->GetCount() - 1);
	}

// uitooltip.py (for see item time in client)
// 1.Search:
			if item.USE_SPECIAL == itemSubType:
// 2.Replace with:
			if item.USE_SPECIAL == itemSubType || itemSubType == 18:
	
	
	
	
// Now just go in item_proto.txHi guys,
Can anyone help me?
Thank you.
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.