LCKB
Ingi PvP OFF - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: General Support (https://lckb.dev/forum/forumdisplay.php?fid=203)
+----- Thread: Ingi PvP OFF (/showthread.php?tid=4682)

Pages: 1 2


- DYKTATOR - 01-10-2017

Who has a way of turning off the "Ingi" during "pvp"?




- pwesty - 01-10-2017

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




- DYKTATOR - 01-10-2017

You can show how to do it?




- pwesty - 01-10-2017

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




- pwesty - 01-10-2017

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




- Karmel - 01-10-2017


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)

{



- pwesty - 01-10-2017



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?




- pwesty - 01-10-2017

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




- Karmel - 01-10-2017


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


- DYKTATOR - 01-10-2017


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

 

? Wink Smile