Jump to content

How to "lock" a skill


Recommended Posts

  • Bot

Hi,

i want to "lock" some skills when a particular event starts.

I have an event called "Tanaka Event" that spawns a lot of "Pirate Tanaka", they have 1 HP so you can kill them with every attack.

Many players uses a 2° character, like the Archer to kill 6-7 monsters with 1 skill.

So i hope there is a way to "lock" their skills during this event and then "unlock" them at the end.

I think it is like the "Guild War" if you are spectating.

 

Thanks!

 

Stefano

english_banner.gif

Link to comment
Share on other sites

Yes it is possible, if you dont have game +40k you must create new channel port with defined in cofig:

 

skill_disable: 1

 

Or if you have game +40k and you have source , open char_skill.cpp and find function

bool CHARACTER::UseSkill(DWORD dwVnum, LPCHARACTER pkVictim, bool bUseGrandMaster)

and add before

 if (false == CanUseSkill(dwVnum))

This code

if(quest::CQuestManager::instance().GetEventFlag("tanaka_event") && GM_PLAYER == GetGMLevel()){
		ChatPacket(CHAT_TYPE_INFO, "Skills is disabled on Tanaka Event!");
		return false;
	}

and compile game, and if you starting tanaka event you must enable block skill using command /e tanaka_event 1

  • 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



  • Similar Content

  • Activity

    1. 3

      Crystal Metinstone

    2. 3

      Feeding game source to LLM

    3. 113

      Ulthar SF V2 (TMP4 Base)

    4. 3

      Feeding game source to LLM

    5. 0

      Target Information System

    6. 3

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.