Jump to content

Recommended Posts

Posted

Just create a boolean variable in L2PcInstance.java , for example create : boolean _blocked

 

When player enters the world this boolean will change to true. _blocked = true;

 

And you find each action and you add just a check

 

if _blocked is true , then can't make the action

Posted

if _blocked is true , then can't make the action

For ex. _blocked =true

then do. do what? how blocked all actions?

you have to block each action.

 

for example to block the trade , you go at TradeRequest.java and you add

 

if(player._blocked)

  return;

Posted

Done)

My version: i add condition that check zone of character, if !peace block mail, trade.

Other version : when char loggin set OlympiadMode() for character, add to RequestPostItem/RequestReceivedPost

if (activeChar.isInOlympiadMode())

{

activeChar.sendPacket(SystemMessageId.CANT_USE_MAIL_OUTSIDE_PEACE_ZONE);

return;

}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...