forked from kyonshi/grenzland-mud
[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:
@@ -1813,6 +1813,11 @@ static void process_attach(void *go, struct script_data *sc, trig_data *trig,
|
||||
}
|
||||
|
||||
if (c) {
|
||||
if (!IS_NPC(c) && !CONFIG_SCRIPT_PLAYERS) {
|
||||
script_log("Trigger: %s, VNum %d. attach invalid target: '%s'",
|
||||
GET_TRIG_NAME(trig), GET_TRIG_VNUM(trig), GET_NAME(c));
|
||||
return;
|
||||
}
|
||||
if (!SCRIPT(c))
|
||||
CREATE(SCRIPT(c), struct script_data, 1);
|
||||
add_trigger(SCRIPT(c), newtrig, -1);
|
||||
|
||||
Reference in New Issue
Block a user