You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can add a luaMonsterSpellSetConditionOutfit function and add it into register_monster_type.lua.
However, an issue lies with trying to get a monster types outfit when the file hasn't been loaded yet. For instance, blue djinn has trouble loading rabbit looktypes because the blue djinn file is loaded far before the rabbit.
edit: I have managed to get it to work just fine with addEvent but im curious to hear of what others think of this.
Explanation of what you want to do that is currently impossible
be able to read "monster" and "item", currently target is set to "invisible" instead
https://github.com/otland/forgottenserver/blob/master/data/scripts/lib/register_monster_type.lua#L280-L335
https://github.com/otland/forgottenserver/blob/master/src/monsters.cpp#L707-L717
https://github.com/otland/forgottenserver/blob/master/src/monsters.cpp#L390-L413 - xml reference
{name = "outfit", interval = 2000, chance = 17, monster = "rabbit", duration = 20000, range = 7, target = true, effect = CONST_ME_MAGIC_BLUE}
{name = "outfit", interval = 2000, chance = 1, item = 3976, duration = 4000, range = 7, target = true, effect = CONST_ME_MAGIC_BLUE},
The text was updated successfully, but these errors were encountered: