MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | // 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_ |
Bugfix | 0da8995 | 2021-01-30 21:59:31 +0100 | [diff] [blame] | 47 | // aus npc.c |
| 48 | varargs void create_default_npc(int level, int maxhp); |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 49 | // aus npc/info.c |
Arathorn | 23328e0 | 2020-09-24 22:14:28 +0200 | [diff] [blame] | 50 | public varargs void AddInfo(string|string* key, string|closure info, |
| 51 | string indent, int|string silent, string|closure casebased); |
| 52 | public varargs void AddSpecialInfo(string|string* keys, string functionname, |
| 53 | string indent, int|string silent, string|closure casebased); |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 54 | public int frage(string str); |
| 55 | public int do_frage(string text); |
| 56 | public void RemoveInfo( string key ); |
| 57 | public varargs mixed GetInfo(string str); |
| 58 | // aus npc/items.c |
| 59 | public varargs object AddItem(mixed filename, int refresh, mixed props); |
Bugfix | 52a7bd6 | 2021-01-30 22:22:29 +0100 | [diff] [blame] | 60 | // aus npc/chat.c |
| 61 | void SetAttackChats(int chance, mixed strs); |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 62 | #endif // _NPC_H_PROTOTYPES_ |
| 63 | #endif // NEED_PROTOTYPES |
| 64 | |