Lineage 2 Tower Forum

Full Version: Targetting?whats the logic
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
when i try to use any Target function in script, it doesnt work unless my char doesnt have any target or unless i add ClearTargets() before.
whats the purpose of that.
enum TargetType
{
TARGET_BY_MYSELF_FORCE = 0,//moj target wymuszony, kiedy na sile klikne na czyms i ten target nie widnieje ponizej
TARGET_BY_SCRIPTS, //target ze skryptow
TARGET_BY_ITEMS, //uzywanie itemkow ? (manor) ?
TARGET_BY_SKILLS, //uzywanie skilli przez bota
TARGET_BY_ASSIST, //assist przez bota
TARGET_BY_PVP_AUTOTARGET, //auto pvp target
TARGET_BY_AUTOTARGET, //auto pve target
TARGET_BY_MYSELF, //jesli w chwili targetowania target widnial na liscie powyzej to pojawi sie tu
TARGET_BY_AGRO, //jesli jakis mobek uzyje na mnie agro, to wskakuje tu...
TARGET_UNKNOWN
};

so your target made by hand > any other target...
ClearTargets clear that target table, so bot things that there is nothing on target...

But good news for you is, relax, that all will be deleted in next version...
Same shit is made with skills, it's a old code what was working when every logic runs at any time with no dependency, now dependency system control what login when have to be run, so it's not needed anymroe...
Reference URL's