Ir para conteúdo

Callbacks.


Posts Recomendados

Olá amigos do Xtibia Vim trazer alguns Callbacks , irei fazer uma lista com eles , caso haja alguns outro editarei o topico. Bom vamos Começar
! :D

ACTIONS

onUse(cid, item, fromPosition, itemEx, toPosition)

CREATURE SCRIPTS

onLogin(cid)
onLogout(cid)
onAdvance(cid, skill, oldLevel, newLevel)
onStatsChange(cid, attacker, type, combat, value)
onDirection(cid, old, current)
onOutfit(cid, old, current)
onSendMail(cid, receiver, item, openBox)
onReceiveMail(cid, sender, item, openBox)
onTradeRequest(cid, target, item)
onTradeAccept(cid, target, item, targetItem)
onJoinChannel(cid, channel, users)
onLeaveChannel (cid, channel, users)
onLook(cid, thing, position, lookDistance)
onThink(cid, interval)
onTextEdit(cid, item, newText)
onReportBug(cid, comment)
onAreaCombat(cid, tileItem, tilePosition, isAggressive)
onPush(cid, target)
onTarget(cid, target)
onFollow(cid, target)
onCombat(cid, target)
onAttack(cid, target)
onCast(cid, target)
onKill(cid, target, lastHit)
onDeath(cid, corpse, deathList)
onPrepareDeath(cid, deathList)

GLOBAL EVENTS

onThink(interval)
onStartup()
onShutdown()
onGlobalSave()
onRecord(current, old, cid)
onTime()

MOVEMENTS

onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
onStepOut(cid, item, position, lastPosition, fromPosition, toPosition, actor)
onEquip(cid, item, slot)
onDeEquip(cid, item, slot)
onAddItem(moveItem, tileItem, position, cid)
onRemoveItem(moveItem, tileItem, position, cid)

SPELLS

onCastSpell(cid, var)

TALKACTIONS

onSay(cid, words, param, channel)

 

WEAPONS

onUseWeapon(cid, var)

• Retirado do SCRIPTSYSTEM_HELP, doc das Sources do TFS

 

Espero que ajude ! :D

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...