Private Mvp Room 1

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Private Mvp Room 1 as PDF for free.

More details

  • Words: 4,159
  • Pages: 15
//===== eathena script ====================================== //= private mvp/branch room //===== by: =============================================== //= by ~annieruru~ //===== current version: ====================================== //= 1.2 //===== compatible with: ===================================== //= eathena 11650 trunk above or 11863 stable above //===== description: ========================================= //= player can rent mvp room for the player him/herself, for party or for guilds //===== topic ================================================= //= http://www.eathena.ws/board/index.php?showtopic=187654 //===== additional comments: ================================== //= 1.0 //= ---- break the tradition which a script only for a player, or only for a party. //= now 1 room can be use for party and another room can use for guilds. //= ---- timeout feature to prevent player owns the room indefinitely, //= by create a new account and sit/@at'ing inside overnight. //= ---- can disable mvp/boss summon via configuration and becomes a branch room script. //= ---- a double check to prevent players rent all the rooms for himself. //= 1.0a //= ---- fix a critial bug that the time count too fast -_-" //= 1.1 //= ---- added item cost to rent or to summon //= ---- added a config to limit summoning per session //= ---- added flood control option //= 1.2 //= ---- rewrite the waitingroom counter //= ---- optimize the script in a way can add custom summon group //= ---- add config to kill the monsters if the room just being left empty //= ---- add gm can kick room in use //= ---- add able to spawn in numbers //= ---- add limitspawn can configure to negative to limit spawn in that group instead of individual one //======================================================== // this is the shop for this branch room if you already enable it. can sell whatever things you want. shop mvp room#branch -1,604:100000,12103:1000000

-

script mvp summoner goto l_start;

