Jump to content
  • 0

What is the problem?


rhay18

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/18/12
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

it's a bg right o:? you only want to increase the number of players there?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/18/12
  • Last Seen:  

thanks annie... :)

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