punish_timer on GE

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
gameblond
Posts: 53
Joined: Wed Jun 23, 2010 11:56 am

punish_timer on GE

Post by gameblond »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 7664:
L2JDP Revision 7664:

Hello ,

When a player is chat banned for 20 mins after he /restart/logout and login back he is still chat banned for 20 mins.
I am trying to figure out how to save current punish_timer on player restart/logout

Most of code about punish is at l2pcinstance if you need any part in order to help me let me know!

thanks for your time.
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: punish_timer on GE

Post by UnAfraid »

He is chat banned for 20 minutes in game.
He must stay 20 mins online.
Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: punish_timer on GE

Post by jurchiks »

...
If he has 2 minutes left and he logs out, then logs back in, he should not have to wait another 20 minutes, that doesn't make sense.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: punish_timer on GE

Post by UnAfraid »

In H5 that punishment system is reworked synch it if u wish.
Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: punish_timer on GE

Post by jurchiks »

Ahh, that's Epilogue... missed that bit.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
gameblond
Posts: 53
Joined: Wed Jun 23, 2010 11:56 am

Re: punish_timer on GE

Post by gameblond »

Thanks for your answer do you mean this system?
viewtopic.php?f=70&t=27628&hilit=punishment


I don't think i need to change the whole pushnishment system i just need a tip where i can save the current timer
If he has 2 minutes left and he logs out, then logs back in, he should not have to wait another 20 minutes, that doesn't make sense.
this is exactly the problem seems like on player restart/logout there is no timer save.
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: punish_timer on GE

Post by UnAfraid »

Yeah but there are some commits after the initial ones with typo fixes make sure u get them applied as well.
Image
Post Reply