Shindu Posted January 26, 2014 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 28 Reputation: 0 Joined: 12/09/13 Last Seen: May 2, 2014 Share Posted January 26, 2014 Hey guys, so i have this script i found for a Private DB room. Works great however i want to include a few mods to this script and wondering if you can help me. 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; } } I want it to only accept the 2 million zeny payment once and only by the player setting the room password. All other players that obtain the password enter for free. Also a 1 hour time limit, after 1 hour all players are warped out, all monster on the map are killed and the room becomes live again with no password. Is this possible to add onto this script? Thank you. Quote Link to comment Share on other sites More sharing options...
0 xFoo Posted May 13, 2020 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 19 Reputation: 0 Joined: 03/04/20 Last Seen: June 10, 2022 Share Posted May 13, 2020 Hi @AnnieRuru How can i add more rooms? for example, I want to add the ff maps on your script. pvp_n_1-1 pvp_n_2-1 pvp_n_3-1 pvp_n_4-1 pvp_n_5-1 pvp_n_6-1 pvp_n_7-1 pvp_n_8-1 Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 27, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 27, 2014 http://rathena.org/board/topic/72376-mvp-summon-script/?p=146696 why not just use mine ... and use party options ? rent the room for party members ... then invite your friends ... simple ... Quote Link to comment Share on other sites More sharing options...
reysen Posted September 22, 2014 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 8 Reputation: 0 Joined: 03/16/14 Last Seen: January 29, 2018 Share Posted September 22, 2014 i like your script Annie but i dont want the Summoner one? can u remove that in the script Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted September 23, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted September 23, 2014 this topic quite old, already has 1.4b http://rathena.org/board/topic/72376-mvp-summon-script/?p=245270 this script is quite hard to edit, very messy addtionally, you can also use the one inside your own emulator https://github.com/rathena/rathena/blob/master/npc/custom/etc/mvp_room.txt which is easier to understand, can edit to your liking to disable the mvp spawn or boss spawn, just disable it // Options setting inside MVP room set .@menu[1], 1; // Turn Heal option On/Off set .@menu[2], 0; // Turn MVP Summoning On/Off set .@menu[3], 0; // Turn Mini boss Summoning On/Off set .@menu[4], 0; // Sell items (branches) On/Off (see shop below, before the mapflags) 1 Quote Link to comment Share on other sites More sharing options...
Question
Shindu
Hey guys, so i have this script i found for a Private DB room.
Works great however i want to include a few mods to this script and wondering if you can help me.
I want it to only accept the 2 million zeny payment once and only by the player setting the room password.
All other players that obtain the password enter for free.
Also a 1 hour time limit, after 1 hour all players are warped out, all monster on the map are killed and the room becomes live again with no password.
Is this possible to add onto this script?
Thank you.
Link to comment
Share on other sites
4 answers to this question
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.