Cyborg Posted January 8, 2023 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 55 Reputation: 1 Joined: 07/19/18 Last Seen: April 12 Share Posted January 8, 2023 (edited) pa tulog naman po ako 1: paano po siya malalagyan ng branch shop 2: saka auto kick out po sa room prontera,146,164,6 script Dead Branch Room 721,{ setarray $@maps$[1], "ordeal_1-1", "06guild_01", "06guild_02", "06guild_03", "06guild_04", "06guild_05", "06guild_06", "06guild_07", "06guild_08"; setarray .@price[1], 200, 2000000, 2000000, 2000000, 2000000, 2000000, 2000000, 2000000, 2000000; 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])+") ["+.@price[.@b]+" zeny]")+":"; } else { set .@menu$, .@menu$ + "Private["+(.@b-1)+"]- "+((getmapusers(""+$@maps$[.@b]+"")>=5)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+") ["+.@price[.@b]+" zeny]")+":"; } } if(select(.@menu$)) { if(Zeny<.@price[@menu]){mes "I'm sorry but you don't have enough Zeny, please come back later."; close;} if(getmapusers($@maps$[@menu])<=30&&@menu==1){ set Zeny,Zeny-.@price[@menu]; set $@maps$,$@maps$[@menu]; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp $@maps$[@menu],150,148; end; } if(!getmapusers($@maps$[@menu])){ mes "Input a new password."; input($password$[@menu]); set Zeny,Zeny-.@price[@menu]; set $@maps$,$@maps$[@menu]; next; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp $@maps$[@menu],50,50; end; } if(getmapusers($@maps$[@menu])<=5&&@menu!=1) { mes "This room is password protected please input the password now."; input(@name$); if(@name$==$password$[@menu]){ set Zeny,Zeny-.@price[@menu]; set $@maps$,$@maps$[@menu]; mes "correct!"; next; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp $@maps$[@menu],50,50; end; } else { mes "Incorrect!"; close; } } else { mes "I'm sorry this room is full."; close; } } OnTimer3600000: if(strcharinfo(3)==$@maps$){ warp "prontera",156,181; end; } Edited January 8, 2023 by Cyborg Quote Link to comment Share on other sites More sharing options...
kalabasa Posted January 10, 2023 Group: Members Topic Count: 123 Topics Per Day: 0.05 Content Count: 478 Reputation: 14 Joined: 11/30/17 Last Seen: January 23 Share Posted January 10, 2023 ito gamitin mo brod https://github.com/rathena/rathena/blob/master/npc/custom/etc/mvp_room.txt Quote Link to comment Share on other sites More sharing options...
Cyborg Posted January 10, 2023 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 55 Reputation: 1 Joined: 07/19/18 Last Seen: April 12 Author Share Posted January 10, 2023 6 hours ago, kalabasa said: ito gamitin mo brod https://github.com/rathena/rathena/blob/master/npc/custom/etc/mvp_room.txt testing ko po ito Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.