Jump to content
  • 0

Automated Gold Room help


fallen0519

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   2
  • Joined:  02/15/14
  • Last Seen:  

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 by fallen0519
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   4
  • Joined:  04/16/12
  • Last Seen:  

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 by t3quila
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...