123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- /*
- EQ2Emulator: Everquest II Server Emulator
- Copyright (C) 2007 EQ2EMulator Development Team (http://www.eq2emulator.net)
- This file is part of EQ2Emulator.
- EQ2Emulator 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.
- EQ2Emulator 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 EQ2Emulator. If not, see <http://www.gnu.org/licenses/>.
- */
- #ifndef EQ2_SPAWN_LISTS
- #define EQ2_SPAWN_LISTS
- #include "../common/types.h"
- #include <vector>
- #include <map>
- #define SPAWN_ENTRY_TYPE_NPC 0
- #define SPAWN_ENTRY_TYPE_OBJECT 1
- #define SPAWN_ENTRY_TYPE_WIDGET 2
- #define SPAWN_ENTRY_TYPE_SIGN 3
- #define SPAWN_ENTRY_TYPE_GROUNDSPAWN 4
- struct EntityCommand{
- string name;
- float distance;
- string error_text;
- string command;
- int16 cast_time;
- int32 spell_visual;
- map<int32, bool> allow_or_deny; // this is a map of player IDs and whether they are allowed on the command or denied
- bool default_allow_list; // if set to false then its a defaultDenyList
- };
- struct SpawnEntry{
- int32 spawn_entry_id;
- int32 spawn_location_id;
- int8 spawn_type;
- int32 spawn_id;
- float spawn_percentage;
- int32 respawn;
- int32 expire_time;
- int32 expire_offset;
- //devn00b: added spawn location overrides, added these to accomodate.
- int32 lvl_override;
- int32 hp_override;
- int32 mp_override;
- int32 str_override;
- int32 sta_override;
- int32 wis_override;
- int32 int_override;
- int32 agi_override;
- int32 heat_override;
- int32 cold_override;
- int32 magic_override;
- int32 mental_override;
- int32 divine_override;
- int32 disease_override;
- int32 poison_override;
- int32 difficulty_override; //aka EncounterLevel
- };
- class SpawnLocation{
- public:
- SpawnLocation(){
- x = 0;
- y = 0;
- z = 0;
- heading = 0;
- total_percentage = 0;
- x_offset = 0;
- y_offset = 0;
- z_offset = 0;
- placement_id = 0;
- pitch = 0;
- roll = 0;
- grid_id = 0;
- conditional = 0;
- }
- ~SpawnLocation(){
- for(int32 i=0;i<entities.size();i++)
- safe_delete(entities[i]);
- }
- void AddSpawn(SpawnEntry* entity){ entities.push_back(entity); }
- vector<SpawnEntry*> entities;
- float x;
- float y;
- float z;
- float heading;
- float x_offset;
- float y_offset;
- float z_offset;
- int32 placement_id;
- float pitch;
- float roll;
- float total_percentage;
- int32 grid_id;
- string script;
- int8 conditional;
- };
- #endif
|