Jump to content
  • 0

What is the problem?


Question

Posted

prontera,160,182,3	script	Right	721,{
end;
OnInit:
        waitingroom "Waiting room",2,"Left::OnRoomFull",1; //Create a waitingroom
        enablewaitingroomevent	"Left"; //Enable the event trigger for the waiting room
        end;

OnRoomFull:
        if(getwaitingroomstate(32,"Left")) end; //Check if the other waiting room is full, if not end the script.
        donpcevent "Right::OnRoomWarp"; //Warp the second room
        callsub OnRoomWarp; //Warp this room.
        end;
        
OnRoomWarp:
        warpwaitingpc "guild_vs2",91,49;
        end;
}

prontera,160,184,3	script	Left	721,{
end;
OnInit:
        waitingroom "Waiting room",2,"Right::OnRoomFull",1; //Create a waitingroom
        enablewaitingroomevent	"Right"; //Enable the event trigger for the waiting room
        end;

OnRoomFull:
        if(getwaitingroomstate(32,"Right")) end; //Check if the other waiting room is full, if not end the script.
        donpcevent "Left::OnRoomWarp"; //Warp the second room
        callsub OnRoomWarp; //Warp this room.
        end;
        
OnRoomWarp:
        warpwaitingpc "guild_vs2",8,49;
        end;
}

when the 1 player enter in the pub will warp to map but the other 1 player didn't warp... what i need to do please help me thanks... :)

i wan't to make 5/5 in pub and the 5players all can enter the pub but they need a party... :D thanks so 2 partys and 2 npc w/ waiting room 5/5

3 answers to this question

Recommended Posts

Posted

you need a controller npc to do this kind of operation

-	script	main	-1,{
OnStart:
	if ( getwaitingroomstate( 0, "left" ) < 1 || getwaitingroomstate( 0, "right" ) < 1 )
		end;
	announce "blahblah start !", bc_all;
	donpcevent "left::OnStart";
	donpcevent "right::OnStart";
	delwaitingroom "left";
	delwaitingroom "right";
	disablenpc "left";
	disablenpc "right";
	end;
}

prontera,157,187,5	script	left	100,{
	end;
OnInit:
	waitingroom strnpcinfo(0), 2, "main::OnStart", 1;
	end;
OnStart:
	warpwaitingpc "guild_vs2", 9, 50;
	end;
}

prontera,160,187,5	script	right	100,{
	end;
OnInit:
	waitingroom strnpcinfo(0), 2, "main::OnStart", 1;
	end;
OnStart:
	warpwaitingpc "guild_vs2", 90, 50;
	end;
}
if you are talking about battleground, there's one inside SVN

https://github.com/rathena/rathena/blob/master/npc/custom/battleground/bg_pvp.txt

  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...