diff options
-rw-r--r-- | data/scripts/libs/libtmw-constants.lua | 130 | ||||
-rw-r--r-- | runsrv.bat | 6 | ||||
-rw-r--r-- | src/chat-server/post.hpp | 46 |
3 files changed, 91 insertions, 91 deletions
diff --git a/data/scripts/libs/libtmw-constants.lua b/data/scripts/libs/libtmw-constants.lua index cdc711da..36b27f7b 100644 --- a/data/scripts/libs/libtmw-constants.lua +++ b/data/scripts/libs/libtmw-constants.lua @@ -1,66 +1,66 @@ --------------------------------------------------------------
--- TMW Support Library Constants --
--- --
--- Some useful numeric values for use by other scripts. --
--- --
-----------------------------------------------------------------------------------
--- Copyright 2008 The Mana World Development Team --
--- --
--- This file is part of The Mana World. --
--- --
--- The Mana World 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 2 of the License, or any later version. --
-----------------------------------------------------------------------------------
-
-DAMAGE_PHYSICAL = 0
-DAMAGE_MAGICAL = 1
-DAMAGE_OTHER = 2
-
-ELEMENT_NEUTRAL = 0
-ELEMENT_FIRE = 1
-ELEMENT_WATER = 2
-ELEMENT_EARTH = 3
-ELEMENT_AIR = 4
-ELEMENT_LIGHTNING = 5
-ELEMENT_METAL = 6
-ELEMENT_WOOD = 7
-ELEMENT_ICE = 8
-
-ATTR_PHY_ATK_MIN = 0
-ATTR_PHY_ATK_DELTA = 1
-ATTR_MAG_ATK = 2
-ATTR_PHY_RES = 3
-ATTR_MAG_RES = 4
-ATTR_EVADE = 5
-ATTR_HIT = 6
-ATTR_HP = 7
-ATTR_HP_REGEN = 8
-ELEM_NEUTRAL = 9
-ELEM_FIRE = 10
-ELEM_WATER = 11
-ELEM_EARTH = 12
-ELEM_AIR = 13
-ELEM_SACRED = 14
-ELEM_DEATH = 15
-ATTR_STRENGTH = 16
-ATTR_AGILITY = 17
-ATTR_DEXTERITY = 18
-ATTR_VITALITY = 19
-ATTR_INTELLIGENCE = 20
-ATTR_WILLPOWER = 21
-SKILL_WEAPON_NONE = 22
-SKILL_WEAPON_KNIFE = 23
-SKILL_WEAPON_SWORD = 24
-SKILL_WEAPON_POLEARM = 25
-SKILL_WEAPON_STAFF = 26
-SKILL_WEAPON_WHIP = 27
-SKILL_WEAPON_BOW = 28
-SKILL_WEAPON_SHOOTING = 29
-SKILL_WEAPON_MACE = 30
-SKILL_WEAPON_AXE = 31
-SKILL_WEAPON_THROWN = 32
-
-TILESIZE = 32
-HOURS = 3600
+------------------------------------------------------------- +-- TMW Support Library Constants -- +-- -- +-- Some useful numeric values for use by other scripts. -- +-- -- +---------------------------------------------------------------------------------- +-- Copyright 2008 The Mana World Development Team -- +-- -- +-- This file is part of The Mana World. -- +-- -- +-- The Mana World 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 2 of the License, or any later version. -- +---------------------------------------------------------------------------------- + +DAMAGE_PHYSICAL = 0 +DAMAGE_MAGICAL = 1 +DAMAGE_OTHER = 2 + +ELEMENT_NEUTRAL = 0 +ELEMENT_FIRE = 1 +ELEMENT_WATER = 2 +ELEMENT_EARTH = 3 +ELEMENT_AIR = 4 +ELEMENT_LIGHTNING = 5 +ELEMENT_METAL = 6 +ELEMENT_WOOD = 7 +ELEMENT_ICE = 8 + +ATTR_PHY_ATK_MIN = 0 +ATTR_PHY_ATK_DELTA = 1 +ATTR_MAG_ATK = 2 +ATTR_PHY_RES = 3 +ATTR_MAG_RES = 4 +ATTR_EVADE = 5 +ATTR_HIT = 6 +ATTR_HP = 7 +ATTR_HP_REGEN = 8 +ELEM_NEUTRAL = 9 +ELEM_FIRE = 10 +ELEM_WATER = 11 +ELEM_EARTH = 12 +ELEM_AIR = 13 +ELEM_SACRED = 14 +ELEM_DEATH = 15 +ATTR_STRENGTH = 16 +ATTR_AGILITY = 17 +ATTR_DEXTERITY = 18 +ATTR_VITALITY = 19 +ATTR_INTELLIGENCE = 20 +ATTR_WILLPOWER = 21 +SKILL_WEAPON_NONE = 22 +SKILL_WEAPON_KNIFE = 23 +SKILL_WEAPON_SWORD = 24 +SKILL_WEAPON_POLEARM = 25 +SKILL_WEAPON_STAFF = 26 +SKILL_WEAPON_WHIP = 27 +SKILL_WEAPON_BOW = 28 +SKILL_WEAPON_SHOOTING = 29 +SKILL_WEAPON_MACE = 30 +SKILL_WEAPON_AXE = 31 +SKILL_WEAPON_THROWN = 32 + +TILESIZE = 32 +HOURS = 3600 MINUTES = 60
\ No newline at end of file @@ -1,3 +1,3 @@ -@echo off
-start accountserver.exe || echo accountserver.exe not found. Not compiled yet?
-start gameserver.exe || echo gameserver.exe not found. Not compiled yet?
\ No newline at end of file +@echo off +start accountserver.exe || echo accountserver.exe not found. Not compiled yet? +start gameserver.exe || echo gameserver.exe not found. Not compiled yet? diff --git a/src/chat-server/post.hpp b/src/chat-server/post.hpp index f2ec6b7f..bbbd660f 100644 --- a/src/chat-server/post.hpp +++ b/src/chat-server/post.hpp @@ -37,9 +37,9 @@ class Letter { public: /** - * Constructor.
- *
- * Before the letter is stored in the database, the unique Id of the letter
+ * Constructor. + * + * Before the letter is stored in the database, the unique Id of the letter * is 0. * @param type Type of Letter - unused * @param sender Pointer to character that sent the letter @@ -51,25 +51,25 @@ public: * Destructor */ ~Letter(); -
- /**
- * Gets the unique Id of the letter.
- */
- unsigned long getId() const
- { return mId; }
-
- /**
- * Sets the unique Id of the letter used as primary key in the database.
- * @param Id Unique id of the letter.
- */
- void setId(unsigned long Id)
- { mId = Id; }
-
- /**
- * Gets the type of the letter. (unused)
- */
- unsigned int getType(void) const
- { return mType; }
+ + /** + * Gets the unique Id of the letter. + */ + unsigned long getId() const + { return mId; } + + /** + * Sets the unique Id of the letter used as primary key in the database. + * @param Id Unique id of the letter. + */ + void setId(unsigned long Id) + { mId = Id; } + + /** + * Gets the type of the letter. (unused) + */ + unsigned int getType(void) const + { return mType; } /** * Set the expiry @@ -119,7 +119,7 @@ public: std::vector<InventoryItem> getAttachments(); private: - unsigned int mId;
+ unsigned int mId; unsigned int mType; unsigned long mExpiry; std::string mContents; |