I know it is not hard to implement but its just a promo of my new server Extreme City - Real Life Roleplay
By default the gate will auto close at night 22:01 and auto open at 06:01
Have fun with this ;)
ScreenShots:
http://i61.tinypic.com/fu3r6x.png
http://i62.tinypic.com/29vzbea.png
Code: [Select]

Note: you can create an pickup/sphere inside the bank to threw player outside if the stuck in bank when gate is closed :)
Edited: The Object.xml and onScriptLoad Updated
Edited 2: timer remove and added onTimeChange ( Thanks @Thijn)
By default the gate will auto close at night 22:01 and auto open at 06:01
Have fun with this ;)
ScreenShots:
http://i61.tinypic.com/fu3r6x.png
http://i62.tinypic.com/29vzbea.png
onScriptLoad()
{
bd1 <- CreateObject(6000, 0, Vector(-897.365, -342.66, 9.6187),255);
bd1.RotateToEuler(Vector(3.13319, 0, -0),0);
bd2 <- CreateObject(6001, 0, Vector(-897.355, -339.4, 9.6187),255);
bd2.RotateToEuler(Vector(3.13318, -3.79681e-010, -6.16084e-010),0);
}
function onTimeChange(oldHour, oldMin, newHour, newMin)
{
if ( oldHour == 06 && oldMin == 00 )
{
Message("Bank Opened");
bd1.MoveTo(Vector(-897.365, -342.66, 9.6187),2000);
bd2.MoveTo(Vector(-897.355, -339.4, 9.6187),2000);
}
else if( oldHour == 22 && oldMin == 00 )
{
Message("Bank Closed");
bd1.MoveTo(Vector(-897.365, -342.66, 13.6187),2000);
bd2.MoveTo(Vector(-897.355, -339.4, 13.6187),2000);
}
}
Note: you can create an pickup/sphere inside the bank to threw player outside if the stuck in bank when gate is closed :)
Edited: The Object.xml and onScriptLoad Updated
Edited 2: timer remove and added onTimeChange ( Thanks @Thijn)