PythonPlayerSkill.cpp
Arat
bool CPythonPlayer::__CheckSkillUsable(DWORD dwSlotIndex)
{
PyCallClassMemberFunc(m_ppyGameWindow, "OnCannotUseSkill", Py_BuildValue("(is)", GetMainCharacterIndex(), "NOT_HORSE_SKILL"));
return false;
}
}
Altına ekle
#include "PythonBackground.h"
if(pSkillData && strstr(CPythonBackground::Instance().GetWarpMapName(), "metin2_map_Tesy))// Map adı Client
{
PyCallClassMemberFunc(m_ppyGameWindow, "OnCannotUseSkill", Py_BuildValue("(is)", GetMainCharacterIndex(), "HORSE_SKILL_BLOCK"));
return false;
}