• 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] All main interface functions

Infernum

Senator
Joined
Feb 14, 2015
Messages
5,643
Solutions
559
Reaction score
3,949
doesn't hurt to have some documentation for this incase people don't know
Code:
Actions
    function onUse(player, item, fromPosition, target, toPosition, isHotkey)

Chatchannels
    function canJoin(player)
    function onSpeak(player, type, message)

Creaturescripts
    function onLogin(player)
    function onLogout(player)
    function onThink(creature, interval)
    function onPrepareDeath(creature, killer)
    function onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified)
    function onKill(creature, target)
    function onAdvance(player, skill, oldLevel, newLevel)
    function onModalWindow(player, modalWindowId, buttonId, choiceId)
    function onTextEdit(player, item, text)
    function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
    function onManaChange(creature, attacker, manaChange, origin)
    function onExtendedOpcode(player, opcode, buffer)

Globalevents
    function onThink(interval, lastExecution)
    function onStartup()
    function onShutdown()
    function onRecord(current, old)
    function onTime()

Movements
    function onStepIn(creature, item, toPosition, fromPosition)
    function onStepOut(creature, item, toPosition, fromPosition)
    function onEquip(player, item, slot)
    function onDeEquip(player, item, slot)
    function onAddItem(moveitem, tileitem, pos)
    function onRemoveItem(moveitem, tileitem, pos)

Npc
    function onCreatureAppear(cid)
    function onCreatureDisappear(cid)
    function onCreatureSay(cid, type, msg)
    function onThink(interval, lastExecution)

Spells
    function onCastSpell(creature, variant)

Talkactions
    function onSay(player, words, param)

Weapons
    function onUseWeapon(player, variant)
 
This is nice, very nice too have, but you also forgot the Monsters, and I don't know if you intended to leave the normal "events" out of everything but those were also forgotten.
 
This is nice, very nice too have, but you also forgot the Monsters, and I don't know if you intended to leave the normal "events" out of everything but those were also forgotten.
do monsters really have interface functions? like what?
also events were left out on purpose because there's already a list of them inside everyone's events folder
 
Back
Top