Hello Everyone.. im having a problem on here in GoldRoom script.. i changed all./ but i did get this here somewhere... can help me change it?
1. 1hr open is good.. but after 1minute the npc is hiding
2. how do i change the randome getting of gold.. like 25% 3gold or 50% 2gold or 75% 1gold
3. how do i change the countdown time in waitingroom into something like this XX:XX
Am i wrong here?
prontera,147,169,6 script Gold Room 757,{
if( getmapusers( .Map$ ) > 29 )
npctalk "You cant go in right now. There are already 30 peoples inside.";
else {
announce "["+strcharinfo(0)+"] entered Gold Room. "+(29-getmapusers( .Map$ ))+" place left.",0;
warp .Map$,0,0;
}
end;
//-- Trigger auto event
OnClock0100:
OnClock0400:
announce "Gold Room : I will open my door in ( 1 ) minute! Head your way to Prontera.",0;
sleep 1000 * .willopenin;
//-- Gold room open
hideoffnpc "Gold Room";
announce "Gold Room : It is now open for 1 hour, Only 30 players are allowed to join !",0;
//-- 1 hour before players will be warp
initnpctimer;
while( 3600 - ( getnpctimer(0) / 60000 ) > 0 ) {
delwaitingroom;
waitingroom "Countdown "+( 3600 - ( getnpctimer(0) / 60000 ) )+" Minutes",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
OnClock0200:
OnClock0500:
hideonnpc "Gold Room";
announce "Gold Room is now closed !",0;
end;
OnMobKill:
if( rand(100) < 25 ) getitem 969,3;
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 = 3600;
//--
hideonnpc "Gold Room";
set .Map$,"ordeal_3-2";
monster .Map$,0,0,"Gold",1369,100,strnpcinfo(0)+"::OnMobKill";
end;
}
Question
CursorX
Hello Everyone.. im having a problem on here in GoldRoom script.. i changed all./ but i did get this here somewhere... can help me change it?
1. 1hr open is good.. but after 1minute the npc is hiding
2. how do i change the randome getting of gold.. like 25% 3gold or 50% 2gold or 75% 1gold
3. how do i change the countdown time in waitingroom into something like this XX:XX
Am i wrong here?
Edited by DwGenLink to comment
Share on other sites
11 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.