Jump to content

Recommended Posts

Posted (edited)

Read First!

I found this script on pastebin, and modified it to work correctly with the help of Waeyan.

Features!

You can set the price to rent a room.

Rooms can be rented out to a party, a guild, or a single person.

You can set how much it costs to summon an MVP

You can set up to 9 different tiers for MVP summoning.

You can set how long a room may be rented for.

You can set whether or not if the room is empty to kill the monsters.

You can set how long the room can be left empty, until the room is automatically left open.

Download!

The cool stuff!

Find these lines to change your settings

[/left]



[left]// Config ---------------------------------------------------------------------------------------[/left]


[left]// 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, 30;
// if the room left empty for # minutes, will be treated as give up the room. Do Not set this as 0
set .nobodygiveup, 5;[/left]



[left]// 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.[/left]


[left]// the cost to rent a room
set .rentitemid, 0; // 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[/left]



[left]// 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;[/left]


[left]// 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;[/left]



[left]// 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, 0; // Default is yes[/left]


[left]// Options menu setting for MVP Summoner NPC.
set .@menu[0], 1; // Turn Heal option On/Off
set .@menu[1], 1; // Turn Group 1 summons On/Off -> MVP
set .@menu[2], 1; // Turn Group 2 summons On/Off -> mini boss
set .@menu[3], 1; // Turn Group 3 summons On/Off
set .@menu[4], 0; // Turn Group 4 summons On/Off
set .@menu[5], 0; // Turn Group 5 summons On/Off
set .@menu[6], 0; // Turn Group 6 summons On/Off
set .@menu[7], 0; // Turn Group 7 summons On/Off
set .@menu[8], 0; // Turn Group 8 summons On/Off
set .@menu[9], 0; // Turn Group 9 summons On/Off
set .@menu[10], 0; // Sell shop items options On/Off ( shop npc above )[/left]



[left]// set respawn point when they leave the room. Obviously warp to the Private MVP Room Warper npc
set .respawnmap$, "dicastes01"; // Note : "SavePoint" does NOT work
set .respawnx, 261;
set .respawny, 149;[/left]


[left]// The minimum GM level can kick a room in use
set .gmlvlkick, 80;

This is how the Tiers are set up.


// ---------
// Group 1
// ---------
set .group1name$, "Top Tier"; // Group 1 name
set .group1itemid, 0; // 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, 40000000; // 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,
1647,// Assassin Cross Eremes
1871,// Fallen Bishop
1768,// Gloom Under Night
1086,// Golden Thief Bug
1832,// Ifrit
1734,// Kiel D-01
1251,// Knight of Windstorm
1646,// Lord Knight Seyren
1147,// Maya
1650,// Sniper Shecil
1583,// Tao Gunka
1708,// Thanatos
1312,// Turtle General
1751,// Valkyrie Randgris
1685,// Vesper
1648,// Whitesmith Harword
1917;// Wounded Morroc

You can use @reloadscript to load this script. I have not tested it with @loadnpc.

Credits!

~AnnieRuru~ : Original Script

Waeyan : Identified problems with original script

Not Pancake : I didn't do anything.

Edited by Pancake
  • Upvote 1
Posted (edited)

are you sure you uplaoded the correct script ?

i didnt found any script part similar to the annie's script...O.O ?

fixed.

Edited by Emistry
  • 4 months later...
Posted (edited)

thanks. i no sew any error in mapserv that i can't go in game check. i still have problem on server and control panel need search volunteer ppl help me >.<.

Edited by manabeast
Posted

Loading NPC file: npc/custom/restusro/mvp.txt

script error on npc/custom/restusro/mvp.txt line 310

parse_simpleexpr: unmatch ')'

305 : mes "Hi, what can I do for you ?";

306 : next;

307 : switch ( select(.menu$) ) {

308 : case 1:

309 : mes "[MVP Summoner]";

* 310 : if ( getmapmobs'('"this") > 0 ) {

311 : mes "I cannot offer heal service when there are monsters around.";

312 : close;

313 : }

314 : sc_end sc_stone;

315 : sc_end sc_slowdown;

This error sir.

Posted (edited)

what map error ...show it.

sorry, i remove it. when test appear a window box loading. then i click close. it direct close my mapserver.

I think this is the error same with manabeast.

The npc's are functioning well, but when summoning the monsters (tiers)

Mapserver hangs up, then this pop's up:

45799545.jpg

Tried and tested /no1

Change this :

function	script	int__ {
set .@num, atoi("\""+getarg(0)+"\"");
if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0);
set .@l, getstrlen(.@num);
for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) {
set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$;
if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;
}
return .@num$;
}


to:

function	script	int__ {
set .@num, atoi(getarg(0)+"");
if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0);
set .@l, getstrlen(.@num+"");
for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) {
set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$;
if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;
}
return .@num$;
}

Edited by Sperm
  • 7 months later...
  • 6 months later...
Posted

i have tried this script and even if i config it, the npc has no chat box above the head and no menus. so what do i do to fix this?

 

I got this problem too...

  • 7 months later...
Posted

i have a problem with this MVP im using raMod 

 

im i publish in my server no MVP Listed Blank Page if i click the kafra inside the Map!

but if i try in Test Server work it! with no errors and can summon. Like this

 

 

This is my Test Server!

post-19465-0-29963200-1403324661_thumb.jpg

 

 

 

this is my Online Publish Script @ vro.revolution.us

post-19465-0-15498500-1403324784_thumb.jpg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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