• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.2 and Events.xml

Svira

Member
Joined
Jan 27, 2008
Messages
137
Reaction score
9
Hello, this is the first time I encounter the following problem, namely:

The "Monsters" class is not supported in events.xml

I'm using tfs 1.2 and never had this problem ...

error from console:
Lua:
>> Loading script systems
[Warning - Events::load] Unknown class: Monster
[Warning - Events::load] Unknown class: Monster
>> Loading monsters
>> Loading outfits
my events.xml
Code:
<events>
    <!-- Creature methods -->
    <event class="Creature" method="onChangeOutfit" enabled="0" />
    <event class="Creature" method="onAreaCombat" enabled="0" />
    <event class="Creature" method="onTargetCombat" enabled="0" />

    <!-- Party methods -->
    <event class="Party" method="onJoin" enabled="0" />
    <event class="Party" method="onLeave" enabled="0" />
    <event class="Party" method="onDisband" enabled="0" />
    
<!-- Monster methods -->
    <event class="Monster" method="onDropLoot" enabled="1" />      
    <!-- <event class="Monster" method="onSpawn" enabled="1" /> -->
    
    <!-- Player methods -->
    <event class="Player" method="onBrowseField" enabled="0" />
    <event class="Player" method="onLook" enabled="1" />
    <event class="Player" method="onLookInBattleList" enabled="1" />
    <event class="Player" method="onLookInTrade" enabled="1" />
    <event class="Player" method="onLookInShop" enabled="0" />
    <event class="Player" method="onMoveItem" enabled="0" />
    <event class="Player" method="onMoveCreature" enabled="0" />
    <event class="Player" method="onTurn" enabled="1" />
    <event class="Player" method="onTradeRequest" enabled="0" />
    <event class="Player" method="onTradeAccept" enabled="0" />
    <event class="Player" method="onGainExperience" enabled="1" />
    <event class="Player" method="onLoseExperience" enabled="0" />
    <event class="Player" method="onGainSkillTries" enabled="1" />
</events>

Any ideas how to solve it?
 
OP
OP
Svira

Svira

Member
Joined
Jan 27, 2008
Messages
137
Reaction score
9
those functions/callbacks were added after the 1.2 release so you need to add it by youself or simply use 1.4 <3
You're not entirely right, I've been flying tfs 1.2 for a long time and there was never a problem with that. I won't switch to tfs 1.4 because I'm using debian 6 and it's not technically possible.
 
Top