Jump to content
  • 0

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


DEsMOn

Question


  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.05
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

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 $@maps$[1], "alb2trea", "pvp_n_1-5", "pvp_n_2-5", "pvp_n_3-5", "pvp_n_4-5", "pvp_n_5-5";
for(set .@b,1; .@b < getarraysize($@maps$); set .@b,.@b + 1) {
    if(.@b==1){ set .@menu$, .@menu$  + "Public- "+((getmapusers($@maps$[.@b])>=30)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+")")+":"; } else { set .@menu$, .@menu$  + "Private["+(.@b-1)+"]- "+((getmapusers(""+$@maps$[.@b]+"")>=5)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+")")+":"; }
}
if(select(.@menu$)) { callfunc "GRfunction",$@maps$[@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

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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

  • Upvote 1
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...