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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue