Jump to content

C++ Safebox questions


Recommended Posts

Hello everyone. Someone can help me in C++

1. How i can disable if you die then you can not put the equipped items into storage?

2. How i can disable equipped dragon stone can not storage? -----> "Can not store equipped DragonStone."

 

Successsfully resolved!

Please delete the topic.

Link to comment
Share on other sites

  • 5 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Forum Moderator
On 11/17/2018 at 10:03 PM, Chookez said:

Successsfully resolved!

Please delete the topic.

(2.5) Questions & Answers specific rules

  • Don't modify your thread (or reply to it) to mark it solved, and not explain the solution to the issue.

Srcs/Server/game/src/input_main.cpp

//Search in void CInputMain::SafeboxCheckin(LPCHARACTER ch, const char * c_pData) for:
	if( IS_SET(pkItem->GetAntiFlag(), ITEM_ANTIFLAG_SAFEBOX) )
	{
		ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<창고> 이 아이템은 넣을 수 없습니다."));
		return;
	}
//Add after:
	if (ch->IsDead() && pkItem->IsEquipped())
	{
		ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SAFEBOX_CANNOT_ADD_EQUIPPED_ITEM_WHILE_IS_DEAD"));
		return;
	}
	
	if (pkItem->IsDragonSoul())
	{
		ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SAFEBOX_CANNOT_ADD_ITEM_DRAGON_SOUL"));
		return;
	}

 

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.