Jump to content

Normal horse attack


Recommended Posts

Hi guys,

I want attacking from normal horse before WH.. (1-10lv) Just I edit clientside for attack.. -> InstanceBase.cpp
Attack working, but I do not deal dmg.. What I must change in char_item.cpp?

Here is code for normal horse from char_item.cpp:

		case 20101:
		case 20102:
		case 20103:
			// 초급 말
			if (item->GetVnum() == ITEM_REVIVE_HORSE_1)
			{
				if (!IsDead())
				{
					from->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("죽지 않은 말에게 선초를 먹일 수 없습니다."));
					return false;
				}
				return true;
			}
			else if (item->GetVnum() == ITEM_HORSE_FOOD_1)
			{
				if (IsDead())
				{
					from->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("죽은 말에게 사료를 먹일 수 없습니다."));
					return false;
				}
				return true;
			}
			else if (item->GetVnum() == ITEM_HORSE_FOOD_2 || item->GetVnum() == ITEM_HORSE_FOOD_3)
			{
				return false;
			}
			break;

 

Anyone has idea how to create attack from normal horse?

Thanks!

Link to comment
Share on other sites

2 hours ago, WLsj24 said:

Try in pvp.cpp

bool CPVPManager::CanAttack

Yes I know, but wh, mh is not in this case.. Just I want ymir way like replace with wh, mh code..

pvp.cpp

	if( true == pkChr->IsHorseRiding() )
	{
		if( pkChr->GetHorseLevel() > 0 && 1 == pkChr->GetHorseGrade() ) 
			return false;
	}

Mmm?

  • Love 1
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.