i hve this in a other thread... cn someone make this hour change?
example:
1st. in 24hrs... it will open in 1hour and closed in 2hrs then open 1 hr . 2hrs closed (simultaneously)
2nd. has to announce the player inside the goldroom there only 2mins. left before gold room will be close (should be close in 2hrs) they will be warped outside
3rd. there is a countdown in how mny minutes left before gold room will disappear... countdown in uuper of the npc
4th. cn change the 1minute thing here.. it should be 1hr open , 2hrs close
yhank you...
prontera,147,169,3 script Gold Room 757,{
if( getmapusers( .Map$ ) > 19 )
npctalk "You cant go in right now. There are already 20 peoples inside.";
else {
announce "["+strcharinfo(0)+"] entered Gold Room. "+(19-getmapusers( .Map$ ))+" place left.",0;
warp .Map$,0,0;
}
end;
//-- Trigger auto event
OnMinute16:
announce "Gold Room : I will open my door in One ( 1 ) minute! Head your way to Prontera.",0;
sleep 1000 * .willopenin;
//-- Gold room open
hideoffnpc "Gold Room";
announce "Gold Room : It is now open ! You have one minute to enter, Only 20 players are allowed to join !",0;
//-- 1 minutes before players will be warp
initnpctimer;
while( 60 - ( getnpctimer(0) / 1000 ) > 0 ) {
delwaitingroom;
waitingroom "Countdown "+( 60 - ( getnpctimer(0) / 1000 ) )+" Seconds",0;
sleep 100;
}
delwaitingroom;
mapannounce .Map$,"Time's Up !! You will be warped out right now..",0;
mapwarp .Map$,"prontera",155,182;
stopnpctimer;
//-- Gold room closed
hideonnpc "Gold Room";
announce "Gold Room is now closed !",0;
end;
OnMobKill:
if( rand(100) < 50 ) getitem 969,1;
monster .Map$,0,0,"Gold",1369,100,strnpcinfo(0)+"::OnMobKill";
end;
OnInit:
//-- Gold Room will open his door in XX - in seconds -- 60 seconds = 1 minute x.x
.willopenin = 60;
//-- Time to enter (secondes) before hide the NPC
.timeenter = 60;
//--
hideonnpc "Gold Room";
set .Map$,"ordeal_3-2";
monster .Map$,0,0,"Gold",1369,10,strnpcinfo(0)+"::OnMobKill";
end;
}
Question
CursorX
i hve this in a other thread... cn someone make this hour change?
example:
1st. in 24hrs... it will open in 1hour and closed in 2hrs then open 1 hr . 2hrs closed (simultaneously)
2nd. has to announce the player inside the goldroom there only 2mins. left before gold room will be close (should be close in 2hrs) they will be warped outside
3rd. there is a countdown in how mny minutes left before gold room will disappear... countdown in uuper of the npc
4th. cn change the 1minute thing here.. it should be 1hr open , 2hrs close
yhank you...
Edited by DwGenLink to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.