-1,{

oninit: getmapxy .@map$, .@x, .@y, 1; if ( .@map$ == "" ) { // config -------------------------------------------------------------------------------------// time for rent a room in minutes. when time out, players inside the room will kick out. do not set this as 0 set .timeout, 60;

// if the room left empty for # minutes, will be treated as give up the room. do not set this as 0 set .nobodygiveup, 5; // note : the script only search item or zeny. if you specify item amount, then it will ask for the item. if item amount is 0, then it will ask for zeny. // the cost to rent a room set .rentitemid, 674; // item id use for rent a room - 674 - mithil coin set .rentitemamount, 0; // amount of items to rent a room set .rentcost, 1000000; // otherwise, zeny cost to rent a room // limit each room can only summon 1 monster at a time. (only the summoning option) // turn it off (0) means the player can summon a lot of monsters as long as the player has enough zeny/item. high rate server players love the room with a lot mvps // turn it on (1) means the player have to kill existing monster before can summon a new one. low rate server player prefer to take out mvp 1 by 1 set .floodcontrol, 0; // if .floodcontrol is turn off, your players might experience lag if they summoned too many mvps // so what is the maximum input to limit your players summon too many ? set .inputlimit, 30; // if the room has left over monsters while nobody in the room and the room not give up yet, shall we kill monsters in empty room ? set .killmonster, 1; // default is yes // set set set set set set set set set set set

options menu setting for mvp summoner npc. .@menu[0], 1; // turn heal option on/off .@menu[1], 1; // turn group 1 summons on/off -> mvp .@menu[2], 1; // turn group 2 summons on/off -> mini boss .@menu[3], 0; // turn group 3 summons on/off .@menu[4], 0; // turn group 4 summons on/off .@menu[5], 0; // turn group 5 summons on/off .@menu[6], 0; // turn group 6 summons on/off .@menu[7], 0; // turn group 7 summons on/off .@menu[8], 0; // turn group 8 summons on/off .@menu[9], 0; // turn group 9 summons on/off .@menu[10], 0; // sell shop items options on/off ( shop npc above )

// set respawn point when they leave the room. obviously warp to the private mvp room warper npc set .respawnmap$, "prontera"; // note : "savepoint" does not work set .respawnx, 150; set .respawny, 174; // the minimum gm level can kick a room in use set .gmlvlkick, 80; // .limitspawn in previous revision changed to .grouplimit . // it is for limit each monster spawn per session, prevent them only killing same monster again and again // now you can configure one group has limited summon, and another group has unlimited summon // tips: if you server has an insane custom mvp, you can put your custom mob

to group 3~9 with insane item cost, and limit only 1 summon per session // .grouplimit use amount, means if group1limit set to 10, then each session can only summon up to 10 amount of that kind of monster. 0 is unlimited // --------// group 1 -> mvp // --------set .group1name$, "mvp"; // group 1 name set .group1itemid, 674; // item id use for summon any group 1 monster - 674 - mithil coin set .group1itemamount, 0; // amount of items to summon a group 1 monster set .group1cost, 100000; // if no item is specify, zeny cost to summon a group 1 monster set .group1limit, 0; // limit of summon of group 1 monster per session, prevent them only killing same monster again and again setarray .group1id, 1511,// amon ra 1647,// assassin cross eremes 1785,// atroce 1630,// bacsojin 1039,// baphomet 1874,// beelzebub 1272,// dark lord 1719,// datale 1046,// doppelgangger 1389,// dracula 1112,// drake 1115,// eddga 1418,// evil snake lord 1871,// fallen bishop 1252,// garm 1768,// gloom under night 1086,// golden thief bug 1885,// gorynych 1649,// high priest magaleta 1651,// high wizard katrinn 1832,// ifrit 1492,// incantation samurai 1734,// kiel d-01 1251,// knight of windstorm 1779,// ktullanux 1688,// lady tanee 1646,// lord knight seyren 1373,// lord of death 1147,// maya 1059,// mistress 1150,// moonlight flower 1087,// orc hero 1190,// orc lord 1038,// osiris 1157,// pharaoh 1159,// phreeoni 1623,// rsx 0806 1650,// sniper shecil 1583,// tao gunka 1708,// thanatos 1312,// turtle general 1751,// valkyrie randgris

1648,// whitesmith harword 1658;// ygnizem // --------// group 2 -> mini boss // --------set .group2name$, "mini boss"; // group 2 name set .group2itemid, 674; // item id use for summon any group 2 monster - 674 - mithil coin set .group2itemamount, 0; // amount of items to summon a group 2 monster set .group2cost, 10000; // if no item is specify, zeny cost to summon a group 2 monster set .group2limit, 0; // limit of summon of group 2 monster per session, prevent them only killing same monster again and again setarray .group2id, 1096,// angeling 1388,// archangeling 1795,// bloody knight 1839,// byorgue 1283,// chimera 1302,// dark illusion 1582,// deviling 1091,// dragon fly 1093,// eclipse 1783,// galion 1592,// gangster 1120,// ghostring 1259,// gryphon 1720,// hydro 1090,// mastering 1289,// maya purple 1262,// mutant dragon 1870,// necromancer 1295,// owl baron 1089,// toad 1092,// vagabond wolf 1765;// valkyrie // --------// group 3 // --------set .group3name$, "poring-family"; // group 3 name set .group3itemid, 12109; // item id use for summon any group 3 monster 12109 - poring box set .group3itemamount, 1; // amount of items to summon a group 3 monster set .group3cost, 0; // if no item is specify, zeny cost to summon a group 3 monster set .group3limit, -5; // limit of summon of group 3 monster per session, prevent them only killing same monster again and again setarray .group3id, 1002,// poring 1113,// drops 1031,// poporing 1242,// marin 1062,// santa poring 1613,// metaling 1784,// stapo 1090,// mastering

1096,// 1120,// 1582,// 1388;//

angeling ghostring deviling arc angeling

// --------// group 4 // --------set .group4name$, ""; // group 4 name set .group4itemid, 0; // item id use for summon any group 4 monster set .group4itemamount, 0; // amount of items to summon a group 4 monster set .group4cost, 0; // if no item is specify, zeny cost to summon a group 4 monster set .group4limit, 0; // limit of summon of group 4 monster per session, prevent them only killing same monster again and again setarray .group4id, 1001, 1002; // --------// group 5 // --------set .group5name$, ""; // group 5 name set .group5itemid, 0; // item id use for summon any group 5 monster set .group5itemamount, 0; // amount of items to summon a group 5 monster set .group5cost, 0; // if no item is specify, zeny cost to summon a group 5 monster set .group5limit, 0; // limit of summon of group 5 monster per session, prevent them only killing same monster again and again setarray .group5id, 1001, 1002; // --------// group 6 // --------set .group6name$, ""; // group 6 name set .group6itemid, 0; // item id use for summon any group 6 monster set .group6itemamount, 0; // amount of items to summon a group 6 monster set .group6cost, 0; // if no item is specify, zeny cost to summon a group 6 monster set .group6limit, 0; // limit of summon of group 6 monster per session, prevent them only killing same monster again and again setarray .group6id, 1001, 1002; // --------// group 7 // --------set .group7name$, ""; // group 7 name set .group7itemid, 0; // item id use for summon any group 7 monster set .group7itemamount, 0; // amount of items to summon a group 7 monster set .group7cost, 0; // if no item is specify, zeny cost to summon a group 7 monster set .group7limit, 0; // limit of summon of group 7 monster per session, prevent them only killing same monster again and again setarray .group7id,

1001, 1002; // --------// group 8 // --------set .group8name$, ""; // group 8 name set .group8itemid, 0; // item id use for summon any group 8 monster set .group8itemamount, 0; // amount of items to summon a group 8 monster set .group8cost, 0; // if no item is specify, zeny cost to summon a group 8 monster set .group8limit, 0; // limit of summon of group 8 monster per session, prevent them only killing same monster again and again setarray .group8id, 1001, 1002; // --------// group 9 // --------set .group9name$, ""; // group 9 name set .group9itemid, 0; // item id use for summon any group 9 monster set .group9itemamount, 0; // amount of items to summon a group 9 monster set .group9cost, 0; // if no item is specify, zeny cost to summon a group 9 monster set .group9limit, 0; // limit of summon of group 9 monster per session, prevent them only killing same monster again and again setarray .group9id, 1001, 1002; // config ends -----------------------------------------------------------------------if ( .timeout == 0 ) set .timeout, 60; if ( .nobodygiveup == 0 ) set .nobodygiveup, 5; if ( .inputlimit < 1 ) set .inputlimit, 1; if ( .rentitemid && .rentitemamount ) { if ( getitemname(.rentitemid) == "null" ) { debugmes "private mvp room: rent a room is using invalid item id.";

} } set .@i, 1; while ( .@i <= 9 ) { if ( .@menu[.@i] && getd(".group"+ .@i +"itemid") && getd(".group"+ .@i +"itemamount") ) { if ( getitemname( getd(".group"+ .@i +"itemid") ) == "null" ) { debugmes "private mvp room: group no. "+ .@i +" is using invalid item id."; } } set .@i, .@i +1 ; } set .menu$, ( (.@menu[0])?"heal":"" )+":"+( (.@menu[1])?"summon "+ .group1name$:"" )+":"+( (.@menu[2])?"summon "+ .group2name$:"" )+":"+(

(.@menu[3])?"summon "+ .group3name$:"" )+":"+( .group4name$:"" )+":"+( (.@menu[5])?"summon "+ (.@menu[6])?"summon "+ .group6name$:"" )+":"+( .group7name$:"" )+":"+( (.@menu[8])?"summon "+ (.@menu[9])?"summon "+ .group9name$:"" )+":"+( +":leave this room:give up this room";

+"id") );

