• 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!

Simple questions

CrumDubh

New Member
Joined
Feb 10, 2009
Messages
41
Reaction score
0
Hello!

I just want to know if it's possible to use the onLook event in TFS (Mystic Spirit).
If so, how?

Also, where could I find a list of all events?

Thanks!
 
Last edited:
There doesn't seem to be an onLook for 0.2. So not possible without editing the source

You can find all the events in creatureevent.cpp

Code:
                case CREATURE_EVENT_LOGIN:
                        return "onLogin";

                case CREATURE_EVENT_LOGOUT:
                        return "onLogout";

                case CREATURE_EVENT_THINK:
                        return "onThink";

                case CREATURE_EVENT_PREPAREDEATH:
                        return "onPrepareDeath";

                case CREATURE_EVENT_DEATH:
                        return "onDeath";

                case CREATURE_EVENT_KILL:
                        return "onKill";

                case CREATURE_EVENT_ADVANCE:
                        return "onAdvance";

Here are the event types:
Code:
                if(tmpStr == "login")
                        m_type = CREATURE_EVENT_LOGIN;
                else if(tmpStr == "logout")
                        m_type = CREATURE_EVENT_LOGOUT;
                else if(tmpStr == "think")
                        m_type = CREATURE_EVENT_THINK;
                else if(tmpStr == "preparedeath")
                        m_type = CREATURE_EVENT_PREPAREDEATH;
                else if(tmpStr == "death")
                        m_type = CREATURE_EVENT_DEATH;
                else if(tmpStr == "kill")
                        m_type = CREATURE_EVENT_KILL;
                else if(tmpStr == "advance")
                        m_type = CREATURE_EVENT_ADVANCE;
 
Back
Top