Rename SCRIPT_COMMAND_MOD_UPDATEFIELD to SCRIPT_COMMAND_SET_FLAG to avoid confusion.
Also add a parameter ´apply´ (dataint). If 1, it will set the flag, if 0, it will remove it. Note: currently only supports 32bit integers. --HG-- branch : trunk
This commit is contained in:
+4
-1
@@ -3939,7 +3939,10 @@ void Map::ScriptsProcess()
|
||||
break;
|
||||
}
|
||||
|
||||
source->SetFlag(step.script->datalong, step.script->datalong2);
|
||||
if (step.script->dataint)
|
||||
source->SetFlag(step.script->datalong, step.script->datalong2);
|
||||
else
|
||||
source->RemoveFlag(step.script->datalong, step.script->datalong2);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user