valkryja_players.xml 2.02 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.001">
Maiyannah Bishop's avatar
Maiyannah Bishop committed
4 5 6 7 8 9 10 11 12
	<TriggerPackage />
	<TimerPackage />
	<AliasPackage />
	<ActionPackage />
	<ScriptPackage>
		<Script isActive="yes" isFolder="no">
			<name>Core</name>
			<packageName></packageName>
			<script>-- Scripts-Players
13
-- =============================================================================
14
-- VALKRYJA V4.0  |     IRE MUD SYSTEM FOR MUDLET 3.0      |  Imperian version
15 16 17 18 19
-- ----------------+----------------------------------------+-------------------
-- This system is distributed under specific licensing terms specified in
-- &lt;readme.md&gt;   You should have received a copy of this file with the system
-- and if you did not, you can receive a copy from &lt;katorina@viantha.com&gt;
--
20
-- VALKRYJA MUD SYSTEM is (c) 2006-2019 Maiyannah Bishop
21 22 23 24 25 26 27 28
--
-- scripts_players.xml
--    Scripts which help track information about other players, record them, and
--    allow us to reference back to them.
--
--
-- @package     Scripts
-- @category    Players
29
-- @author      Maiyannah Bishop &lt;maiyannah@valkryja&gt;
30
-- @copyright   2006-2019 Maiyannah Bishop
31
-- @link        valkryja.com
Maiyannah Bishop's avatar
Maiyannah Bishop committed
32 33 34 35 36 37 38 39 40 41
-- =============================================================================

Players = Players or {};

-- =============================================================================
-- Interface functions
-- -----------------------------------------------------------------------------
-- Function: CreateNewPlayer
-- Creates a basic record in Players with some elementary information
function CreateNewPlayer(playerName, level, statpack, city, guild)
Maiyannah Bishop's avatar
Maiyannah Bishop committed
42
   Players[playerName] = Players[playerName] or {};
43 44 45 46
    Players[playerName].Level    = level or "unknown";
    Players[playerName].Statpack = statpack or "unknown";
    Players[playerName].City     = city or "unknown";
    Players[playerName].Guild    = guild or "unknown";
Maiyannah Bishop's avatar
Maiyannah Bishop committed
47
end</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
48 49 50 51 52 53 54
			<eventHandlerList />
		</Script>
	</ScriptPackage>
	<KeyPackage />
	<HelpPackage>
		<helpURL></helpURL>
	</HelpPackage>
55
</MudletPackage>