Jump to content
Sign in to follow this  
FapFap

dofile string / event_cha

Recommended Posts

@FapFap, @BETEP / macs509 , @Fomin;

 

Ищите этот код на Вашем игровом сервере:

8B  45  0C  50  68 A8 76  5B  00  68 A0 76  5B  00 E8 2D  5A  0e  00

 

Замените на 90, в конце концов, это должно быть:

90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90

 

Это изменение полностью удаляет запись для отсутствующих функций карты.

Edited by GreM

Share this post


Link to post
Share on other sites
	if(IsPlayerCha()==false && IsNpc()==false) 
	{
		if(CheckLifeTime())
		{
			if(m_HostCha && m_HostCha->IsPlayerCha())
			{
				int nPetNum = m_HostCha->GetPlyMainCha()->GetPetNum();
				if(nPetNum > 0)
					m_HostCha->GetPlyMainCha()->SetPetNum(nPetNum - 1);
			}
          
			g_CParser.DoString("event_cha_lifetime", enumSCRIPT_RETURN_NONE, 0, enumSCRIPT_PARAM_LIGHTUSERDATA, 1, this, DOSTRING_PARAM_END);
			Free();
			return;
		}
	}

I think this is function like cha_timer(), but only for monsters:

function event_cha_lifetime(role) 

end

 

16 hours ago, GreM said:

Это изменение полностью удаляет запись для отсутствующих функций карты.

It is simpler to add missing functions to scripts, as @mkhzaleh suggests, than remove them from GameServer.exe


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...