(.@menu[4])?"summon "+ .group5name$:"" )+":"+( (.@menu[7])?"summon "+ .group8name$:"" )+":"+( (.@menu[10])?"buy branches":"" )

set .@i, 1; while ( .@i <= 9 ) { setd ".group"+ .@i +"idsize", getarraysize( getd(".group"+ .@i

if ( .@menu[.@i] && getd(".group"+ .@i +"limit") <= 0 ) { set .@j, 0; while ( .@j < getd(".group"+ .@i +"idsize") ) { setd ".group"+ .@i +"menu$", getd(".group"+ .@i +"menu$") + getmonsterinfo( getd(".group"+ .@i +"id["+ .@j +"]"), 0) +":"; set .@j, .@j +1 ; } } set .@i, .@i +1 ; } } else { sleep 1; mapannounce .@map$, "admin has refresh the server, please register the room again.", 1; mapwarp .@map$, .respawnmap$, .respawnx, .respawny; } end; l_start: // i hate gotos ... but ... set .@dif, strnpcinfo(2); if ( .remind[.@dif] == 0 ) { set .remind[.@dif], 1; initnpctimer; } mes "[mvp summoner]"; mes "hi, what can i do for you ?"; next; switch ( select(.menu$) ) { case 1: mes "[mvp summoner]"; if ( getmapmobs("this") > 0 ) { mes "i cannot offer heal service when there are monsters around."; close; } sc_end sc_stone; sc_end sc_slowdown; sc_end sc_freeze; sc_end sc_sleep; sc_end sc_curse; sc_end sc_silence; sc_end sc_confusion; sc_end sc_blind; sc_end sc_bleeding; sc_end sc_decreaseagi; sc_end sc_poison;

sc_end sc_hallucination; sc_end sc_stripweapon; sc_end sc_striparmor; sc_end sc_striphelm; sc_end sc_stripshield; sc_end sc_changeundead; sc_end sc_orcish; sc_end sc_berserk; sc_end sc_ske; sc_end sc_swoo; sc_end sc_ska; percentheal 100,100; specialeffect2 7; mes "you have completely healed."; close; default: set .@group, @menu -1; if ( .floodcontrol && getmapmobs("this") > 0 ) { mes "[mvp summoner]"; mes "i cannot summon another monster when there are monsters around."; close; } else if ( getd(".group"+ .@group +"itemid") && getd(".group"+ .@group +"itemamount") ) { mes "[mvp summoner]"; mes "the cost to summon a "+ getd(".group"+ .@group +"name$") +" is "+ getd(".group"+ .@group +"itemamount") +" "+ getitemname( getd(".group"+ .@group +"itemid") ) +"."; if ( getd(".group"+ .@group +"limit") < 0 ) mes "("+( ( ~getd(".group"+ .@group +"limit")+1 getd(".group"+ .@group +"limit"+ .@dif) <= 0 )?0:( ~getd(".group"+ .@group +"limit")+1 - getd(".group"+ .@group +"limit"+ .@dif) ) )+") more summons for this group."; next; } else if ( getd(".group"+ .@group +"cost") ) { mes "[mvp summoner]"; mes "the cost to summon a "+ getd(".group"+ .@group +"name$") +" is "+ callfunc("int__", getd(".group"+ .@group +"cost") ) +" zeny."; if ( getd(".group"+ .@group +"limit") < 0 ) mes "("+( ( ~getd(".group"+ .@group +"limit")+1 getd(".group"+ .@group +"limit"+ .@dif) <= 0 )?0:( ~getd(".group"+ .@group +"limit")+1 - getd(".group"+ .@group +"limit"+ .@dif) ) )+") more summons for this group."; next; } else if ( getd(".group"+ .@group +"limit") < 0 ) { mes "[mvp summoner]"; mes "("+( ( ~getd(".group"+ .@group +"limit")+1 getd(".group"+ .@group +"limit"+ .@dif) <= 0 )?0:( ~getd(".group"+ .@group +"limit")+1 - getd(".group"+ .@group +"limit"+ .@dif) ) )+") more summons for this group."; next; } if ( getd(".group"+ .@group +"limit") < 0 && getd(".group"+ .@group +"limit"+ .@dif) >= ~getd(".group"+ .@group +"limit")+1 ) { mes "[mvp summoner]";

mes "i'm sorry, but you can't summon any more monster for this group.";

set .@i, .@i +1 )

close; } else if ( getd(".group"+ .@group +"limit") > 0 ) { for ( set .@i, 0; .@i < getd(".group"+ .@group +"idsize");

set .@menu$, .@menu$ +( ( getd(".group"+ .@group +"limit"+ .@dif +"["+ .@i +"]") >= getd(".group"+ .@group +"limit") )? "^999999":"^000000" )+ getmonsterinfo( getd(".group"+ .@group +"id["+ .@i +"]"), 0) +" ("+ ( ( getd(".group"+ .@group +"limit") - getd(".group"+ .@group +"limit"+ .@dif +"["+ .@i +"]") <= 0 )?0:( getd(".group"+ .@group +"limit") - getd(".group"+ .@group +"limit"+ .@dif +"["+ .@i +"]") ) ) +")"+":"; set .@menu, select(.@menu$) -1; } else set .@menu, select( getd(".group"+ .@group +"menu$") ) -1; mes "[mvp summoner]"; if ( .floodcontrol == 0 && .inputlimit > 1 ) { mes "input an amount of monsters to summon."; next; input .@amount; if ( .@amount == 0 ) close; else if ( .@amount > .inputlimit ) set .@amount, .inputlimit; mes "[mvp summoner]"; } else set .@amount, 1; if ( getd(".group"+ .@group +"itemid") && getd(".group"+ .@group +"itemamount") ) { if ( countitem( getd(".group"+ .@group +"itemid") ) < getd(".group"+ .@group +"itemamount") * .@amount ) { mes "you don't have enough "+ getitemname( getd(".group"+ .@group +"itemid") ) +" to summon a "+ getd(".group"+ .@group +"name$") +"."; close; } } else if ( getd(".group"+ .@group +"cost") ) { if ( zeny < getd(".group"+ .@group +"cost") * .@amount ) { mes "you don't have enough zeny to summon a "+ getd(".group"+ .@group +"name$") +"."; close; } } if ( .floodcontrol && getmapmobs("this") > 0 ) { mes "i cannot summon another monster when there are monsters around."; close; } else if ( getd(".group"+ .@group +"limit") > 0 ) { if ( getd(".group"+ .@group +"limit"+ .@dif +"["+ .@menu +"]") >= getd(".group"+ .@group +"limit") ) { mes "i'm sorry, but you already summoned that monster too much. try summon another."; close; }

else if ( getd(".group"+ .@group +"limit"+ .@dif +"["+ .@menu +"]") + .@amount > getd(".group"+ .@group +"limit") ) { mes "the amount you input is more than the limit you can summon. try reduce the amount."; close; } } else if ( getd(".group"+ .@group +"limit") < 0 ) { if ( getd(".group"+ .@group +"limit"+ .@dif) >= ~getd(".group"+ .@group +"limit")+1 ) { mes "i'm sorry, but you can't summon any more monster for this group."; close; } else if ( getd(".group"+ .@group +"limit"+ .@dif) + .@amount > ~getd(".group"+ .@group +"limit")+1 ) { mes "the amount you input is more than the limit you can summon. try reduce the amount."; close; } } mes "summoning "+ .@amount +" "+ getmonsterinfo( getd(".group"+ .@group +"id["+ .@menu +"]"), 0) +"."; mes "ok, get ready ?"; close2; if ( .floodcontrol && getmapmobs("this") > 0 ) end; if ( getd(".group"+ .@group +"itemid") && getd(".group"+ .@group +"itemamount") ) { if ( countitem( getd(".group"+ .@group +"itemid") ) < getd(".group"+ .@group +"itemamount") * .@amount ) end; delitem getd(".group"+ .@group +"itemid"), getd(".group"+ .@group +"itemamount") * .@amount; } else if ( getd(".group"+ .@group +"cost") ) { if ( zeny < getd(".group"+ .@group +"cost") * .@amount ) end; set zeny, zeny - getd(".group"+ .@group +"cost") * .@amount; } if ( getd(".group"+ .@group +"limit") > 0 ) { if ( getd(".group"+ .@group +"limit"+ .@dif +"["+ .@menu +"]") + .@amount > getd(".group"+ .@group +"limit") ) end; setd ".group"+ .@group +"limit"+ .@dif +"["+ .@menu +"]", getd(".group"+ .@group +"limit"+ .@dif +"["+ .@menu +"]") + .@amount; } else if ( getd(".group"+ .@group +"limit") < 0 ) { if ( getd(".group"+ .@group +"limit"+ .@dif) + .@amount > ~getd(".group"+ .@group +"limit")+1 ) end; setd ".group"+ .@group +"limit"+ .@dif, getd(".group"+ .@group +"limit"+ .@dif) + .@amount; } monster "this", 0, 0, "--ja--", getd(".group"+ .@group +"id["+ .@menu +"]"), .@amount; end; case 11: if ( getmapmobs("this") > 0 ) { mes "[mvp summoner]"; mes "i cannot offer this service when there are monsters

around."; close; } close2; callshop "mvp room#branch", 0; end; case 12: mes "[mvp summoner]"; mes "are you sure you want to leave this room ?"; mes "if this room left empty for more than "+ .nobodygiveup +" minutes, you lost ownership for this room."; if ( select( "yes:no") == 2 ) close; warp .respawnmap$, .respawnx, .respawny; end; case 13: mes "[mvp summoner]"; getmapxy .@map$, .@x, .@y, 0; if ( getmapusers(.@map$) > 1 ) { mes "there are still some players in this room. make sure you are the last member in this room to use this option."; close; } mes "are you sure you want to give up this room ?"; if ( .rentcost ) mes "you will need to pay again to enter this room."; next; if ( select( "yes:no" ) == 2 ) close; warp .respawnmap$, .respawnx, .respawny; set .remaintime[.@dif], -1; end; } close; onentermap: set .@dif, strnpcinfo(2); set .remind[.@dif], 0; for ( set .@i, 1; .@i <= 9; set .@i, .@i +1 ) deletearray getd(".group"+ .@i +"limit"+ .@dif), getd(".group"+ .@i +"idsize"); set .nobodycounter[.@dif], 0; getmapxy .@map$, .@x, .@y ,1; set .@starttime[.@dif], gettimetick(2); do { set .remaintime[.@dif], .timeout * 60 + .@starttime[.@dif] gettimetick(2); set .@hour[.@dif], .remaintime[.@dif] / 3600 ; set .@min[.@dif], .remaintime[.@dif] % 3600 / 60 ; set .@sec[.@dif], .remaintime[.@dif] % 3600 % 60 ; waitingroom "time left = "+( ( .@hour[.@dif] )?( .@hour[.@dif] +":"):"" )+( ( .@min[.@dif] < 10 )?"0"+ .@min[.@dif]: .@min[.@dif] )+":"+( ( .@sec[.@dif] < 10 )?"0"+ .@sec[.@dif]: .@sec[.@dif] ), 0; if ( getmapusers(.@map$) ) set .nobodycounter[.@dif], 0; else { set .nobodycounter[.@dif], .nobodycounter[.@dif] +1 ; if ( .nobodycounter[.@dif] > .nobodygiveup * 60 ) break; } sleep 995;

} while ( .remaintime[.@dif] > 1 ); set .remaintime[.@dif], 0; delwaitingroom "mvp summoner#"+ .@dif; mapwarp .@map$, .respawnmap$, .respawnx, .respawny; end; ontimer100: stopnpctimer; npctalk "hi ~ the bubble above my head is the countdown for using this room."; sleep 2000; npctalk "sometimes, i can skip for about 1 second in the countdown."; sleep 3000; npctalk "that is because the server is experiencing minor lag problem."; sleep 3000; npctalk "so, don't complain about me cheated for the countdown ~ ^.^"; sleep 3000; npctalk "have a nice day ~"; end; } prontera,148,174,5 script private mvp room 100,{ mes "[private mvp room]"; mes "please select a private mvp room."; if ( getvariableofnpc(.rentitemid, "mvp summoner") && getvariableofnpc(.rentitemamount, "mvp summoner") ) mes "the cost to rent a room for "+ getvariableofnpc(.timeout, "mvp summoner") +" minutes is "+ getvariableofnpc(.rentitemamount, "mvp summoner") +" "+ getitemname( getvariableofnpc(.rentitemid, "mvp summoner") ) +"."; else if ( getvariableofnpc(.rentcost, "mvp summoner") ) mes "the cost to rent a room for "+ getvariableofnpc(.timeout, "mvp summoner") +" minutes is "+ callfunc("int__", getvariableofnpc(.rentcost, "mvp summoner") ) +" zeny."; else mes "you can only use the room for only "+ getvariableofnpc(.timeout, "mvp summoner") +" minutes."; mes " "; for ( set .@i, 1; .@i <= 8; set .@i, .@i +1 ) { if ( getvariableofnpc(.remaintime[.@i],"mvp summoner") ) { switch ( .type[.@i] ) { case 1: set .@color$, "^ee8800"; break; case 2: set .@color$, "^70cc11"; break; case 3: set .@color$, "^0000ff"; break; default: set .@color$, "^000000"; } mes "room #"+ .@i +" = "+ .@color$ + .whoinuse$[.@i] +"^000000"; } } next; set .@room, select("mvp room 1 ["+ getmapusers("06guild_01") +"]", "mvp room 2 ["+ getmapusers("06guild_02") +"]", "mvp room 3 ["+ getmapusers("06guild_03") +"]", "mvp room 4 ["+ getmapusers("06guild_04") +"]", "mvp room 5 ["+ getmapusers("06guild_05") +"]", "mvp room 6 ["+ getmapusers("06guild_06") +"]", "mvp room 7 ["+ getmapusers("06guild_07") +"]", "mvp room 8 ["+ getmapusers("06guild_08") +"]"); if ( getvariableofnpc(.remaintime[.@room],"mvp summoner") ) {

if ( .inuseid[.@room] == getcharid(.type[.@room]) ) { if ( getvariableofnpc(.killmonster,"mvp summoner") && getmapusers("06guild_0"+ .@room) == 0 ) killmonsterall "06guild_0"+ .@room; warp "06guild_0"+ .@room, 0,0; end; } else { mes "[private mvp room]"; switch ( .type[.@room] ) { case 1: set .@color$, "^ee8800party "; break; case 2: set .@color$, "^70cc11guild "; break; case 3: set .@color$, "^0000ffplayer "; } mes "this room is reserved for "; mes .@color$ + .whoinuse$[.@room] +"^000000 ."; if ( getgmlevel() < getvariableofnpc(.gmlvlkick,"mvp summoner") ) { mes "please select another."; close; } mes " "; mes "currently there are "+ getmapusers("06guild_0"+ .@room) +" players"; mes "in that room. kick them ?"; next; if ( select ( "no:yes" ) == 1 ) close; set getvariableofnpc(.remaintime[.@room],"mvp summoner"), -1; mes "[private mvp room]"; mes "room#"+ .@room +" is empty now."; close; } } mes "[private mvp room]"; if ( getvariableofnpc(.rentitemid, "mvp summoner") && getvariableofnpc(.rentitemamount, "mvp summoner") ) { if ( countitem(getvariableofnpc(.rentitemid, "mvp summoner")) < getvariableofnpc(.rentitemamount, "mvp summoner") ) { mes "you don't have enough "+ getitemname( getvariableofnpc(.rentitemid, "mvp summoner") ) +" to rent a room."; close; } } else if ( getvariableofnpc(.rentcost, "mvp summoner") ) { if ( zeny < getvariableofnpc(.rentcost, "mvp summoner") ) { mes "you don't have enough zeny to rent a room."; close; } } mes "you reserve this room for ..."; next; set .@type, select("for my party members", "for my guild members", "for personal account use" ); if ( getcharid(.@type) == 0 ) { mes "[private mvp room]"; mes "you do not own a "+( (.@type == 1)?"party":"guild" )+"."; close; } for ( set .@i, 1; .@i <= 8; set .@i, .@i +1 ) {

if ( getvariableofnpc(.remaintime[.@i],"mvp summoner") && .@type == .type[.@i] && getcharid(.@type) == .inuseid[.@i] ) { mes "[private mvp room]"; mes "you already rented room#"+ .@i +". use that room instead."; close; } } set .type[.@room], .@type; set .inuseid[.@room], getcharid(.@type); set .whoinuse$[.@room], strcharinfo( (.@type == 3)?0:.@type ); if ( getvariableofnpc(.rentitemid, "mvp summoner") && getvariableofnpc(.rentitemamount, "mvp summoner") ) { if ( countitem(getvariableofnpc(.rentitemid, "mvp summoner")) < getvariableofnpc(.rentitemamount, "mvp summoner") ) end; delitem getvariableofnpc(.rentitemid, "mvp summoner"), getvariableofnpc(.rentitemamount, "mvp summoner"); } else if ( getvariableofnpc(.rentcost, "mvp summoner") ) { if ( zeny < getvariableofnpc(.rentcost, "mvp summoner") ) end; set zeny, zeny - getvariableofnpc(.rentcost, "mvp summoner"); } warp "06guild_0"+ .@room, 0,0; killmonsterall "06guild_0"+ .@room; donpcevent "mvp summoner#"+ .@room +"::onentermap"; end; } 06guild_01,49,49,4 06guild_02,49,49,4 06guild_03,49,49,4 06guild_04,49,49,4 06guild_05,49,49,4 06guild_06,49,49,4 06guild_07,49,49,4 06guild_08,49,49,4

