Commit Graph
25 Commits
Author SHA1 Message Date
David Cernat 9d596a00ac [MenuHelper] Rename requireAdminRank into requireStaffRank 2018-10-14 11:52:54 +03:00
David Cernat 1dda9260e2 [CommandHandler] Rework /placeat & /spawnat by allowing spaces in refIds
The downside is that the count and interval arguments have been removed, but they were not very useful anyway.
2018-08-25 10:22:12 +03:00
David Cernat 38de0c55d9 [MenuHelper] Add help example for creating new enchantment records 2018-08-12 01:19:27 +03:00
David Cernat 426187a171 [General] Implement dynamic records, part 1
A new RecordStore class has been implemented, used for saving and loading spell, potion, enchantment, creature, NPC, armor, book, clothing, miscellaneous and weapon record data, as well as accompanying magical effects (for spells, potions and enchantments), inventory items (for creatures and NPCs) and body parts (for armor and clothing). RecordStore data is kept in the new data/recordstore folder.

The OnRecordDynamic event has been implemented in eventHandler, with records received from players first being saved to their associated RecordStores, then being forwarded to players with their new server-set ids, and finally having their associated items added to the players they were received from.

Utility methods for getting and loading RecordStores have been added to logicHandler.

The commands /storerecord and /createrecord have been implemented for on-the-fly record creation.

The help menu has been expanded with examples for creating records.

All records are currently "global", i.e. when players join the server, they receive all the records created on it. This is a temporary, flawed approach that will be replaced with the correct approach in part 2.
2018-07-31 17:46:29 +03:00
David Cernat 1c891a7773 [MenuHelper] Add global function example to advanced menu 2018-07-17 22:14:09 +03:00
David Cernat fa78c04232 [MenuHelper] Add logicHandler menu to advancedExample menus
Additionally, use currentPid() variable when loading time for World in advancedExample menu.
2018-07-17 05:18:22 +03:00
David Cernat 200b715723 [MenuHelper] Make /advancedexample show up in help menu 2018-07-17 05:16:29 +03:00
David Cernat 8bcac4e821 [CommandHandler] Allow /advex as short form of /advancedexample 2018-07-17 05:14:01 +03:00
David Cernat 8142b34d7e [MenuHelper] Add advancedExample menu with examples of running functions 2018-07-17 02:55:20 +03:00
David Cernat c3407bac45 [General] Rename refIndex into uniqueIndex
This helps improve clarity by preventing confusion between the refNum and the combination of a refNum and an mpNum that is now called the uniqueIndex.
2018-07-13 04:31:38 +03:00
David Cernat 212010a33c [Commands] Add /overridecollision command 2018-07-11 02:48:47 +03:00
David Cernat 35fac26fd4 [Commands] Clean up /setcollision command 2018-07-11 00:32:59 +03:00
David Cernat d720702e0d [Commands] Allow repetition for AiWander to be turned on & off in /setai 2018-07-10 23:20:35 +03:00
David Cernat 6ab15fab33 [MenuHelper] Add more /setai info to admin help, move some commands 2018-07-10 08:48:15 +03:00
David Cernat b6cd866a22 [MenuHelper] Add colors to defaultCrafting 2018-07-10 08:47:34 +03:00
David Cernat c4fab7dfeb [MenuHelper] Add displayConditions to buttons in help menu 2018-07-09 18:41:19 +03:00
David Cernat 8ae11ecafd [MenuHelper] Use clearer names for page 1 of admin & moderator menus 2018-07-08 22:41:25 +03:00
David Cernat 0df80f9bb2 [MenuHelper] Split help's moderator menu into 2 pages 2018-07-08 22:19:49 +03:00
David Cernat 194acf7af7 [MenuHelper] Use yellow color for short versions of commands in help 2018-07-08 22:15:21 +03:00
David Cernat 6aca3d05d4 [MenuHelper] Place help menu commands & descriptions on separate lines 2018-07-08 22:09:38 +03:00
David Cernat 346e77943f [MenuHelper] Add colors to help menus 2018-07-08 21:54:47 +03:00
David Cernat 3ffb09fbd3 [MenuHelper] Split admin help menu into 2 pages 2018-07-08 21:23:30 +03:00
David Cernat ef0c35ddeb [General] Move help menu to a menuHelper menu in scripts/menu 2018-07-08 19:55:16 +03:00
David Cernat c6f4adabf4 [MenuHelper] Nerf bolts of cloth in defaultCrafting 2018-03-09 19:28:43 +02:00
David Cernat 3939cd828a [General] Add /craft command and associated menus as menuHelper example 2018-03-09 18:50:38 +02:00