Page 1 of 1

TvT Old Player Position With Buffs

Posted: Thu Nov 18, 2010 8:44 pm
by giedriukxx
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number:
L2JDP Revision Number:





Hi All Is there any one can help me with TvT old Player Position ?
My Questions is what should i Add to This Script to Make Player teleBack With they buffs as they join before.Now Only teleBack Wihout Buffs.Thx For Waisting Time On This...

_playerInstance.doRevive();

if(Config.TVT_RESTORE_PLAYER_POS)
{
if(TvTEvent.isStarted())
{
int[] currentPlayerPos =
{
_playerInstance.getX(),
_playerInstance.getY(),
_playerInstance.getZ()

};

if(!_oldCoordinates.containsKey(_playerInstance))
{
_oldCoordinates.put(_playerInstance, currentPlayerPos);
}
}

Re: TvT Old Player Position With Buffs

Posted: Thu Nov 25, 2010 3:54 pm
by giedriukxx
NoOne Knows? :?

Re: TvT Old Player Position With Buffs

Posted: Thu Nov 25, 2010 9:13 pm
by Flashy
its not so easy.. you have to store the buffs into a data table, due enter the event. after leaving the event you have to restore the buffs from this table...

Re: TvT Old Player Position With Buffs

Posted: Fri Nov 26, 2010 12:07 am
by denser
its easy but useless...who cares about buffs. if you want to save your buffs - dont go to event.
if your server with usual buffs - configs have an option to save buff on enter and during event.
if it pvp server - buffs gave no worth it to save...


before create something think twice - are you really need kinda thing?