fallen0519 Posted April 21, 2014 Posted April 21, 2014 (edited) I use this automated gold room, but the only problem is it only allow 1 people go in to farm while activated. How to make it no limit for players who can go in to the gold room yea. Or make it like 10 players to go in only. prontera,156,168,5 script Gold Room 925,{ if( getmapusers( .Map$ ) ){ npctalk "You cant go in right now. There is someone inside."; }else{ announce "["+strcharinfo(0)+"] entered Gold Room.",0; warp .Map$,0,0; initnpctimer; } end; OnInit: disablenpc "Gold Room"; set .Map$,"1@orcs"; monster .Map$,0,0,"Gold",1062,100,strnpcinfo(0)+"::OnMobKill"; while( 1 ){ delwaitingroom; if( getmapusers( .Map$ ) ){ waitingroom "Countdown "+( 60 - ( getnpctimer(0) / 1000 ) )+" Seconds",0; } sleep 1000; } end; OnClock0010: OnClock0110: OnClock0210: OnClock0310: OnClock0410: OnClock0510: OnClock0610: OnClock0710: OnClock0810: OnClock0910: OnClock1010: OnClock1110: OnClock1210: OnClock1310: OnClock1410: OnClock1510: OnClock1610: OnClock1710: OnClock1810: OnClock1910: OnClock2010: OnClock2110: OnClock2210: OnClock2310: enablenpc "Gold Room"; announce "Gold Room Activated", 0; end; OnClock0011: OnClock0111: OnClock0211: OnClock0311: OnClock0411: OnClock0511: OnClock0611: OnClock0711: OnClock0811: OnClock0911: OnClock1011: OnClock1111: OnClock1211: OnClock1311: OnClock1411: OnClock1511: OnClock1611: OnClock1711: OnClock1811: OnClock1911: OnClock2011: OnClock2111: OnClock2211: OnClock2311: disablenpc "Gold Room"; announce "Gold Room Deactivated", 0; end; OnMobKill: getitem 969,2; monster .Map$,0,0,"Gold",1062,1,strnpcinfo(0)+"::OnMobKill"; end; OnTimer60000: mapannounce .Map$,"Time's Up !! You will be warped out right now..",0; mapwarp .Map$,"prontera",156,187; end; } 1@orcs mapflag nowarp 1@orcs mapflag nowarpto 1@orcs mapflag noteleport 1@orcs mapflag nosave 1@orcs mapflag nomemo 1@orcs mapflag nobranch 1@orcs mapflag noloot 1@orcs mapflag noskill 1@orcs mapflag nopenalty Edited April 21, 2014 by fallen0519 Quote
t3quila Posted April 21, 2014 Posted April 21, 2014 (edited) try to change this if( getmapusers( .Map$ ) ){ npctalk "You cant go in right now. There is someone inside."; with this if (getmapusers( .Map$ ) > 10) { npctalk "You cant go in right now. There is already 10 persons inside."; if no limit just give // like this //if( getmapusers( .Map$ ) ){ //npctalk "You cant go in right now. There is someone inside."; //}else{ announce "["+strcharinfo(0)+"] entered Gold Room.",0; warp .Map$,0,0; initnpctimer; end; OnInit: disablenpc "Gold Room"; set .Map$,"1@orcs"; monster .Map$,0,0,"Gold",1062,100,strnpcinfo(0)+"::OnMobKill"; /* while( 1 ){ delwaitingroom; if( getmapusers( .Map$ ) ){ waitingroom "Countdown "+( 60 - ( getnpctimer(0) / 1000 ) )+" Seconds",0; } */ sleep 1000; end; OnTouch: npctalk "Please Enter the room, when waiting room already open!"; end; Edited April 21, 2014 by t3quila Quote
Question
fallen0519
I use this automated gold room, but the only problem is it only allow 1 people go in to farm while activated. How to make it no limit for players who can go in to the gold room yea. Or make it like 10 players to go in only.
Edited by fallen05191 answer 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.