blob: cc9971b57bab9bc54d36285031bc2c5e9c62a267 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001QueryGuest()
2FUNKTION:
3 int QueryGuest();
4
5DEFINIERT IN:
6 /std/player/base
7
8BESCHREIBUNG:
9 Auf der uid basierende Hilfsfunktion, um Gaeste zu identifizieren.
10
11RUeCKGABEWERT:
12 1, wenn Spielerobjekt ein Gast ist; 0 sonst
13
14BEISPIELE:
15 if(this_interactive()->QueryGuest())
16 {
17 (this_interactive()->ReceiveMsg(
18 "Wir bedienen hier nur ordentliche Charaktere.",
19 MT_LISTEN, MA_SAY,
20 "Der Wirt sagt: ") != MSG_SENSE_BLOCK) ||
21 (this_interactive()->ReceiveMsg(
22 "Der Wirt gestikuliert dich hinaus.",
23 MT_LOOK, MA_LOOK) != MSG_SENSE_BLOCK) ||
24 (this_interactive()->ReceiveMsg(
25 "Irgendwer stupst dich an. Du sollst wohl gehen.",
26 MT_FEEL, MA_FEEL));
27 return 1;
28 }
29
30SIEHE AUCH:
31 getuid()
32
3314. Mai 2015 Gloinson