Jump to content
×
×
  • Create New...

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
  • Love 2
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


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.