Clone of UAS2 @ https://github.com/drudgedance/uas2

events.h 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * This file is part of UAS2.
  3. *
  4. * UAS2 is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * UAS2 is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. * You should have received a copy of the GNU General Public License
  14. * along with UASv1; if not, write to the Free Software
  15. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. */
  17. /**
  18. * @file events.h
  19. */
  20. #ifndef __EVENTS_H
  21. #define __EVENTS_H
  22. #define CHANGE_COMBAT_MODE 0x0053 // F7B1
  23. #define CHARACTER_SPAWN 0x00A1 // F7B1
  24. #define CAST_MAGIC 0x004A // F7B1
  25. #define MOVEMENT_HIGH_PRIORITY 0xF753 // F7B1
  26. #define MOVEMENT_LOW_PRIORITY 0xF61C // F7B1
  27. #define JUMP 0xF61B // F7B1
  28. #define TEXT_FROM_CLIENT 0x0015 // F7B1
  29. #define ATTACK 0x0008 // F7B1
  30. #define TELL_TO_KNOWN 0x0032 // F7B1
  31. #define TELL_TO_UNKNOWN 0x005D // F7B1
  32. #define USE 0x0036
  33. #define ASSESS 0x00C8
  34. #define INVENTORY_ADD_ADJUST 0x0019
  35. #define INVENTORY_DROP 0x001B
  36. #define INVENTORY_EQUIP 0x001A
  37. #define GET_OBJECT_MANA 0x0263 // F7B1
  38. #define RECIEVE_MELEE_DAMAGE 0x01B2
  39. // @ Commands Recalls, PKLite (Type F7B1:xxxx)
  40. #define LIFESTONE_RECALL 0x0063
  41. #define MARKETPLACE_RECALL 0x028D
  42. #define HOUSE_RECALL 0x0262
  43. #define ALLEG_RECALL 0x0278 // Includes Mansion Recall
  44. #define PKLITE 0x028F
  45. #define SUICIDE 0x0279
  46. // @House Commands (Type F7B1:xxxx)
  47. #define HOUSE_ABANDON 0x021F
  48. #define HOUSE_GUEST_ADD 0x0245
  49. #define HOUSE_GUSET_REM_NAME 0x0246 // by name
  50. #define HOUSE_GUEST_ALLEG 0x0267 // Add or Remove
  51. #define HOUSE_GUEST_LIST 0x024D
  52. #define HOUSE_GUEST_REM_ALL 0x025E // Remove all Guests from list
  53. #define HOUSE_STORAGE 0x0249 // Add or Remove by Name
  54. #define HOUSE_STORE_ALL 0x024C // Remove all from storage
  55. #define HOUSE_BOOT_NAME 0x024A // Boot by Name
  56. #define HOUSE_BOOT_ALL 0x025F // Boot Everyone
  57. #define HOUSE_AVAIL 0x0270
  58. #define HOUSE_OPEN_CLOSE 0x0247 // Open or Close
  59. #define HOUSE_HOOKS 0x0266 // On or Off
  60. // @allegiance Commands (Type F7B1:xxxx)
  61. #define ALLEG_BOOT 0x0277 // Boot Member by Name
  62. #define ALLEG_INFO 0x027B // Retrieve Info by Name
  63. // @permit Commands (Type F7B1:xxxx)
  64. #define PERMIT_ADD 0x0219 // Add player by Name
  65. #define PERMIT_REM 0x021A // Remove User by Name
  66. // @Consent Commands (Type F7B1:xxxx)
  67. #define CONSENT_STATE 0x01A1 // Turns Consent On or Off
  68. #define CONSENT_WHO 0x0217 // Who has given you permission to loot
  69. #define CONSENT_REM 0x0218 // Removes Permission given by player
  70. #define CONSENT_CLEAR 0x0216 // Clear Consent List
  71. #endif