Ingi PvP OFF
#1
Who has a way of turning off the "Ingi" during "pvp"?

#2
Just have to code it to disable the use of the ignition skill if pvp = on

#3
You can show how to do it?

#4
void do_Skill_UseEP ( CPC* ch, CNetMsg::SP& msg )

dofuncskill.cpp

Line 2464

Would be added in there so the skills are not usable during PvP

You can see it's already disabled in RvR

#5
I am going to try this out, my code, if it works ill send you the .cpp to disable it for you Smile

#6

GameServer\doFuncSkill.cpp
void do_Skill_UseEP ( CPC* ch, CNetMsg::SP& msg )

{

if(ch->m_pArea->m_zone->isRVRZone()

|| ch->IsSetPlayerState(PLAYER_STATE_PKMODE) || ch->GetMapAttr() & MATT_FREEPKZONE || ch->GetMapAttr() & MATT_WAR)

{
#7


GameServer\doFuncSkill.cpp

void do_Skill_UseEP ( CPC* ch, CNetMsg::SP& msg )
{
if(ch->m_pArea->m_zone->isRVRZone()
|| ch->IsSetPlayerState(PLAYER_STATE_PKMODE) || ch->GetMapAttr() & MATT_FREEPKZONE || ch->GetMapAttr() & MATT_WAR)
{

wouldn't it be get player state though?

#8
Code i tried doesn't let you use ign during pvp but also doesn let it work all together hehe Smile

#9

GetPlayerState is returning `int` of player all state flages, IsSetPlayerState is checking state and returning `bool`.

We can do it by this way too:

ch->GetPlayerState() & PLAYER_STATE_PKMODEAlso, you should set clearing ignition assist at PVP turning on
#10

And what to do if I already Ingi and enter the zone of pvp?
Ingi I still do not disappear?

 

? Wink Smile



Forum Jump:


Users browsing this thread: 1 Guest(s)