mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
[Jun 11 2008] - Rumble
Added notification via prompt for new MOTD and news entries. (thanks Jamdog) Added all option to the restore command. (thanks Jamdog) Added new trigger variable hasattached. (thanks Fizban)
This commit is contained in:
parent
c486097e81
commit
cfe59d3e04
14 changed files with 169 additions and 7 deletions
|
|
@ -3044,3 +3044,16 @@ bool check_flags_by_name_ar(int *array, int numflags, char *search, const char *
|
|||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int trig_is_attached(struct script_data *sc, int trig_num)
|
||||
{
|
||||
trig_data *t;
|
||||
|
||||
if (!sc || !TRIGGERS(sc)) return 0;
|
||||
|
||||
for (t = TRIGGERS(sc); t; t = t->next)
|
||||
if (GET_TRIG_VNUM(t) == trig_num)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue