Untitled

 avatar
unknown
plain_text
a year ago
25 kB
2
Indexable
if not RE_Event then

    RE_Event = {}

    RE_Event.teleport_animation = true
    RE_Event.teleport_animation_text = "Rush Event" 
    RE_Event.teleport_animation_effect = CONST_ME_NONE

    RE_Event.max_clients = 3
    RE_Event.event_max_duration = 20 * 60
    RE_Event.event_countdown_minutes = 5
    RE_Event.event_internal_start_seconds = 5
    RE_Event.event_statistics_interval = 2000

    RE_Event.base_min_players = 8
    RE_Event.base_max_players = 80
    RE_Event.base_level_requirement = 75

    RE_Event.ignore_player_group_id = {4, 5, 6}

    RE_Event.teleport_id = 1959
    RE_Event.teleport_entrance_aid = 39028

    RE_Event.player_lives = 3
    RE_Event.target_frags = 50
    RE_Event.max_killers_record = 3 -- # death record message
    
    RE_Event.storages = {
        event_state = 39055,
        event_player_counter = 39056,
        event_map_id = 39057,
        player_joined = 39058,
        player_joined_mode = 39059,
        player_balanced_inventory = 39060,
        player_balanced_skills = 39061,
        player_balanced_stats = 39062
    }

    RE_Event.positions = {

        teleport = Position(32342, 32220, 7),
        entrance_event = Position(32215, 32161, 7), -- # wait room
        kick_event = Position(32346, 32224, 7),

        -- # if a player is offline and has a pending reward, we'll send a parcel on this mailbox
        -- # do not use a mailbox that could be reachable by players
        mailbox_position = Position(32350, 32222, 7) 
    }

    RE_Event.maps = { -- # list must be in order

        [1] = {

            name = "Gray Tiles", -- # map name
            base_positions = {
                [TEAM_ONE] = Position(32233, 32166, 7),
                [TEAM_TWO] = Position(32234, 32156, 7)
            },

            -- # STANDARD_MODE | BALANCED_MODE
            mode = BALANCED_MODE,
            
            -- # which ID configuration (skills, equipment) the match will use on balanced mode
            skills_id = 2,
            equipment_id = 2,

            -- # overrides base level requirement
            level_requirement = 50,

            -- # overrides the base min/max players
            min_players = 2,
            max_players = 2
        }
    }

    RE_Event.skills = {

        [1] = { -- # low level settings

            [{1, 2, 5, 6}] = {
                [SKILL_LEVEL] = 40,
                [SKILL_MAGLEVEL] = 35,
                [SKILL_SHIELD] = 20
            },

            [{3, 7}] = {
                [SKILL_LEVEL] = 40,
                [SKILL_MAGLEVEL] = 10,
                [SKILL_DISTANCE] = 50,
                [SKILL_SHIELD] = 30
            },

            [{4, 8}] = {
                [SKILL_LEVEL] = 40,
                [SKILL_MAGLEVEL] = 4,
                [SKILL_CLUB] = 50,
                [SKILL_AXE] = 50,
                [SKILL_SWORD] = 50,
                [SKILL_SHIELD] = 45
            },
        },
        
        [2] = { -- # medium level settings

            [{1, 2, 5, 6}] = {
                [SKILL_LEVEL] = 80,
                [SKILL_MAGLEVEL] = 75,
                [SKILL_SHIELD] = 40
            },

            [{3, 7}] = {
                [SKILL_LEVEL] = 80,
                [SKILL_MAGLEVEL] = 15,
                [SKILL_DISTANCE] = 80,
                [SKILL_SHIELD] = 55
            },

            [{4, 8}] = {
                [SKILL_LEVEL] = 80,
                [SKILL_MAGLEVEL] = 9,
                [SKILL_CLUB] = 75,
                [SKILL_AXE] = 75,
                [SKILL_SWORD] = 75,
                [SKILL_SHIELD] = 75
            },
        },
        
        [3] = { -- # high level settings

            [{1, 2, 5, 6}] = {
                [SKILL_LEVEL] = 130,
                [SKILL_MAGLEVEL] = 90,
                [SKILL_SHIELD] = 50
            },

            [{3, 7}] = {
                [SKILL_LEVEL] = 130,
                [SKILL_MAGLEVEL] = 20,
                [SKILL_DISTANCE] = 100,
                [SKILL_SHIELD] = 75
            },

            [{4, 8}] = {
                [SKILL_LEVEL] = 130,
                [SKILL_MAGLEVEL] = 12,
                [SKILL_CLUB] = 100,
                [SKILL_AXE] = 100,
                [SKILL_SWORD] = 100,
                [SKILL_SHIELD] = 90
            },
        }

    }

    RE_Event.player_equipment = { -- # keep in mind that players must have enough level to use items/weapons/runes etc
    
        [1] = { -- # low level equipment

            [{1, 5}] = {

                [CONST_SLOT_BACKPACK] = {item = "green backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "health potion", amount = 1},
                            {item = "mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "crown helmet"},
                [CONST_SLOT_NECKLACE] = {item = "platinum amulet", amount = 1},
                [CONST_SLOT_ARMOR] = {item = "blue robe"},
                [CONST_SLOT_RIGHT] = {item = "spellbook of warding"},
                [CONST_SLOT_LEFT] = {item = "wand of inferno"},
                [CONST_SLOT_LEGS] = {item = "plate legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            },

            [{2, 6}] = {

                [CONST_SLOT_BACKPACK] = {item = "green backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "health potion", amount = 1},
                            {item = "mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1},
                    [10] = {item = "paralyse rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "crown helmet"},
                [CONST_SLOT_NECKLACE] = {item = "platinum amulet", amount = 1},
                [CONST_SLOT_ARMOR] = {item = "blue robe"},
                [CONST_SLOT_RIGHT] = {item = "spellbook of warding"},
                [CONST_SLOT_LEFT] = {item = "hailstorm rod"},
                [CONST_SLOT_LEGS] = {item = "plate legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            },

            [{3, 7}] = {

                [CONST_SLOT_BACKPACK] = {item = "green backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "health potion", amount = 1},
                            {item = "mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "crown helmet"},
                [CONST_SLOT_NECKLACE] = {item = "platinum amulet", amount = 1},
                [CONST_SLOT_ARMOR] = {item = "knight armor"},
                [CONST_SLOT_RIGHT] = {item = "crown shield"},
                [CONST_SLOT_LEFT] = {item = "royal spear"},
                [CONST_SLOT_LEGS] = {item = "plate legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            },

            [{4, 8}] = {

                [CONST_SLOT_BACKPACK] = {item = "green backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "health potion", amount = 1},
                            {item = "mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "crown helmet"},
                [CONST_SLOT_NECKLACE] = {item = "platinum amulet", amount = 1},
                [CONST_SLOT_ARMOR] = {item = "knight armor"},
                [CONST_SLOT_RIGHT] = {item = "crown shield"},
                [CONST_SLOT_LEFT] = {item = "bright sword"},
                [CONST_SLOT_LEGS] = {item = "plate legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            }
        },
        
        [2] = { -- # medium level equipment

            [{1, 5}] = {

                [CONST_SLOT_BACKPACK] = {item = "orange backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "health potion", amount = 1},
                            {item = "strong mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "hat of the mad"},
                [CONST_SLOT_NECKLACE] = {item = "stone skin amulet", amount = 5},
                [CONST_SLOT_ARMOR] = {item = "focus cape"},
                [CONST_SLOT_RIGHT] = {item = "demon shield"},
                [CONST_SLOT_LEFT] = {item = "wand of voodoo"},
                [CONST_SLOT_LEGS] = {item = "blue legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            },

            [{2, 6}] = {

                [CONST_SLOT_BACKPACK] = {item = "orange backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "health potion", amount = 1},
                            {item = "strong mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1},
                    [10] = {item = "paralyse rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "hat of the mad"},
                [CONST_SLOT_NECKLACE] = {item = "stone skin amulet", amount = 5},
                [CONST_SLOT_ARMOR] = {item = "focus cape"},
                [CONST_SLOT_RIGHT] = {item = "demon shield"},
                [CONST_SLOT_LEFT] = {item = "underworld rod"},
                [CONST_SLOT_LEGS] = {item = "blue legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            },

            [{3, 7}] = {

                [CONST_SLOT_BACKPACK] = {item = "orange backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "strong health potion", amount = 1},
                            {item = "strong mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "royal helmet"},
                [CONST_SLOT_NECKLACE] = {item = "stone skin amulet", amount = 5},
                [CONST_SLOT_ARMOR] = {item = "paladin armor"},
                [CONST_SLOT_RIGHT] = {item = "demon shield"},
                [CONST_SLOT_LEFT] = {item = "enchanted spear"},
                [CONST_SLOT_LEGS] = {item = "blue legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            },

            [{4, 8}] = {

                [CONST_SLOT_BACKPACK] = {item = "orange backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "strong health potion", amount = 1},
                            {item = "mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "royal helmet"},
                [CONST_SLOT_NECKLACE] = {item = "stone skin amulet", amount = 5},
                [CONST_SLOT_ARMOR] = {item = "dragon scale mail"},
                [CONST_SLOT_RIGHT] = {item = "demon shield"},
                [CONST_SLOT_LEFT] = {item = "bright sword"},
                [CONST_SLOT_LEGS] = {item = "crown legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            }
        },
        
        [3] = { -- # high level equipment

            [{1, 5}] = {

                [CONST_SLOT_BACKPACK] = {item = "blue backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "health potion", amount = 1},
                            {item = "great mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "light shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "hat of the mad"},
                [CONST_SLOT_NECKLACE] = {item = "stone skin amulet", amount = 5},
                [CONST_SLOT_ARMOR] = {item = "demon armor"},
                [CONST_SLOT_RIGHT] = {item = "mastermind shield"},
                [CONST_SLOT_LEFT] = {item = "wand of everblazing"},
                [CONST_SLOT_LEGS] = {item = "demon legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            },

            [{2, 6}] = {

                [CONST_SLOT_BACKPACK] = {item = "blue backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "health potion", amount = 1},
                            {item = "great mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "light shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1},
                    [10] = {item = "paralyse rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "hat of the mad"},
                [CONST_SLOT_NECKLACE] = {item = "stone skin amulet", amount = 5},
                [CONST_SLOT_ARMOR] = {item = "demon armor"},
                [CONST_SLOT_RIGHT] = {item = "mastermind shield"},
                [CONST_SLOT_LEFT] = {item = "glacial rod"},
                [CONST_SLOT_LEGS] = {item = "demon legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            },

            [{3, 7}] = {

                [CONST_SLOT_BACKPACK] = {item = "blue backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "great health potion", amount = 1},
                            {item = "great mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "light shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "demon helmet"},
                [CONST_SLOT_NECKLACE] = {item = "stone skin amulet", amount = 5},
                [CONST_SLOT_ARMOR] = {item = "magic plate armor"},
                [CONST_SLOT_RIGHT] = {item = "mastermind shield"},
                [CONST_SLOT_LEFT] = {item = "assassin star", amount = 15},
                [CONST_SLOT_LEGS] = {item = "golden legs"},
                [CONST_SLOT_FEET] = {item = "boots of haste"}
            },

            [{4, 8}] = {

                [CONST_SLOT_BACKPACK] = {item = "blue backpack", subitems = {
            
                    [1] = {item = "purple backpack", subitems = {
                            {item = "god flowers", amount = 2},
                            {item = "great health potion", amount = 1},
                            {item = "strong mana potion", amount = 1}
                    }},
                    
                    [2] = {item = "brown mushroom", amount = 50},
                    [3] = {item = "light shovel", amount = 1},
                    [4] = {item = "rope", amount = 1},
                    [5] = {item = "machete", amount = 1},
                    [6] = {item = "sudden death rune", amount = 1},
                    [7] = {item = "magic wall rune", amount = 1},
                    [8] = {item = "fire field rune", amount = 1},
                    [9] = {item = "destroy field rune", amount = 1}
            
                }},

                [CONST_SLOT_HEAD] = {item = "demon helmet"},
                [CONST_SLOT_NECKLACE] = {item = "stone skin amulet", amount = 5},
                [CONST_SLOT_ARMOR] = {item = "magic plate armor"},
                [CONST_SLOT_RIGHT] = {item = "mastermind shield"},
                [CONST_SLOT_LEFT] = {item = "stonecutter axe"},
                [CONST_SLOT_LEGS] = {item = "golden legs"},
                [CONST_SLOT_FEET] = {item = "steel boots"}
            }
        }

    }

    RE_Event.team_data = {

            [LOOK_TYPES] = {

                -- # you can override the base colors, just add the proper outfit values
                -- # example: lookHead = 100 

                [{1, 5}] = {

                    [SEX_FEMALE] = {lookType = 138, lookAddons = 3},
                    [SEX_MALE] = {lookType = 130, lookAddons = 3}

                },

                [{2, 6}] = {

                    [SEX_FEMALE] = {lookType = 148, lookAddons = 3},
                    [SEX_MALE] = {lookType = 144, lookAddons = 3}
                
                },

                [{3, 7}] = {

                    [SEX_FEMALE] = {lookType = 137, lookAddons = 3},
                    [SEX_MALE] = {lookType = 129, lookAddons = 3}

                },

                [{4, 8}] = {

                    [SEX_FEMALE] = {lookType = 139, lookAddons = 3},
                    [SEX_MALE] = {lookType = 131, lookAddons = 3}
                }
            },

            [TEAM_ONE] = { -- # base colors

                name = "Red",
                outfit_colors = {
                    lookHead = 94, 
                    lookBody = 94, 
                    lookLegs = 94, 
                    lookFeet = 94
                }

            },

            [TEAM_TWO] = {

                name = "Blue",
                outfit_colors = {
                    lookHead = 86, 
                    lookBody = 86, 
                    lookLegs = 86, 
                    lookFeet = 86
                }

            }
    }

    RE_Event.rewards = {

        overall_container = "brocade bag",

        -- # valid rewards -> items, coins

        drawn_match = {
            items = {
                [1] = {item = "crystal coin", amount = 3}
            }
        },

        loser_team = {
            items = {
                [1] = {item = "crystal coin", amount = 5}
            }
        },

        winner_team = {
            items = {
                [1] = {item = "crystal coin", amount = 10}
            }
        },

        top_fragger = { -- # the top fragger is only parsed if a team wins
            items = {
                [1] = {item = "crystal coin", amount = 2}
            },
            coins = 0
        }
    }

    RE_Event.storage = {}
    RE_Event.storage.event = {}
    RE_Event.storage.teams = {}
    RE_Event.storage.players = {}

    RE_Event.scheduler = {}
    RE_Event.scheduler.animation = 0
    RE_Event.scheduler.walls = 0
    RE_Event.scheduler.broadcast = 0
    RE_Event.scheduler.countdown = 0
    RE_Event.scheduler.release = 0

end
Leave a Comment