mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
[Jan 21 2009] - Jamdog
Added trigedit variable %move% to teleport objects. Fixed memory leak in generic_complete_quest. A bug fix to player attachable scripts. A better fix to the DIKU double attack by ordering a mob to save its master. Fix to remove weight restrictions for immortals.
This commit is contained in:
parent
6f22042712
commit
b458c58878
14 changed files with 145 additions and 37 deletions
|
|
@ -43,7 +43,9 @@ static void mob_log(char_data *mob, const char *format, ...)
|
|||
}
|
||||
|
||||
/* Macro to determine if a mob is permitted to use these commands. */
|
||||
#define MOB_OR_IMPL(ch) (GET_LEVEL(ch) > 0)
|
||||
#define MOB_OR_IMPL(ch) \
|
||||
(IS_NPC(ch) && (!(ch)->desc || GET_LEVEL((ch)->desc->original)>=LVL_IMPL))
|
||||
#define MOB_OR_PLAYER(ch) (GET_LEVEL(ch) > 0)
|
||||
|
||||
/* mob commands */
|
||||
/* prints the argument to all the rooms aroud the mobile */
|
||||
|
|
@ -286,7 +288,8 @@ ACMD(do_mzoneecho)
|
|||
int zone;
|
||||
char room_number[MAX_INPUT_LENGTH], buf[MAX_INPUT_LENGTH], *msg;
|
||||
|
||||
if (!MOB_OR_IMPL(ch)) {
|
||||
if (!MOB_OR_IMPL(ch))
|
||||
{
|
||||
send_to_char(ch, "Huh?!?\r\n");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue