Jump to content
  • 0
Sign in to follow this  
Petey Pablo

PvP Room

Question

Anyone can help me to make PvP Room like this

 

Map: 5@tower

 

Menu:

 

• Normal PvP

• No Pots/Heal PvP

• Assassin Cross vs Assassin Cross

• Champion vs Champion

 

Thank you  very much!

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Anyone can make compatible for latest revision of Hercules of this script?

 

// Made by iTouch
// ----------------------------------------------------------------------------
// Ultimate PvP Warper ver. 1
// Features:
// Baby PvP Room
// PvP Square(Every 2 days Random PvP Room)
// PvP Nightmare
// PvP Lowlvl( Supports 1 - 150 Lvl)
// PvP No Potion (Berrys , Ygg seed , Any potions , etc. are restricted)
// PvP Non Donator (Got Items are restricted here)
// -----------------------------------------------------------------------------
// ver. 2 update idea:
// Adding a PvP Room that removes the buffs of the player when entering the room
// Adding a PvP Room for GM's Only so GM's will have fun
// -----------------------------------------------------------------------------
// Special thanks to:
// icescope of eAthena for helping me configuring the error at PvP Square
// -----------------------------------------------------------------------------


prontera,155,188,6    script    Ultimate PvP Warper    753,{
    if (.pvp_square$=="") donpcevent "Ultimate PVP warper::OnClock0000";


    mes "[PvP Warper]";
    mes "Which arena do you want to go to?";
    switch(select("PVP Square ["+getmapusers(.pvp_square$)+"/100]:PVP Nightmare ["+getmapusers("guild_vs3")+"/100]:PVP LowLevel ["+getmapusers("guild_vs1")+"/100]:PVP NoPotion ["+getmapusers("pvp_y_8-2")+"/100]:Non Donator PVP ["+getmapusers("1@orcs")+"/100]:Baby PvP Room ["+getmapusers("pvp_y_1-2")+"/100]")) {
    case 1:    // PVP Square
        if (getmapusers(.pvp_square$) > 99) callsub S_full;
        callsub S_payment;
        warp .pvp_square$,0,0;
        end;


    case 2:    // PVP Nightmare
        if (getmapusers("guild_vs3") > 99) callsub S_full;
        callsub S_payment;
        warp "guild_vs3",0,0;
        end;


    case 3:    // PVP LowLevel
        if (getmapusers("guild_vs1") > 99) callsub S_full;
        if (BaseLevel > 150) { // Edit 150 to any maximum Lvl of a player can enter this room
            mes "only Base Level 1 - 150 may enter.";
            close;
        }
        callsub S_payment;
        warp "guild_vs1",0,0;
        end;


    case 4:    // PVP NoPotion
        if (getmapusers("pvp_y_8-2") > 99) callsub S_full;
        for( set .@i,0; .@i<getarraysize(.NoPotion_ids); set .@i,.@i+1 ) {
            if (countitem(.NoPotion_ids[.@i])) {
                mes "You can not bring potions in this pvp.";
                close;
            }
        }
        callsub S_payment;
        warp "pvp_y_8-2",0,0;
        end;


    case 5:    // Non Donator PVP
        if (getmapusers("1@orcs") > 99) callsub S_full;
        for( set .@i,0; .@i<getarraysize(.NoDonator_ids); set .@i,.@i+1 ) {
            if (countitem(.NoDonator_ids[.@i])) {
                mes "You can not bring God items in this pvp.";
                close;
            }
        }
        callsub S_payment;
        warp "1@orcs",0,0;
        end;
    Case 6: // Baby PvP Room
        if (getmapusers("pvp_y_1-2") > 99) callsub S_full;
        if (class < 4023 || class > 4045) goto L_NotBaby;
        callsub S_payment;
        warp "pvp_y_1-2",0,0;
        end;
L_NotBaby:
        mes "Only baby can enter this room";
        close;    


    }


S_full:
    mes " ";
    mes "I'm sorry, this arena is full.  Please try again later...";
    close;
S_payment:
    if (Zeny < (200*BaseLevel + 800)) {
        mes "You don't have enough zeny.";
        mes "It costs "+(200*BaseLevel + 800)+" zeny for you to enter.";
        close;
    }
    set Zeny, Zeny - (200*BaseLevel + 800);
    return;


OnInit:
       waitingroom "PvP Warper",0;
    end;
OnClock0000:
    // set the "PVP Square" map, based on day of the weeek
    switch(gettime(4)) {
    case 0:    // Sunday
    case 1:    // Monday
        set .pvp_square$, "guild_vs2";
        break;
    case 2:    // Tuesday
    case 3:    // Wednesday
        set .pvp_square$, "guild_vs5";
        break;
    case 4:    // Thursday
    case 5:    // Friday
        set .pvp_square$, "guild_vs4";
        break;
    case 6:    // Saturday
        set .pvp_square$, "guild_vs1-2";
        break;
    }


    // items not allowed in PVP NoPotion
    setarray .NoPotion_ids[0], 607, 608;


    // items not allowed in Non Donator PVP
    setarray .NoDonator_ids[0], 2410, 1530;
    end;
}


moscovia.gat,226,198,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#1    871
//askydun.gat,96,113,3    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#2    871 // Kliwa
alberta.gat,110,140,3    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#3    871 // Kliwa
aldebaran.gat,147,115,1    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#4    871 // Kliwa
amatsu.gat,207,86,3    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#5    871 // Kliwa
ayothaya.gat,155,117,2    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#6    871 // Kliwa
comodo.gat,206,80,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#7    871 // Kliwa
einbech.gat,198,83,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#8    871 // Taas Kaliwa
einbroch.gat,174,172,5    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#9    871 // Taas Kaliwa
geffen.gat,125,71,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#10    871
gonryun.gat,162,120,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#11    871
hugel.gat,89,151,5    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#12    871
izlude.gat,134,90,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#13    871
lighthalzen.gat,166,101,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#14    871
louyang.gat,214,120,5    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#15    871
xmas.gat,154,136,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#16    871
morocc.gat,160,97,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#17    871
payon.gat,148,226,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#18    871
rachel.gat,135,115,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#19     871
veins.gat,219,127,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#20    871
yuno.gat,163,170,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#21    871
umbala.gat,106,159,3    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#22    871
poring_c02,139,81,4    duplicate(Ultimate PvP Warper)    Ultimate PvP Warper#23    871


// Mapflags (No commands)
pvp_y_1-2    mapflag    nocommand    99
guild_vs2    mapflag    nocommand    99
guild_vs3    mapflag    nocommand    99


// Will disable players using @go
pvp_y_1-2    mapflag    nowarpto
guild_vs2    mapflag    nowarpto
guild_vs3    mapflag    nowarpto


// Will disable players using @go
pvp_y_1-2    mapflag    nowarp
guild_vs2    mapflag    nowarp
guild_vs3    mapflag    nowarp


// Will disable players using @go
pvp_y_1-2    mapflag    pvp_noparty
guild_vs2    mapflag    pvp_noparty
guild_vs3    mapflag    pvp_noparty


// Will disable players using @go
pvp_y_1-2    mapflag    nobranch
guild_vs2    mapflag    nobranch
guild_vs3    mapflag    nobranch


// Will disable players using @go
pvp_y_1-2    mapflag    nomemo
guild_vs2    mapflag    nomemo
guild_vs3    mapflag    nomemo


// Will disable players using @go
pvp_y_1-2    mapflag    pvp
guild_vs2    mapflag    pvp
guild_vs3    mapflag    pvp

 

Share this post


Link to post
Share on other sites
  • 0
// Made by iTouch
// ----------------------------------------------------------------------------
// Ultimate PvP Warper ver. 1
// Features:
// Baby PvP Room
// PvP Square(Every 2 days Random PvP Room)
// PvP Nightmare
// PvP Lowlvl( Supports 1 - 150 Lvl)
// PvP No Potion (Berrys , Ygg seed , Any potions , etc. are restricted)
// PvP Non Donator (Got Items are restricted here)
// -----------------------------------------------------------------------------
// ver. 2 update idea:
// Adding a PvP Room that removes the buffs of the player when entering the room
// Adding a PvP Room for GM's Only so GM's will have fun
// -----------------------------------------------------------------------------
// Special thanks to:
// icescope of eAthena for helping me configuring the error at PvP Square
// -----------------------------------------------------------------------------

prontera,155,188,6	script	Ultimate PvP Warper	753,{

	mes "[PvP Warper]";
	mes "Which arena do you want to go to?";
	switch(select("Normal PVP ["+getmapusers("5@tower")+"/100]:PVP NoPotion ["+getmapusers("5@tower")+"/100]:SinX PVP Room ["+getmapusers("5@tower")+"/100]:Champ PvP Room ["+getmapusers("5@tower")+"/100]")) {
		
	case 1:	// Normal PVP
		if (getmapusers("5@tower") > 99) callsub S_full;
		warp "5@tower",0,0;
		end;

	case 2:	// PVP NoPotion
		if (getmapusers("5@tower") > 99) callsub S_full;
		warp "5@tower",0,0;
		end;

	case 3:	// SinX PVP Room
		if (getmapusers("5@tower") > 99) callsub S_full;
		if (Class != Job_Assassin_Cross) { mes "You are not an Assassin Cross."; close; }
		warp "5@tower",0,0;
		end;
		
	case 4:	// Champ PvP Room
		if (getmapusers("5@tower") > 99) callsub S_full;
		if (Class != Job_Champion) { mes "You are not an Assassin Cross."; close; }
		warp "5@tower",0,0;
		end;

		S_full:
		mes " ";
		mes "I'm sorry, this arena is full. Please try again later...";
		close;

OnInit:
		waitingroom "PvP Warper",0;
		end;
	}
}

5@tower	mapflag	zone	NoYgg


moscovia.gat,226,198,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#1	871
//askydun.gat,96,113,3	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#2	871 // Kliwa
alberta.gat,110,140,3	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#3	871 // Kliwa
aldebaran.gat,147,115,1	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#4	871 // Kliwa
amatsu.gat,207,86,3	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#5	871 // Kliwa
ayothaya.gat,155,117,2	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#6	871 // Kliwa
comodo.gat,206,80,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#7	871 // Kliwa
einbech.gat,198,83,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#8	871 // Taas Kaliwa
einbroch.gat,174,172,5	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#9	871 // Taas Kaliwa
geffen.gat,125,71,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#10	871
gonryun.gat,162,120,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#11	871
hugel.gat,89,151,5	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#12	871
izlude.gat,134,90,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#13	871
lighthalzen.gat,166,101,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#14	871
louyang.gat,214,120,5	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#15	871
xmas.gat,154,136,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#16	871
morocc.gat,160,97,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#17	871
payon.gat,148,226,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#18	871
rachel.gat,135,115,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#19	 871
veins.gat,219,127,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#20	871
yuno.gat,163,170,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#21	871
umbala.gat,106,159,3	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#22	871
poring_c02,139,81,4	duplicate(Ultimate PvP Warper)	Ultimate PvP Warper#23	871

 

and add this to your map_zone_db

add as many items as you want

,
{
	name: "NoYgg"

	disabled_items: {
		Yggdrasilberry: true
		Seed_Of_Yggdrasil: true
	}
}

 

NOTE: all room warps you in the same map 5@tower, (edit each and put your corresponding map)

 

you can use BrowEdit to clone maps

Share this post


Link to post
Share on other sites
  • 0

This works fine on my test server:

 

http://upaste.me/c52f33576f5ee0fa0

 

 

Tell me if there's something wrong with the script

Note: Instructions are included there, please do follow.



Info:

  • I didn't included item restriction on map_zone_db because its a bit redundant to included it since restrictions are already applied on the script itself.
  • Edit the config as much as you like.
  • We need to separate the maps because of the mapflags, if you like to use the same map then duplicate it as what frenzmu06 mentioned above.

Share this post


Link to post
Share on other sites
  • 0

 

This works fine on my test server:

http://upaste.me/c52f33576f5ee0fa0


Tell me if there's something wrong with the script
Note: Instructions are included there, please do follow.


Info:

  • I didn't included item restriction on map_zone_db because its a bit redundant to included it since restrictions are already applied on the script itself.
  • Edit the config as much as you like.
  • We need to separate the maps because of the mapflags, if you like to use the same map then duplicate it as what frenzmu06 mentioned above.

 


 

Invalid zone. How to fix this?

[Warning]: npc_parse_mapflag: Invalid zone 'PKRestrict'! removing flag from 3@to
wer in file 'npc/custom/PvP_Warper.txt', line '37'.

 

 

Edited by Will Su

Share this post


Link to post
Share on other sites
  • 0

You did not load the additional zone on your map_zone_db.conf which i included on the paste.

 

After adding the map_zone_db.conf

 

[Warning]: npc_parse_mapflag: Invalid zone 'Towns'! removing flag from niflheim in file 'npc/mapflag/zone.txt', line '130'.
[Warning]: npc_parse_mapflag: Invalid zone 'Towns'! removing flag from prontera in file 'npc/mapflag/zone.txt', line '131'.
[Warning]: npc_parse_mapflag: Invalid zone 'Towns'! removing flag from payon in file 'npc/mapflag/zone.txt', line '132'.
[Warning]: npc_parse_mapflag: Invalid zone 'Towns'! removing flag from pay_arche in file 'npc/mapflag/zone.txt', line '133'.
[Warning]: npc_parse_mapflag: Invalid zone 'Towns'! removing flag from rachel in file 'npc/mapflag/zone.txt', line '134'.
[Warning]: npc_parse_mapflag: Invalid zone 'Towns'! removing flag from splendide in file 'npc/mapflag/zone.txt', line '135'.
[Warning]: npc_parse_mapflag: Invalid zone 'Towns'! removing flag from umbala in file 'npc/mapflag/zone.txt', line '136'.
[Warning]: npc_parse_mapflag: Invalid zone 'Towns'! removing flag from veins in file 'npc/mapflag/zone.txt', line '137'.
[Warning]: npc_parse_mapflag: Invalid zone 'Towns'! removing flag from xmas in file 'npc/mapflag/zone.txt', line '138'.
[Warning]: npc_parse_mapflag: Invalid zone 'Towns'! removing flag from yuno in file 'npc/mapflag/zone.txt', line '139'.
[Warning]: npc_parse_mapflag: Invalid zone 'PKRestrict'! removing flag from 4@tower in file 'npc/willro/PvP_Warper.txt', line '37'.

 

 

 

Share this post


Link to post
Share on other sites
  • 0

omg, how did you add the zone?  :o

can you show to us your map_zone_db.conf?

 

//================= Hercules Database =====================================
//=       _   _                     _
//=      | | | |                   | |
//=      | |_| | ___ _ __ ___ _   _| | ___  ___
//=      |  _  |/ _ \ '__/ __| | | | |/ _ \/ __|
//=      | | | |  __/ | | (__| |_| | |  __/\__ \
//=      \_| |_/\___|_|  \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright © 2013-2015  Hercules Dev Team
//= Copyright © 2013  Ind
//=
//= Hercules is free software: you can redistribute it and/or modify
//= it under the terms of the GNU General Public License as published by
//= the Free Software Foundation, either version 3 of the License, or
//= (at your option) any later version.
//=
//= This program is distributed in the hope that it will be useful,
//= but WITHOUT ANY WARRANTY; without even the implied warranty of
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//= GNU General Public License for more details.
//=
//= You should have received a copy of the GNU General Public License
//= along with this program.  If not, see <http://www.gnu.org/licenses/>.
//=========================================================================
//= Hercules Map Zone Database
//================= More Information ======================================
//= http://herc.ws/board/topic/302-introducing-hercules-map-zone-database/
//= (TODO: replace with wiki link and detail the wiki page in a decent format ^)
//================= Description ===========================================
//= A unlimited number of zones may be created, a zone may be used to create a
//= set of disabled items, disabled skills and mapflags to be used by as many
//= maps as one chooses.
//= Maps can be linked to a specific zone through the zone mapflag:
//= '<map name><tab>mapflag<tab>zone<tab><zone name>'.
//=========================================================================
//= Available types for 'disabled_skills':
//= PLAYER, HOMUN, MERCENARY, MONSTER, PET, ELEMENTAL, MOB_BOSS, CLONE, ALL and NONE
//=========================================================================

zones: (
{
    /* All zone is a dynamic (very special) zone that is forcebly inherited by ALL maps automatically */
    name: "All" /* changing this name requires MAP_ZONE_ALL_NAME to also be changed in src/map/map.h file */

    disabled_skills: {
        //both examples below disable napalm beat (id 11) to players
        //MG_NAPALMBEAT: "PLAYER"
        //ID11: "PLAYER"
    }

    disabled_items: {
        //Both examples below disable apple (id 501)
        //Apple: true
        //ID501: true
    }

    mapflags: (
    )

    /* "command:min-group-lv-to-override" e.g. "heal: 70" */
    disabled_commands: {
        //Example Below makes @heal be used in maps within this zone only by those group lv 70 and above
        //heal: 70
    }
    skill_damage_cap: {
        //Exemple Below caps firebolt damage in maps within this zone to a maximum 50 damage,
        // (depends on HMAP_ZONE_DAMAGE_CAP_TYPE in src/config/core.h)
        // when cast vs players and monsters.
        //MG_COLDBOLT: (50,"PLAYER | MONSTER")
    }
},
{
    /* Normal zone is applied to all maps that are not pkable (where players cant fight each other)  */
    /* However, it wont be applied to maps with its own zones (specified through mapflag) */
    name: "Normal" /* changing this name requires MAP_ZONE_NORMAL_NAME to also be changed in src/map/map.h file */

    disabled_skills: {
        WM_LULLABY_DEEPSLEEP: "PLAYER"
        WM_SIRCLEOFNATURE: "PLAYER"
        WM_SATURDAY_NIGHT_FEVER: "PLAYER"
        SO_ARRULLO: "PLAYER"
        CG_HERMODE: "PLAYER"
    }

    disabled_items: {

    }
    mapflags: (
    )

},
{
    /* PvP zone is applied to all maps with a pvp mapflag */
    name: "PvP" /* changing this name requires MAP_ZONE_PVP_NAME to also be changed in src/map/map.h file */

    disabled_skills: {
        BS_GREED: "PLAYER"
        CG_HERMODE: "PLAYER"
    }

    disabled_items: {
        Greed_Scroll: true
    }

    mapflags: (
        "nocashshop",
    )

},
{
    /* PK Mode zone is only used when server is on pk_mode (battle.conf),
        it applies to all pvp maps that don't have their own zone */
    name: "PK Mode" /* changing this name requires MAP_ZONE_PK_NAME to also be changed in src/map/map.h file */

    disabled_skills: {

    }

    disabled_items: {

    }

    /* PK Mode Damage Reductions */
    /* - weapon_damage_rate -40% */
    /* - magic_damage_rate  -40% */
    /* - misc_damage_rate   -40% */
    /* - long_damage_rate   -30% */
    /* - short_damage_rate  -20% */
    mapflags: (
        "weapon_damage_rate    60",
        "magic_damage_rate    60",
        "misc_damage_rate    60",
        "long_damage_rate    70",
        "short_damage_rate    80",
    )
},
{
    /* GvG zone is applied to all maps with a gvg mapflag */
    name: "GvG" /* changing this name requires MAP_ZONE_GVG_NAME to also be changed in src/map/map.h file */

    disabled_skills: {
        AL_TELEPORT: "PLAYER"
        AL_WARP: "PLAYER"
        WZ_ICEWALL: "PLAYER"
        TF_BACKSLIDING: "PLAYER"
        RG_INTIMIDATE: "PLAYER"
        WE_CALLPARTNER: "PLAYER"
        HP_ASSUMPTIO: "PLAYER"
        HP_BASILICA: "PLAYER"
        CG_MOONLIT: "PLAYER"
        WE_CALLPARENT: "PLAYER"
        WE_CALLBABY: "PLAYER"
        CR_CULTIVATION: "PLAYER"
        NJ_KIRIKAGE: "PLAYER"
        CASH_ASSUMPTIO: "PLAYER"
        BS_GREED: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
    }

    disabled_items: {
        Assumptio_5_Scroll: true
        Greed_Scroll: true
        Pty_Assumptio_Scroll: true
    }
    /* 5 second duration increase on GvG */
    /* knockback disabled */
    /* GvG Mode Damage Reductions */
    /* - weapon_damage_rate -40% */
    /* - magic_damage_rate  -40% */
    /* - misc_damage_rate   -40% */
    /* - long_damage_rate   -20% */
    /* - short_damage_rate  -20% */
    mapflags: (
        "invincible_time_inc    5000",
        "noknockback",
        "weapon_damage_rate    60",
        "magic_damage_rate    60",
        "misc_damage_rate    60",
        "long_damage_rate    80",
        "short_damage_rate    80",
        "nocashshop",
        "gvg_noparty",
    )

},
{
    /* Battlegrounds zone is applied to all maps with a battlegrounds mapflag */
    name: "Battlegrounds" /* changing this name requires MAP_ZONE_BG_NAME to also be changed in src/map/map.h file */

    disabled_skills: {
        AL_TELEPORT: "PLAYER"
        AL_WARP: "PLAYER"
        WZ_ICEWALL: "PLAYER"
        TF_BACKSLIDING: "PLAYER"
        RG_INTIMIDATE: "PLAYER"
        MO_BODYRELOCATION: "PLAYER"
        WE_CALLPARTNER: "PLAYER"
        HP_ASSUMPTIO: "PLAYER"
        HP_BASILICA: "PLAYER"
        CG_MOONLIT: "PLAYER"
        WE_CALLPARENT: "PLAYER"
        WE_CALLBABY: "PLAYER"
        CR_CULTIVATION: "PLAYER"
        TK_RUN: "PLAYER"
        TK_HIGHJUMP: "PLAYER"
        SG_FEEL: "PLAYER"
        SG_SUN_WARM: "PLAYER"
        SG_MOON_WARM: "PLAYER"
        SG_STAR_WARM: "PLAYER"
        SG_SUN_COMFORT: "PLAYER"
        SG_MOON_COMFORT: "PLAYER"
        SG_STAR_COMFORT: "PLAYER"
        SG_HATE: "PLAYER"
        SG_SUN_ANGER: "PLAYER"
        SG_MOON_ANGER: "PLAYER"
        SG_STAR_ANGER: "PLAYER"
        SG_SUN_BLESS: "PLAYER"
        SG_MOON_BLESS: "PLAYER"
        SG_STAR_BLESS: "PLAYER"
        NJ_KIRIKAGE: "PLAYER"
        CASH_ASSUMPTIO: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
    }
    disabled_items: {
        Assumptio_5_Scroll: true
        Pty_Assumptio_Scroll: true
    }

    /* knockback disabled */
    /* Battlegrounds Damage Reductions */
    /* - weapon_damage_rate -30% */
    /* - magic_damage_rate  -30% */
    /* - misc_damage_rate   -30% */
    /* - long_damage_rate   -25% */
    /* - short_damage_rate  -25% */
    mapflags: (
        "noknockback",
        "weapon_damage_rate    70",
        "magic_damage_rate    70",
        "misc_damage_rate    70",
        "long_damage_rate    75",
        "short_damage_rate    75",
    )

},
{
    name: "Aldebaran Turbo Track"

    disabled_skills: {
        SM_ENDURE: "PLAYER"
        AL_TELEPORT: "PLAYER"
        AL_WARP: "PLAYER"
        AL_CURE: "PLAYER"
        TF_HIDING: "PLAYER"
        WZ_ICEWALL: "PLAYER"
        AS_CLOAKING: "PLAYER"
        RG_INTIMIDATE: "PLAYER"
        MO_BODYRELOCATION: "PLAYER"
        LK_CONCENTRATION: "PLAYER"
        LK_BERSERK: "PLAYER"
        HP_BASILICA: "PLAYER"
        WS_CARTBOOST: "PLAYER"
        ST_CHASEWALK: "PLAYER"
        CG_MOONLIT: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
        GN_CARTBOOST: "PLAYER"
    }

    disabled_items: {
        Wing_Of_Fly: true
        Anodyne: true
        Green_Potion: true
        Panacea: true
    }
},
{
    name: "Jail"

    disabled_skills: {
        TK_JUMPKICK: "PLAYER"
        TK_HIGHJUMP: "PLAYER"
    }

    disabled_items: {
        Wing_Of_Fly: true
        Wing_Of_Butterfly: true
        Giant_Fly_Wing: true
        WOB_Rune: true
        WOB_Schwaltz: true
        WOB_Rachel: true
        WOB_Local: true
    }
},
{
    name: "Izlude Battle Arena"

    disabled_skills: {
        RG_INTIMIDATE: "PLAYER"
        AL_TELEPORT: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
    }

    disabled_items: {
        Wing_Of_Fly: true
    }
},
{
    name: "GvG2"
    inherit: ( "GvG" ) /* will import all gvg has */

    disabled_skills: {
        TK_HIGHJUMP: "PLAYER"
        SA_ABRACADABRA: "PLAYER"
    }
},
{
    name: "Sealed Shrine"

    disabled_skills: {
        MG_SAFETYWALL: "PLAYER"
        AL_TELEPORT: "PLAYER | MONSTER | HOMUN | MERCENARY"
        RG_INTIMIDATE: "PLAYER | MONSTER"
        HP_ASSUMPTIO: "PLAYER"
        CASH_ASSUMPTIO: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
    }
},
{
    name: "Memorial Dungeon" /* ETower, Orc's Memory, Nidhoggur's Nest, etc */

    disabled_skills: {
        AL_TELEPORT: "PLAYER | MONSTER | HOMUN | MERCENARY"
        WZ_ICEWALL: "PLAYER"
        RG_INTIMIDATE: "PLAYER | MONSTER"
        PF_SPIDERWEB: "PLAYER"
        NPC_EXPULSION: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
    }
},

{
    name: "Towns"

    disabled_skills: {
        AM_CANNIBALIZE: "PLAYER"
        AM_SPHEREMINE: "PLAYER"
        CR_CULTIVATION: "PLAYER"
        BS_GREED: "PLAYER"
        SC_MANHOLE: "PLAYER"
        WM_POEMOFNETHERWORLD: "PLAYER"
        GN_WALLOFTHORN: "PLAYER"
    }

    disabled_items: {
        Greed_Scroll: true
    }

}
{

        name: "PKRestrict"

        disabled_skills: {
                AL_HEAL: "PLAYER"
    }
}
)

Share this post


Link to post
Share on other sites
  • 0

Use this instead:

//================= Hercules Database =====================================
//=       _   _                     _
//=      | | | |                   | |
//=      | |_| | ___ _ __ ___ _   _| | ___  ___
//=      |  _  |/ _ \ '__/ __| | | | |/ _ \/ __|
//=      | | | |  __/ | | (__| |_| | |  __/\__ \
//=      \_| |_/\___|_|  \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright © 2013-2015  Hercules Dev Team
//= Copyright © 2013  Ind
//=
//= Hercules is free software: you can redistribute it and/or modify
//= it under the terms of the GNU General Public License as published by
//= the Free Software Foundation, either version 3 of the License, or
//= (at your option) any later version.
//=
//= This program is distributed in the hope that it will be useful,
//= but WITHOUT ANY WARRANTY; without even the implied warranty of
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//= GNU General Public License for more details.
//=
//= You should have received a copy of the GNU General Public License
//= along with this program.  If not, see <http://www.gnu.org/licenses/>.
//=========================================================================
//= Hercules Map Zone Database
//================= More Information ======================================
//= http://herc.ws/board/topic/302-introducing-hercules-map-zone-database/
//= (TODO: replace with wiki link and detail the wiki page in a decent format ^)
//================= Description ===========================================
//= A unlimited number of zones may be created, a zone may be used to create a
//= set of disabled items, disabled skills and mapflags to be used by as many
//= maps as one chooses.
//= Maps can be linked to a specific zone through the zone mapflag:
//= '<map name><tab>mapflag<tab>zone<tab><zone name>'.
//=========================================================================
//= Available types for 'disabled_skills':
//= PLAYER, HOMUN, MERCENARY, MONSTER, PET, ELEMENTAL, MOB_BOSS, CLONE, ALL and NONE
//=========================================================================

zones: (
{
    /* All zone is a dynamic (very special) zone that is forcebly inherited by ALL maps automatically */
    name: "All" /* changing this name requires MAP_ZONE_ALL_NAME to also be changed in src/map/map.h file */

    disabled_skills: {
        //both examples below disable napalm beat (id 11) to players
        //MG_NAPALMBEAT: "PLAYER"
        //ID11: "PLAYER"
    }

    disabled_items: {
        //Both examples below disable apple (id 501)
        //Apple: true
        //ID501: true
    }

    mapflags: (
    )

    /* "command:min-group-lv-to-override" e.g. "heal: 70" */
    disabled_commands: {
        //Example Below makes @heal be used in maps within this zone only by those group lv 70 and above
        //heal: 70
    }
    skill_damage_cap: {
        //Exemple Below caps firebolt damage in maps within this zone to a maximum 50 damage,
        // (depends on HMAP_ZONE_DAMAGE_CAP_TYPE in src/config/core.h)
        // when cast vs players and monsters.
        //MG_COLDBOLT: (50,"PLAYER | MONSTER")
    }
},
{
    /* Normal zone is applied to all maps that are not pkable (where players cant fight each other)  */
    /* However, it wont be applied to maps with its own zones (specified through mapflag) */
    name: "Normal" /* changing this name requires MAP_ZONE_NORMAL_NAME to also be changed in src/map/map.h file */

    disabled_skills: {
        WM_LULLABY_DEEPSLEEP: "PLAYER"
        WM_SIRCLEOFNATURE: "PLAYER"
        WM_SATURDAY_NIGHT_FEVER: "PLAYER"
        SO_ARRULLO: "PLAYER"
        CG_HERMODE: "PLAYER"
    }

    disabled_items: {

    }
    mapflags: (
    )

},
{
    /* PvP zone is applied to all maps with a pvp mapflag */
    name: "PvP" /* changing this name requires MAP_ZONE_PVP_NAME to also be changed in src/map/map.h file */

    disabled_skills: {
        BS_GREED: "PLAYER"
        CG_HERMODE: "PLAYER"
    }

    disabled_items: {
        Greed_Scroll: true
    }

    mapflags: (
        "nocashshop",
    )

},
{
    /* PK Mode zone is only used when server is on pk_mode (battle.conf),
        it applies to all pvp maps that don't have their own zone */
    name: "PK Mode" /* changing this name requires MAP_ZONE_PK_NAME to also be changed in src/map/map.h file */

    disabled_skills: {

    }

    disabled_items: {

    }

    /* PK Mode Damage Reductions */
    /* - weapon_damage_rate -40% */
    /* - magic_damage_rate  -40% */
    /* - misc_damage_rate   -40% */
    /* - long_damage_rate   -30% */
    /* - short_damage_rate  -20% */
    mapflags: (
        "weapon_damage_rate    60",
        "magic_damage_rate    60",
        "misc_damage_rate    60",
        "long_damage_rate    70",
        "short_damage_rate    80",
    )
},
{
    /* GvG zone is applied to all maps with a gvg mapflag */
    name: "GvG" /* changing this name requires MAP_ZONE_GVG_NAME to also be changed in src/map/map.h file */

    disabled_skills: {
        AL_TELEPORT: "PLAYER"
        AL_WARP: "PLAYER"
        WZ_ICEWALL: "PLAYER"
        TF_BACKSLIDING: "PLAYER"
        RG_INTIMIDATE: "PLAYER"
        WE_CALLPARTNER: "PLAYER"
        HP_ASSUMPTIO: "PLAYER"
        HP_BASILICA: "PLAYER"
        CG_MOONLIT: "PLAYER"
        WE_CALLPARENT: "PLAYER"
        WE_CALLBABY: "PLAYER"
        CR_CULTIVATION: "PLAYER"
        NJ_KIRIKAGE: "PLAYER"
        CASH_ASSUMPTIO: "PLAYER"
        BS_GREED: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
    }

    disabled_items: {
        Assumptio_5_Scroll: true
        Greed_Scroll: true
        Pty_Assumptio_Scroll: true
    }
    /* 5 second duration increase on GvG */
    /* knockback disabled */
    /* GvG Mode Damage Reductions */
    /* - weapon_damage_rate -40% */
    /* - magic_damage_rate  -40% */
    /* - misc_damage_rate   -40% */
    /* - long_damage_rate   -20% */
    /* - short_damage_rate  -20% */
    mapflags: (
        "invincible_time_inc    5000",
        "noknockback",
        "weapon_damage_rate    60",
        "magic_damage_rate    60",
        "misc_damage_rate    60",
        "long_damage_rate    80",
        "short_damage_rate    80",
        "nocashshop",
        "gvg_noparty",
    )

},
{
    /* Battlegrounds zone is applied to all maps with a battlegrounds mapflag */
    name: "Battlegrounds" /* changing this name requires MAP_ZONE_BG_NAME to also be changed in src/map/map.h file */

    disabled_skills: {
        AL_TELEPORT: "PLAYER"
        AL_WARP: "PLAYER"
        WZ_ICEWALL: "PLAYER"
        TF_BACKSLIDING: "PLAYER"
        RG_INTIMIDATE: "PLAYER"
        MO_BODYRELOCATION: "PLAYER"
        WE_CALLPARTNER: "PLAYER"
        HP_ASSUMPTIO: "PLAYER"
        HP_BASILICA: "PLAYER"
        CG_MOONLIT: "PLAYER"
        WE_CALLPARENT: "PLAYER"
        WE_CALLBABY: "PLAYER"
        CR_CULTIVATION: "PLAYER"
        TK_RUN: "PLAYER"
        TK_HIGHJUMP: "PLAYER"
        SG_FEEL: "PLAYER"
        SG_SUN_WARM: "PLAYER"
        SG_MOON_WARM: "PLAYER"
        SG_STAR_WARM: "PLAYER"
        SG_SUN_COMFORT: "PLAYER"
        SG_MOON_COMFORT: "PLAYER"
        SG_STAR_COMFORT: "PLAYER"
        SG_HATE: "PLAYER"
        SG_SUN_ANGER: "PLAYER"
        SG_MOON_ANGER: "PLAYER"
        SG_STAR_ANGER: "PLAYER"
        SG_SUN_BLESS: "PLAYER"
        SG_MOON_BLESS: "PLAYER"
        SG_STAR_BLESS: "PLAYER"
        NJ_KIRIKAGE: "PLAYER"
        CASH_ASSUMPTIO: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
    }
    disabled_items: {
        Assumptio_5_Scroll: true
        Pty_Assumptio_Scroll: true
    }

    /* knockback disabled */
    /* Battlegrounds Damage Reductions */
    /* - weapon_damage_rate -30% */
    /* - magic_damage_rate  -30% */
    /* - misc_damage_rate   -30% */
    /* - long_damage_rate   -25% */
    /* - short_damage_rate  -25% */
    mapflags: (
        "noknockback",
        "weapon_damage_rate    70",
        "magic_damage_rate    70",
        "misc_damage_rate    70",
        "long_damage_rate    75",
        "short_damage_rate    75",
    )

},
{
    name: "Aldebaran Turbo Track"

    disabled_skills: {
        SM_ENDURE: "PLAYER"
        AL_TELEPORT: "PLAYER"
        AL_WARP: "PLAYER"
        AL_CURE: "PLAYER"
        TF_HIDING: "PLAYER"
        WZ_ICEWALL: "PLAYER"
        AS_CLOAKING: "PLAYER"
        RG_INTIMIDATE: "PLAYER"
        MO_BODYRELOCATION: "PLAYER"
        LK_CONCENTRATION: "PLAYER"
        LK_BERSERK: "PLAYER"
        HP_BASILICA: "PLAYER"
        WS_CARTBOOST: "PLAYER"
        ST_CHASEWALK: "PLAYER"
        CG_MOONLIT: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
        GN_CARTBOOST: "PLAYER"
    }

    disabled_items: {
        Wing_Of_Fly: true
        Anodyne: true
        Green_Potion: true
        Panacea: true
    }
},
{
    name: "Jail"

    disabled_skills: {
        TK_JUMPKICK: "PLAYER"
        TK_HIGHJUMP: "PLAYER"
    }

    disabled_items: {
        Wing_Of_Fly: true
        Wing_Of_Butterfly: true
        Giant_Fly_Wing: true
        WOB_Rune: true
        WOB_Schwaltz: true
        WOB_Rachel: true
        WOB_Local: true
    }
},
{
    name: "Izlude Battle Arena"

    disabled_skills: {
        RG_INTIMIDATE: "PLAYER"
        AL_TELEPORT: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
    }

    disabled_items: {
        Wing_Of_Fly: true
    }
},
{
    name: "GvG2"
    inherit: ( "GvG" ) /* will import all gvg has */

    disabled_skills: {
        TK_HIGHJUMP: "PLAYER"
        SA_ABRACADABRA: "PLAYER"
    }
},
{
    name: "Sealed Shrine"

    disabled_skills: {
        MG_SAFETYWALL: "PLAYER"
        AL_TELEPORT: "PLAYER | MONSTER | HOMUN | MERCENARY"
        RG_INTIMIDATE: "PLAYER | MONSTER"
        HP_ASSUMPTIO: "PLAYER"
        CASH_ASSUMPTIO: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
    }
},
{
    name: "Memorial Dungeon" /* ETower, Orc's Memory, Nidhoggur's Nest, etc */

    disabled_skills: {
        AL_TELEPORT: "PLAYER | MONSTER | HOMUN | MERCENARY"
        WZ_ICEWALL: "PLAYER"
        RG_INTIMIDATE: "PLAYER | MONSTER"
        PF_SPIDERWEB: "PLAYER"
        NPC_EXPULSION: "PLAYER"
        SC_FATALMENACE: "PLAYER"
        SC_DIMENSIONDOOR: "PLAYER"
    }
},

{
    name: "Towns"

    disabled_skills: {
        AM_CANNIBALIZE: "PLAYER"
        AM_SPHEREMINE: "PLAYER"
        CR_CULTIVATION: "PLAYER"
        BS_GREED: "PLAYER"
        SC_MANHOLE: "PLAYER"
        WM_POEMOFNETHERWORLD: "PLAYER"
        GN_WALLOFTHORN: "PLAYER"
    }

    disabled_items: {
        Greed_Scroll: true
    }

},
{

        name: "PKRestrict"

        disabled_skills: {
                AL_HEAL: "PLAYER"
    }
}
)

 

Reason:
You didn't add a comma at the closing curlys of "towns" mapflag

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.