Jump to content

Block Skill During the Event OX


Recommended Posts

 

A guy from another country was crying a forum for a server that I was given the prize for the final winner of this complaint?
- Did you use a skill during the event was punctuated ox and as you enter the bug event.

Many people use skills during the event to no longer make them the ability cheer1 / cheer2 when they win because that question be entered by a bug in the event, or went with bug armor, etc. relog

This lock not only help run a fair event, but also help to decrease the lag because many people use the skill's, buff etc in the event.

 

You can enable/disable this protect for no use skill in map with:

/e enable_block_skill_oxevent 1 

/e enable_block_skill_oxevent 0 

(0) - Disable protect

(1) - Enable protect

[File: Src/game/src/char_skill.cpp]

//1.) Search:

	if (false == CanUseSkill(dwVnum))
		return false;

//2.) Add bellow:

#ifdef ENABLE_BLOCK_SKILL_OXEVENT
#include "questmanager.h"
	DWORD dwFlagBlockSkill = quest::CQuestManager::instance().GetEventFlag("enable_block_skill_oxevent");
	
	if (dwFlagBlockSkill > 0 && GetMapIndex() == 113)
	{
		if (quest::CQuestManager::instance().GetEventFlag("oxevent_status") != 0)
		{
			ChatPacket(CHAT_TYPE_NOTICE, "[OXEVENT] You can not use skills during the event ox !");	
			return false;
		}		
	}
#endif

[File: Src/game/common/service.h]

#define ENABLE_BLOCK_SKILL_OXEVENT

 

 

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