newsbot
05.04.2011, 17:10
автор: NoFantasy
<pre>m doc/EventAI.txt
m doc/script_commands.txt
m src/game/Creature.cpp
m src/game/Creature.h
m src/game/CreatureEventAI.cpp
m src/game/CreatureEventAI.h
m src/game/HomeMovementGenerator.cpp
m src/game/Map.cpp
m src/game/ScriptMgr.h
m src/game/Unit.cpp
m src/shared/revision_nr.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[11316] Implement a basic system to restore default faction for creatures after changes
A new specialized function SetFactionTemporary for creatures are added. It work just like setFaction but has in addition option to set flags.
The flags determine if default faction should be restored and when; most commonly just before respawn and when reaching home after evade.
SCRIPT_COMMAND_SET_FACTION for DB scripts and ACTION_T_SET_FACTION for creature_ai_scripts are now capable of using the system (documentation updated)
The intention of the system is to be able to solve basic events that include faction changes, with the use of database only and in easier ways.
It is advised that DB devs revise current database scripts to check if changes should be made. The same goes for EventAI devs regarding ACTION_T_SET_FACTION.
Signed-off-by: NoFantasy <nofantasy@nf.no></pre>
Дальше... (https://github.com/mangos/mangos/commit/6f951894042accdb0d2ae827d126825496b4ad46)
<pre>m doc/EventAI.txt
m doc/script_commands.txt
m src/game/Creature.cpp
m src/game/Creature.h
m src/game/CreatureEventAI.cpp
m src/game/CreatureEventAI.h
m src/game/HomeMovementGenerator.cpp
m src/game/Map.cpp
m src/game/ScriptMgr.h
m src/game/Unit.cpp
m src/shared/revision_nr.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[11316] Implement a basic system to restore default faction for creatures after changes
A new specialized function SetFactionTemporary for creatures are added. It work just like setFaction but has in addition option to set flags.
The flags determine if default faction should be restored and when; most commonly just before respawn and when reaching home after evade.
SCRIPT_COMMAND_SET_FACTION for DB scripts and ACTION_T_SET_FACTION for creature_ai_scripts are now capable of using the system (documentation updated)
The intention of the system is to be able to solve basic events that include faction changes, with the use of database only and in easier ways.
It is advised that DB devs revise current database scripts to check if changes should be made. The same goes for EventAI devs regarding ACTION_T_SET_FACTION.
Signed-off-by: NoFantasy <nofantasy@nf.no></pre>
Дальше... (https://github.com/mangos/mangos/commit/6f951894042accdb0d2ae827d126825496b4ad46)