blob: 85659301d1864b282e63f37db6a2e7d93da738b0 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// npc.h -- Definitonen fuer NPCs
4//
5// $Id: npc.h 6709 2008-02-02 22:14:08Z Zesstra $
6
7#ifndef _NPC_H_
8#define _NPC_H_
9
10#define DEFAULT_INFO "\ndefault info"
11#define DEFAULT_NOINFO "\ndefault noinfo"
12#define P_PRE_INFO "npc_pre_info"
13#define P_NPC_INFO "npc_info"
14
15#define P_NPC "is_npc"
16
17#define P_HB "hb"
18#define P_INFO "info"
19
20#define P_AGGRESSIVE "aggressive"
21
22#define P_SPELLS "spells"
23#define P_SPELLRATE "spellrate"
24
25#define P_CHATS "chats"
26#define P_CHAT_CHANCE "chat_chance"
27#define P_ACHATS "achats"
28#define P_ACHAT_CHANCE "achat_chance"
29
30#define P_REJECT "reject"
31
32#define P_DEFAULT_INFO "default_info" // Standardantwort fuer Fragen
33#define P_LOG_INFO "log_info"
34
35#define CLONE_NEW 0x10000000 /* VERALTET! */
36#define CLONE_WEAR 0x20000000 /* anziehen */
37#define CLONE_WIELD 0x40000000 /* zuecken */
38#define CLONE_NO_CHECK 0x08000000 /* zuecken oder anziehen ohne checks */
39
40#define NPC_NEEDS_ITEM_INIT "npc:need item init"
41
42#endif
43
44#ifdef NEED_PROTOTYPES
45#ifndef _NPC_H_PROTOTYPES_
46#define _NPC_H_PROTOTYPES_
47// aus npc/info.c
48public varargs void AddInfo(mixed key, mixed info, string indent,
49 mixed silent, mixed casebased);
50public varargs void AddSpecialInfo(mixed keys, string functionname,
51 string indent, mixed silent, mixed casebased );
52public int frage(string str);
53public int do_frage(string text);
54public void RemoveInfo( string key );
55public varargs mixed GetInfo(string str);
56// aus npc/items.c
57public varargs object AddItem(mixed filename, int refresh, mixed props);
58#endif // _NPC_H_PROTOTYPES_
59#endif // NEED_PROTOTYPES
60