Jump to content
  • 0
DEsMOn

Need to add reset button for GM to clear room/ when all players leave room auto clear ROOM

Question

Hello Everyone.

I've noticed Players using Bloody branch in BBroom, But when Specially BEE spawns they leave die n leave room and MVP stays there.

Because of this when new team try to go in same room they get this MVP by default.

That's Why looking for solution when all player dies or Left room MVP/all Monster should auto wipe

Or Add GM reset button in same script to remove clear all mob from all room.

If its possible please reply... @Elysium

Thanks in Advance..!!

dali02,82,136,5    script    Bloody Branch Room    403,{
setarray [email protected]$[1], "alb2trea", "pvp_n_1-5", "pvp_n_2-5", "pvp_n_3-5", "pvp_n_4-5", "pvp_n_5-5";
for(set [email protected],1; [email protected] < getarraysize([email protected]$); set [email protected],[email protected] + 1) {
    if([email protected]==1){ set [email protected]$, [email protected]$  + "Public- "+((getmapusers([email protected]$[[email protected]])>=30)?"^CD0000Closed^000000("+getmapusers([email protected]$[[email protected]])+")":"^007700Open^000000("+getmapusers([email protected]$[[email protected]])+")")+":"; } else { set [email protected]$, [email protected]$  + "Private["+([email protected])+"]- "+((getmapusers(""[email protected]$[[email protected]]+"")>=5)?"^CD0000Closed^000000("+getmapusers([email protected]$[[email protected]])+")":"^007700Open^000000("+getmapusers([email protected]$[[email protected]])+")")+":"; }
}
if(select([email protected]$)) { callfunc "GRfunction",[email protected]$[@menu],@menu; }
}

function    script    GRfunction    {
if(getmapusers(getarg(0))<=30&&getarg(1)==1){
    warp getarg(0),0,0; end;
}
if(!getmapusers(getarg(0))){
    mes "Input a new password.";
    input($password$[getarg(1)]);
    next; warp getarg(0),0,0;
    end;
}
if(getmapusers(getarg(0))<=5&&getarg(1)!=1) {
    mes "This room is password protected please input the password now.";
    input(@name$);
    if(@name$==$password$[getarg(1)]){
        mes "correct!"; next; warp getarg(0),0,0; end;
    } else {
        mes "Incorrect!";
        close;
    }
} else {
    mes "I'm sorry this room is full.";
    close;
}
}

// Duplicates
//============================================================
alberta,32,247,6    duplicate(Bloody Branch Room)    BBroom#alb    403
comodo,188,162,6    duplicate(Bloody Branch Room)    BBroom#com    403
morocc,171,102,6    duplicate(Bloody Branch Room)    BBroom#moc    403
gonryun,168,116,6    duplicate(Bloody Branch Room)    BBroom#gon    403
mid_camp,221,288,6    duplicate(Bloody Branch Room)    BBroom#mid    403
payon,186,105,6    duplicate(Bloody Branch Room)    BBroom#pay    403
dicastes01,207,189,3    duplicate(Bloody Branch Room)    BBroom#dic    403
mora,43,153,6    duplicate(Bloody Branch Room)    BBroom#mor    403
malangdo,152,112,3    duplicate(Bloody Branch Room)    BBroom#mal    403
ayothaya,157,102,3    duplicate(Bloody Branch Room)    BBroom#ayo    403

BBroom.txt

Edited by Mael
Use codebox
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
dali02,82,136,5	script	Bloody Branch Room	403,{
setarray [email protected]$[1], "alb2trea", "pvp_n_1-5", "pvp_n_2-5", "pvp_n_3-5", "pvp_n_4-5", "pvp_n_5-5";
for(set [email protected],1; [email protected] < getarraysize([email protected]$); set [email protected],[email protected] + 1) {
	if([email protected]==1){ set [email protected]$, [email protected]$  + "Public- "+((getmapusers([email protected]$[[email protected]])>=30)?"^CD0000Closed^000000("+getmapusers([email protected]$[[email protected]])+")":"^007700Open^000000("+getmapusers([email protected]$[[email protected]])+")")+":"; } else { set [email protected]$, [email protected]$  + "Private["+([email protected])+"]- "+((getmapusers(""[email protected]$[[email protected]]+"")>=5)?"^CD0000Closed^000000("+getmapusers([email protected]$[[email protected]])+")":"^007700Open^000000("+getmapusers([email protected]$[[email protected]])+")")+":"; }
}
if(select([email protected]$)) { callfunc "GRfunction",[email protected]$[@menu],@menu; }
}

function	script	GRfunction	{
if(!getmapusers(getarg(0)))
	killmonster getarg(0), "All";
if(getmapusers(getarg(0))<=30&&getarg(1)==1){
	warp getarg(0),0,0; end;
}
if(!getmapusers(getarg(0))){
	mes "Input a new password.";
	input($password$[getarg(1)]);
	next; warp getarg(0),0,0;
	end;
}
if(getmapusers(getarg(0))<=5&&getarg(1)!=1) {
	mes "This room is password protected please input the password now.";
	input(@name$);
	if(@name$==$password$[getarg(1)]){
		mes "correct!"; next; warp getarg(0),0,0; end;
	} else {
		mes "Incorrect!";
		close;
	}
} else {
	mes "I'm sorry this room is full.";
	close;
}
}

// Duplicates
//============================================================
alberta,32,247,6	duplicate(Bloody Branch Room)	BBroom#alb	403
comodo,188,162,6	duplicate(Bloody Branch Room)	BBroom#com	403
morocc,171,102,6	duplicate(Bloody Branch Room)	BBroom#moc	403
gonryun,168,116,6	duplicate(Bloody Branch Room)	BBroom#gon	403
mid_camp,221,288,6	duplicate(Bloody Branch Room)	BBroom#mid	403
payon,186,105,6	duplicate(Bloody Branch Room)	BBroom#pay	403
dicastes01,207,189,3	duplicate(Bloody Branch Room)	BBroom#dic	403
mora,43,153,6	duplicate(Bloody Branch Room)	BBroom#mor	403
malangdo,152,112,3	duplicate(Bloody Branch Room)	BBroom#mal	403
ayothaya,157,102,3	duplicate(Bloody Branch Room)	BBroom#ayo	403

you can just wipe it right before player enter a room that has no player inside.

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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.