duplicate(mvp duplicate(mvp duplicate(mvp duplicate(mvp duplicate(mvp duplicate(mvp duplicate(mvp duplicate(mvp

06guild_01 06guild_02 06guild_03 06guild_04 06guild_05 06guild_06 06guild_07 06guild_08 06guild_01 06guild_02 06guild_03 06guild_04 06guild_05 06guild_06 06guild_07 06guild_08 06guild_01 06guild_02 06guild_03 06guild_04 06guild_05

nowarpto nowarpto nowarpto nowarpto nowarpto nowarpto nowarpto nowarpto nomemo nomemo nomemo nomemo nomemo nomemo nomemo nomemo noteleport noteleport noteleport noteleport noteleport

mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag

summoner) summoner) summoner) summoner) summoner) summoner) summoner) summoner)

mvp mvp mvp mvp mvp mvp mvp mvp

summoner#1 summoner#2 summoner#3 summoner#4 summoner#5 summoner#6 summoner#7 summoner#8

116 116 116 116 116 116 116 116

06guild_06 06guild_07 06guild_08 06guild_01 06guild_02 06guild_03 06guild_04 06guild_05 06guild_06 06guild_07 06guild_08

mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag mapflag

noteleport noteleport noteleport nosave nosave nosave nosave nosave nosave nosave nosave

savepoint savepoint savepoint savepoint savepoint savepoint savepoint savepoint

Related Documents

Private Mvp Room 1
November 2019 5
Mvp
June 2020 7
Mvp Ed Session
May 2020 2
Room
November 2019 32
Room
November 2019 28