Jump to content

Exchange is Damage can not be and Poly


Recommended Posts

Hi devs,

exchange.cpp -- open:

search:

 

Kod:
GetExchange()->SetCompany(victim->GetExchange());

add:

 

Kod:
SetPolymorph(30000, true);
victim->SetPolymorph(30000, true);
SetPKMode(PK_MODE_PROTECT);
victim->SetPKMode(PK_MODE_PROTECT);

search again:
 

 
if (GetCompany()->m_lGold) // µ·ÀÌ ÀÖÀ» ¶§¸¸ ÀúÀå
        victim->Save();

add:
 

Kod:
GetOwner()->SetPolymorph(GetOwner()->GetJob(), true);
victim->SetPolymorph(victim->GetJob(), true);

search again:
 

 
void CExchange::Cancel()
{

add:
 

 
GetOwner()->SetPolymorph(GetOwner()->GetJob(), true);

search again:
 

 
		if (empty_pos < 0)
		{
			sys_err("Exchange::Done : Cannot find blank position in inventory %s <-> %s item %s", 
					m_pOwner->GetName(), victim->GetName(), item->GetName());
			continue;
		}

add:

 

Kod:
m_pOwner->SetPolymorph(m_pOwner->GetJob(), true);

 

Edited by Rideas
  • Metin2 Dev 1
  • Love 2
Link to comment
Share on other sites

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.