Ir para conteúdo
Entre para seguir isso  
Danihcv

[TFS 0.3/0.4] Lua functions - funções

Posts Recomendados

IarVXFO.png

 

Olá, xTibianos. Hoje venho lhes trazer umas listas com todas (teoricamente, pois não pude conferir) as funções padrões dos TFS 0.3 e 0.4.

 

  • Source functions - Funções feitas na source
getCreatureHealth(cid)
getCreatureMaxHealth(cid[, ignoreModifiers = false])
getCreatureMana(cid)
getCreatureMaxMana(cid[, ignoreModifiers = false])
getCreatureHideHealth(cid)
doCreatureSetHideHealth(cid, hide)
getCreatureSpeakType(cid)
doCreatureSetSpeakType(cid, type)
getCreatureLookDirection(cid)
getPlayerLevel(cid)
getPlayerExperience(cid)
getPlayerMagLevel(cid[, ignoreModifiers = false])
getPlayerSpentMana(cid)
getPlayerFood(cid)
getPlayerAccess(cid)
getPlayerGhostAccess(cid)
getPlayerSkillLevel(cid, skill[, ignoreModifiers = false])
getPlayerSkillTries(cid, skill)
getPlayerTown(cid)
getPlayerVocation(cid)
getPlayerIp(cid)
getPlayerRequiredMana(cid, magicLevel)
getPlayerRequiredSkillTries(cid, skillId, skillLevel)
getPlayerItemCount(cid, itemid[, subType = -1])
getPlayerMoney(cid)
getPlayerSoul(cid[, ignoreModifiers = false])
getPlayerFreeCap(cid)
getPlayerLight(cid)
getPlayerSlotItem(cid, slot)
getPlayerWeapon(cid[, ignoreAmmo = false])
getPlayerItemById(cid, deepSearch, itemId[, subType = -1])
getPlayerDepotItems(cid, depotid)
getPlayerGuildId(cid)
getPlayerGuildName(cid)
getPlayerGuildRankId(cid)
getPlayerGuildRank(cid)
getPlayerGuildNick(cid)
getPlayerGuildLevel(cid)
getPlayerGUID(cid)
getPlayerNameDescription(cid)
doPlayerSetNameDescription(cid, desc)
getPlayerSpecialDescription(cid)
doPlayerSetSpecialDescription(cid, desc)
getPlayerAccountId(cid)
getPlayerAccount(cid)
getPlayerFlagValue(cid, flag)
getPlayerCustomFlagValue(cid, flag)
getPlayerPromotionLevel(cid)
doPlayerSetPromotionLevel(cid, level)
getPlayerGroupId(cid)
doPlayerSetGroupId(cid, newGroupId)
doPlayerSendOutfitWindow(cid)
doPlayerLearnInstantSpell(cid, name)
doPlayerUnlearnInstantSpell(cid, name)
getPlayerLearnedInstantSpell(cid, name)
getPlayerInstantSpellCount(cid)
getPlayerInstantSpellInfo(cid, index)
getInstantSpellInfo(cid, name)
getCreatureStorageList(cid)
getCreatureStorage(uid, key)
doCreatureSetStorage(uid, key, value)
getStorageList()
getStorage(key)
doSetStorage(key, value)
getChannelUsers(channelId)
getPlayersOnline()
getTileInfo(pos)
getThingFromPos(pos[, displayError = true])
getThing(uid[, recursive = RECURSE _FIRST])
doTileQueryAdd(uid, pos[, flags[, displayError = true]])
doItemRaidUnref(uid)
getThingPosition(uid)
getTileItemById(pos, itemId[, subType = -1])
getTileItemByType(pos, type)
getTileThingByPos(pos)
getTopCreature(pos)
doRemoveItem(uid[, count = -1])
doPlayerFeed(cid, food)
doPlayerSendCancel(cid, text)
doPlayerSendDefaultCancel(cid, ReturnValue)
getSearchString(fromPosition, toPosition[, fromIsCreature = false[, toIsCreature = false]])
getClosestFreeTile(cid, targetpos[, extended = false[, ignoreHouse = true]])
doTeleportThing(cid, newpos[, pushmove = true[, fullTeleport = true]])
doTransformItem(uid, newId[, count/subType])
doCreatureSay(uid, text[, type = SPEAK _SAY[, ghost = false[, cid = 0[, pos]]]])
doSendCreatureSquare(cid, color[, player])
doSendMagicEffect(pos, type[, player])
doSendDistanceShoot(fromPos, toPos, type[, player])
doSendAnimatedText(pos, text, color[, player])
doPlayerAddSkillTry(cid, skillid, n[, useMultiplier = true])
doCreatureAddHealth(cid, health[, hitEffect[, hitColor[, force]]])
doCreatureAddMana(cid, mana)
setCreatureMaxHealth(cid, health)
setCreatureMaxMana(cid, mana)
doPlayerSetMaxCapacity(cid, cap)
doPlayerAddSpentMana(cid, amount[, useMultiplier = true])
doPlayerAddSoul(cid, amount)
doPlayerAddItem(cid, itemid[, count/subtype = 1[, canDropOnMap = true[, slot = 0]]])
doPlayerAddItem(cid, itemid[, count = 1[, canDropOnMap = true[, subtype = 1[, slot = 0]]]])
doPlayerAddItemEx(cid, uid[, canDropOnMap = false[, slot = 0]])
doPlayerSendTextMessage(cid, MessageClasses, message)
doPlayerSendChannelMessage(cid, author, message, SpeakClasses, channel)
doPlayerSendToChannel(cid, targetId, SpeakClasses, message, channel[, time])
doPlayerOpenChannel(cid, channelId)
doPlayerAddMoney(cid, money)
doPlayerRemoveMoney(cid, money)
doPlayerTransferMoneyTo(cid, target, money)
doShowTextDialog(cid, itemid, text)
doDecayItem(uid)
doCreateItem(itemid[, type/count], pos)
doCreateItemEx(itemid[, count/subType = -1])
doTileAddItemEx(pos, uid)
doAddContainerItemEx(uid, virtuid)
doRelocate(pos, posTo[, creatures = true[, unmovable = true]])
doCleanTile(pos[, forceMapLoaded = false])
doCreateTeleport(itemid, topos, createpos)
doCreateMonster(name, pos[, extend = false[, force = false[, displayError = true]]])
doCreateNpc(name, pos[, displayError = true])
doSummonMonster(cid, name)
doConvinceCreature(cid, target)
getMonsterTargetList(cid)
getMonsterFriendList(cid)
doMonsterSetTarget(cid, target)
doMonsterChangeTarget(cid)
getMonsterInfo(name)
doAddCondition(cid, condition)
doRemoveCondition(cid, type[, subId])
doRemoveConditions(cid[, onlyPersistent])
doRemoveCreature(cid[, forceLogout = true])
doMoveCreature(cid, direction[, flag = FLAG _NOLIMIT])
doSteerCreature(cid, position)
doPlayerSetPzLocked(cid, locked)
doPlayerSetTown(cid, townid)
doPlayerSetVocation(cid,voc)
doPlayerRemoveItem(cid, itemid[, count[, subType = -1]])
doPlayerAddExperience(cid, amount)
doPlayerSetGuildId(cid, id)
doPlayerSetGuildLevel(cid, level[, rank])
doPlayerSetGuildNick(cid, nick)
doPlayerAddOutfit(cid, looktype, addon)
doPlayerRemoveOutfit(cid, looktype[, addon = 0])
doPlayerAddOutfitId(cid, outfitId, addon)
doPlayerRemoveOutfitId(cid, outfitId[, addon = 0])
canPlayerWearOutfit(cid, looktype[, addon = 0])
canPlayerWearOutfitId(cid, outfitId[, addon = 0])
getCreatureCondition(cid, condition[, subId = 0])
doCreatureSetDropLoot(cid, doDrop)
getPlayerLossPercent(cid, lossType)
doPlayerSetLossPercent(cid, lossType, newPercent)
doPlayerSetLossSkill(cid, doLose)
getPlayerLossSkill(cid)
doPlayerSwitchSaving(cid)
doPlayerSave(cid[, shallow = false])
isPlayerPzLocked(cid)
isPlayerSaving(cid)
isCreature(cid)
isMovable(uid)
getCreatureByName(name)
getPlayerByGUID(guid)
getPlayerByNameWildcard(name~[, ret = false])
getPlayerGUIDByName(name[, multiworld = false])
getPlayerNameByGUID(guid[, multiworld = false[, displayError = true]])
doPlayerChangeName(guid, oldName, newName)
registerCreatureEvent(uid, eventName)
unregisterCreatureEvent(uid, eventName)
getContainerSize(uid)
getContainerCap(uid)
getContainerItem(uid, slot)
doAddContainerItem(uid, itemid[, count/subType = 1])
getHouseInfo(houseId[, displayError = true])
getHouseAccessList(houseid, listId)
getHouseByPlayerGUID(playerGUID)
getHouseFromPos(pos)
setHouseAccessList(houseid, listid, listtext)
setHouseOwner(houseId, owner[, clean])
getWorldType()
setWorldType(type)
getWorldTime()
getWorldLight()
getWorldCreatures(type)
getWorldUpTime()
getGuildId(guildName)
getGuildMotd(guildId)
getPlayerSex(cid[, full = false])
doPlayerSetSex(cid, newSex)
createCombatArea({area}[, {extArea}])
createConditionObject(type[, ticks[, buff[, subId]]])
setCombatArea(combat, area)
setCombatCondition(combat, condition)
setCombatParam(combat, key, value)
setConditionParam(condition, key, value)
addDamageCondition(condition, rounds, time, value)
addOutfitCondition(condition, outfit)
setCombatCallBack(combat, key, function_name)
setCombatFormula(combat, type, mina, minb, maxa, maxb[, minl, maxl[, minm, maxm[, minc[, maxc]]]])
setConditionFormula(combat, mina, minb, maxa, maxb)
doCombat(cid, combat, param)
createCombatObject()
doCombatAreaHealth(cid, type, pos, area, min, max, effect)
doTargetCombatHealth(cid, target, type, min, max, effect)
doCombatAreaMana(cid, pos, area, min, max, effect)
doTargetCombatMana(cid, target, min, max, effect)
doCombatAreaCondition(cid, pos, area, condition, effect)
doTargetCombatCondition(cid, target, condition, effect)
doCombatAreaDispel(cid, pos, area, type, effect)
doTargetCombatDispel(cid, target, type, effect)
doChallengeCreature(cid, target)
numberToVariant(number)
stringToVariant(string)
positionToVariant(pos)
targetPositionToVariant(pos)
variantToNumber(var)
variantToString(var)
variantToPosition(var)
doChangeSpeed(cid, delta)
doCreatureChangeOutfit(cid, outfit)
doSetMonsterOutfit(cid, name[, time = -1])
doSetItemOutfit(cid, item[, time = -1])
doSetCreatureOutfit(cid, outfit[, time = -1])
getCreatureOutfit(cid)
getCreatureLastPosition(cid)
getCreatureName(cid)
getCreatureSpeed(cid)
getCreatureBaseSpeed(cid)
getCreatureTarget(cid)
isSightClear(fromPos, toPos, floorCheck)
isInArray(array, value[, caseSensitive = false])
addEvent(callback, delay, ...)
stopEvent(eventid)
getPlayersByAccountId(accId)
getAccountIdByName(name)
getAccountByName(name)
getAccountIdByAccount(accName)
getAccountByAccountId(accId)
getIpByName(name)
getPlayersByIp(ip[, mask = 0xFFFFFFFF])
doPlayerPopupFYI(cid, message)
doPlayerSendTutorial(cid, id)
doPlayerSendMailByName(name, item[, town[, actor]])
doPlayerAddMapMark(cid, pos, type[, description])
doPlayerAddPremiumDays(cid, days)
getPlayerPremiumDays(cid)
doCreatureSetLookDirection(cid, dir)
getCreatureGuildEmblem(cid[, target])
doCreatureSetGuildEmblem(cid, emblem)
getCreaturePartyShield(cid[, target])
doCreatureSetPartyShield(cid, shield)
getCreatureSkullType(cid[, target])
doCreatureSetSkullType(cid, skull)
getPlayerSkullEnd(cid)
doPlayerSetSkullEnd(cid, time, type)
getPlayerBlessing(cid, blessing)
doPlayerAddBlessing(cid, blessing)
getPlayerStamina(cid)
doPlayerSetStamina(cid, minutes)
getPlayerBalance(cid)
doPlayerSetBalance(cid, balance)
getCreatureNoMove(cid)
doCreatureSetNoMove(cid, block)
getPlayerIdleTime(cid)
doPlayerSetIdleTime(cid, amount)
getPlayerLastLoad(cid)
getPlayerLastLogin(cid)
getPlayerAccountManager(cid)
getPlayerTradeState(cid)
getPlayerModes(cid)
getPlayerRates(cid)
doPlayerSetRate(cid, type, value)
getPlayerPartner(cid)
doPlayerSetPartner(cid, guid)
doPlayerFollowCreature(cid, target)
getPlayerParty(cid)
doPlayerJoinParty(cid, lid)
doPlayerLeaveParty(cid[, forced = false])
doPlayerAddMount(cid, mountId)
doPlayerRemoveMount(cid, mountId)
getPlayerMount(cid, mountId)
doPlayerSetMount(cid, mountId)
doPlayerSetMountStatus(cid, mounted)
getMountInfo([mountId])
getPartyMembers(lid)
getCreatureMaster(cid)
getCreatureSummons(cid)
getTownId(townName)
getTownName(townId)
getTownTemplePosition(townId)
getTownHouses(townId)
getSpectators(centerPos, rangex, rangey[, multifloor = false])
getVocationInfo(id)
getGroupInfo(id[, premium = false])
getVocationList()
getGroupList()
getChannelList()
getTownList()
getWaypointList()
getTalkActionList()
getExperienceStageList()
getItemIdByName(name[, displayError = true])
getItemInfo(itemid)
getItemAttribute(uid, key)
doItemSetAttribute(uid, key, value)
doItemEraseAttribute(uid, key)
getItemWeight(uid[, precise = true])
getItemParent(uid)
hasItemProperty(uid, prop)
hasPlayerClient(cid)
isIpBanished(ip[, mask])
isPlayerBanished(name/guid, type)
isAccountBanished(accountId[, playerId])
doAddIpBanishment(...)
doAddPlayerBanishment(...)
doAddAccountBanishment(...)
doAddNotation(...)
doAddStatement(...)
doRemoveIpBanishment(ip[, mask])
doRemovePlayerBanishment(name/guid, type)
doRemoveAccountBanishment(accountId[, playerId])
doRemoveNotations(accountId[, playerId])
doRemoveStatements(name/guid[, channelId])
getNotationsCount(accountId[, playerId])
getStatementsCount(name/guid[, channelId])
getBanData(value[, type[, param]])
getBanReason(id)
getBanAction(id[, ipBanishment = false])
getBanList(type[, value[, param]])
getExperienceStage(level)
getDataDir()
getLogsDir()
getConfigFile()
getConfigValue(key)
getModList()
getHighscoreString(skillId)
getWaypointPosition(name)
doWaypointAddTemporial(name, pos)
getGameState()
doSetGameState(id)
doExecuteRaid(name)
doCreatureExecuteTalkAction(cid, text[, ignoreAccess = false[, channelId = CHANNEL _DEFAULT]])
doReloadInfo(id[, cid])
doSaveServer([shallow = false])
doCleanHouse(houseId)
doCleanMap()
doRefreshMap()
doGuildAddEnemy(guild, enemy, war, type)
doGuildRemoveEnemy(guild, enemy)
doUpdateHouseAuctions()
loadmodlib(lib)
domodlib(lib)
dodirectory(dir[, recursively = false])getCreatureHealth(cid)
getCreatureMaxHealth(cid[, ignoreModifiers = false])
getCreatureMana(cid)
getCreatureMaxMana(cid[, ignoreModifiers = false])
getCreatureHideHealth(cid)
doCreatureSetHideHealth(cid, hide)
getCreatureSpeakType(cid)
doCreatureSetSpeakType(cid, type)
getCreatureLookDirection(cid)
getPlayerLevel(cid)
getPlayerExperience(cid)
getPlayerMagLevel(cid[, ignoreModifiers = false])
getPlayerSpentMana(cid)
getPlayerFood(cid)
getPlayerAccess(cid)
getPlayerGhostAccess(cid)
getPlayerSkillLevel(cid, skill[, ignoreModifiers = false])
getPlayerSkillTries(cid, skill)
getPlayerTown(cid)
getPlayerVocation(cid)
getPlayerIp(cid)
getPlayerRequiredMana(cid, magicLevel)
getPlayerRequiredSkillTries(cid, skillId, skillLevel)
getPlayerItemCount(cid, itemid[, subType = -1])
getPlayerMoney(cid)
getPlayerSoul(cid[, ignoreModifiers = false])
getPlayerFreeCap(cid)
getPlayerLight(cid)
getPlayerSlotItem(cid, slot)
getPlayerWeapon(cid[, ignoreAmmo = false])
getPlayerItemById(cid, deepSearch, itemId[, subType = -1])
getPlayerDepotItems(cid, depotid)
getPlayerGuildId(cid)
getPlayerGuildName(cid)
getPlayerGuildRankId(cid)
getPlayerGuildRank(cid)
getPlayerGuildNick(cid)
getPlayerGuildLevel(cid)
getPlayerGUID(cid)
getPlayerNameDescription(cid)
doPlayerSetNameDescription(cid, desc)
getPlayerSpecialDescription(cid)
doPlayerSetSpecialDescription(cid, desc)
getPlayerAccountId(cid)
getPlayerAccount(cid)
getPlayerFlagValue(cid, flag)
getPlayerCustomFlagValue(cid, flag)
getPlayerPromotionLevel(cid)
doPlayerSetPromotionLevel(cid, level)
getPlayerGroupId(cid)
doPlayerSetGroupId(cid, newGroupId)
doPlayerSendOutfitWindow(cid)
doPlayerLearnInstantSpell(cid, name)
doPlayerUnlearnInstantSpell(cid, name)
getPlayerLearnedInstantSpell(cid, name)
getPlayerInstantSpellCount(cid)
getPlayerInstantSpellInfo(cid, index)
getInstantSpellInfo(cid, name)
getCreatureStorageList(cid)
getCreatureStorage(uid, key)
doCreatureSetStorage(uid, key, value)
getStorageList()
getStorage(key)
doSetStorage(key, value)
getChannelUsers(channelId)
getPlayersOnline()
getTileInfo(pos)
getThingFromPos(pos[, displayError = true])
getThing(uid[, recursive = RECURSE _FIRST])
doTileQueryAdd(uid, pos[, flags[, displayError = true]])
doItemRaidUnref(uid)
getThingPosition(uid)
getTileItemById(pos, itemId[, subType = -1])
getTileItemByType(pos, type)
getTileThingByPos(pos)
getTopCreature(pos)
doRemoveItem(uid[, count = -1])
doPlayerFeed(cid, food)
doPlayerSendCancel(cid, text)
doPlayerSendDefaultCancel(cid, ReturnValue)
getSearchString(fromPosition, toPosition[, fromIsCreature = false[, toIsCreature = false]])
getClosestFreeTile(cid, targetpos[, extended = false[, ignoreHouse = true]])
doTeleportThing(cid, newpos[, pushmove = true[, fullTeleport = true]])
doTransformItem(uid, newId[, count/subType])
doCreatureSay(uid, text[, type = SPEAK _SAY[, ghost = false[, cid = 0[, pos]]]])
doSendCreatureSquare(cid, color[, player])
doSendMagicEffect(pos, type[, player])
doSendDistanceShoot(fromPos, toPos, type[, player])
doSendAnimatedText(pos, text, color[, player])
doPlayerAddSkillTry(cid, skillid, n[, useMultiplier = true])
doCreatureAddHealth(cid, health[, hitEffect[, hitColor[, force]]])
doCreatureAddMana(cid, mana)
setCreatureMaxHealth(cid, health)
setCreatureMaxMana(cid, mana)
doPlayerSetMaxCapacity(cid, cap)
doPlayerAddSpentMana(cid, amount[, useMultiplier = true])
doPlayerAddSoul(cid, amount)
doPlayerAddItem(cid, itemid[, count/subtype = 1[, canDropOnMap = true[, slot = 0]]])
doPlayerAddItem(cid, itemid[, count = 1[, canDropOnMap = true[, subtype = 1[, slot = 0]]]])
doPlayerAddItemEx(cid, uid[, canDropOnMap = false[, slot = 0]])
doPlayerSendTextMessage(cid, MessageClasses, message)
doPlayerSendChannelMessage(cid, author, message, SpeakClasses, channel)
doPlayerSendToChannel(cid, targetId, SpeakClasses, message, channel[, time])
doPlayerOpenChannel(cid, channelId)
doPlayerAddMoney(cid, money)
doPlayerRemoveMoney(cid, money)
doPlayerTransferMoneyTo(cid, target, money)
doShowTextDialog(cid, itemid, text)
doDecayItem(uid)
doCreateItem(itemid[, type/count], pos)
doCreateItemEx(itemid[, count/subType = -1])
doTileAddItemEx(pos, uid)
doAddContainerItemEx(uid, virtuid)
doRelocate(pos, posTo[, creatures = true[, unmovable = true]])
doCleanTile(pos[, forceMapLoaded = false])
doCreateTeleport(itemid, topos, createpos)
doCreateMonster(name, pos[, extend = false[, force = false[, displayError = true]]])
doCreateNpc(name, pos[, displayError = true])
doSummonMonster(cid, name)
doConvinceCreature(cid, target)
getMonsterTargetList(cid)
getMonsterFriendList(cid)
doMonsterSetTarget(cid, target)
doMonsterChangeTarget(cid)
getMonsterInfo(name)
doAddCondition(cid, condition)
doRemoveCondition(cid, type[, subId])
doRemoveConditions(cid[, onlyPersistent])
doRemoveCreature(cid[, forceLogout = true])
doMoveCreature(cid, direction[, flag = FLAG _NOLIMIT])
doSteerCreature(cid, position)
doPlayerSetPzLocked(cid, locked)
doPlayerSetTown(cid, townid)
doPlayerSetVocation(cid,voc)
doPlayerRemoveItem(cid, itemid[, count[, subType = -1]])
doPlayerAddExperience(cid, amount)
doPlayerSetGuildId(cid, id)
doPlayerSetGuildLevel(cid, level[, rank])
doPlayerSetGuildNick(cid, nick)
doPlayerAddOutfit(cid, looktype, addon)
doPlayerRemoveOutfit(cid, looktype[, addon = 0])
doPlayerAddOutfitId(cid, outfitId, addon)
doPlayerRemoveOutfitId(cid, outfitId[, addon = 0])
canPlayerWearOutfit(cid, looktype[, addon = 0])
canPlayerWearOutfitId(cid, outfitId[, addon = 0])
getCreatureCondition(cid, condition[, subId = 0])
doCreatureSetDropLoot(cid, doDrop)
getPlayerLossPercent(cid, lossType)
doPlayerSetLossPercent(cid, lossType, newPercent)
doPlayerSetLossSkill(cid, doLose)
getPlayerLossSkill(cid)
doPlayerSwitchSaving(cid)
doPlayerSave(cid[, shallow = false])
isPlayerPzLocked(cid)
isPlayerSaving(cid)
isCreature(cid)
isMovable(uid)
getCreatureByName(name)
getPlayerByGUID(guid)
getPlayerByNameWildcard(name~[, ret = false])
getPlayerGUIDByName(name[, multiworld = false])
getPlayerNameByGUID(guid[, multiworld = false[, displayError = true]])
doPlayerChangeName(guid, oldName, newName)
registerCreatureEvent(uid, eventName)
unregisterCreatureEvent(uid, eventName)
getContainerSize(uid)
getContainerCap(uid)
getContainerItem(uid, slot)
doAddContainerItem(uid, itemid[, count/subType = 1])
getHouseInfo(houseId[, displayError = true])
getHouseAccessList(houseid, listId)
getHouseByPlayerGUID(playerGUID)
getHouseFromPos(pos)
setHouseAccessList(houseid, listid, listtext)
setHouseOwner(houseId, owner[, clean])
getWorldType()
setWorldType(type)
getWorldTime()
getWorldLight()
getWorldCreatures(type)
getWorldUpTime()
getGuildId(guildName)
getGuildMotd(guildId)
getPlayerSex(cid[, full = false])
doPlayerSetSex(cid, newSex)
createCombatArea({area}[, {extArea}])
createConditionObject(type[, ticks[, buff[, subId]]])
setCombatArea(combat, area)
setCombatCondition(combat, condition)
setCombatParam(combat, key, value)
setConditionParam(condition, key, value)
addDamageCondition(condition, rounds, time, value)
addOutfitCondition(condition, outfit)
setCombatCallBack(combat, key, function_name)
setCombatFormula(combat, type, mina, minb, maxa, maxb[, minl, maxl[, minm, maxm[, minc[, maxc]]]])
setConditionFormula(combat, mina, minb, maxa, maxb)
doCombat(cid, combat, param)
createCombatObject()
doCombatAreaHealth(cid, type, pos, area, min, max, effect)
doTargetCombatHealth(cid, target, type, min, max, effect)
doCombatAreaMana(cid, pos, area, min, max, effect)
doTargetCombatMana(cid, target, min, max, effect)
doCombatAreaCondition(cid, pos, area, condition, effect)
doTargetCombatCondition(cid, target, condition, effect)
doCombatAreaDispel(cid, pos, area, type, effect)
doTargetCombatDispel(cid, target, type, effect)
doChallengeCreature(cid, target)
numberToVariant(number)
stringToVariant(string)
positionToVariant(pos)
targetPositionToVariant(pos)
variantToNumber(var)
variantToString(var)
variantToPosition(var)
doChangeSpeed(cid, delta)
doCreatureChangeOutfit(cid, outfit)
doSetMonsterOutfit(cid, name[, time = -1])
doSetItemOutfit(cid, item[, time = -1])
doSetCreatureOutfit(cid, outfit[, time = -1])
getCreatureOutfit(cid)
getCreatureLastPosition(cid)
getCreatureName(cid)
getCreatureSpeed(cid)
getCreatureBaseSpeed(cid)
getCreatureTarget(cid)
isSightClear(fromPos, toPos, floorCheck)
isInArray(array, value[, caseSensitive = false])
addEvent(callback, delay, ...)
stopEvent(eventid)
getPlayersByAccountId(accId)
getAccountIdByName(name)
getAccountByName(name)
getAccountIdByAccount(accName)
getAccountByAccountId(accId)
getIpByName(name)
getPlayersByIp(ip[, mask = 0xFFFFFFFF])
doPlayerPopupFYI(cid, message)
doPlayerSendTutorial(cid, id)
doPlayerSendMailByName(name, item[, town[, actor]])
doPlayerAddMapMark(cid, pos, type[, description])
doPlayerAddPremiumDays(cid, days)
getPlayerPremiumDays(cid)
doCreatureSetLookDirection(cid, dir)
getCreatureGuildEmblem(cid[, target])
doCreatureSetGuildEmblem(cid, emblem)
getCreaturePartyShield(cid[, target])
doCreatureSetPartyShield(cid, shield)
getCreatureSkullType(cid[, target])
doCreatureSetSkullType(cid, skull)
getPlayerSkullEnd(cid)
doPlayerSetSkullEnd(cid, time, type)
getPlayerBlessing(cid, blessing)
doPlayerAddBlessing(cid, blessing)
getPlayerStamina(cid)
doPlayerSetStamina(cid, minutes)
getPlayerBalance(cid)
doPlayerSetBalance(cid, balance)
getCreatureNoMove(cid)
doCreatureSetNoMove(cid, block)
getPlayerIdleTime(cid)
doPlayerSetIdleTime(cid, amount)
getPlayerLastLoad(cid)
getPlayerLastLogin(cid)
getPlayerAccountManager(cid)
getPlayerTradeState(cid)
getPlayerModes(cid)
getPlayerRates(cid)
doPlayerSetRate(cid, type, value)
getPlayerPartner(cid)
doPlayerSetPartner(cid, guid)
doPlayerFollowCreature(cid, target)
getPlayerParty(cid)
doPlayerJoinParty(cid, lid)
doPlayerLeaveParty(cid[, forced = false])
doPlayerAddMount(cid, mountId)
doPlayerRemoveMount(cid, mountId)
getPlayerMount(cid, mountId)
doPlayerSetMount(cid, mountId)
doPlayerSetMountStatus(cid, mounted)
getMountInfo([mountId])
getPartyMembers(lid)
getCreatureMaster(cid)
getCreatureSummons(cid)
getTownId(townName)
getTownName(townId)
getTownTemplePosition(townId)
getTownHouses(townId)
getSpectators(centerPos, rangex, rangey[, multifloor = false])
getVocationInfo(id)
getGroupInfo(id[, premium = false])
getVocationList()
getGroupList()
getChannelList()
getTownList()
getWaypointList()
getTalkActionList()
getExperienceStageList()
getItemIdByName(name[, displayError = true])
getItemInfo(itemid)
getItemAttribute(uid, key)
doItemSetAttribute(uid, key, value)
doItemEraseAttribute(uid, key)
getItemWeight(uid[, precise = true])
getItemParent(uid)
hasItemProperty(uid, prop)
hasPlayerClient(cid)
isIpBanished(ip[, mask])
isPlayerBanished(name/guid, type)
isAccountBanished(accountId[, playerId])
doAddIpBanishment(...)
doAddPlayerBanishment(...)
doAddAccountBanishment(...)
doAddNotation(...)
doAddStatement(...)
doRemoveIpBanishment(ip[, mask])
doRemovePlayerBanishment(name/guid, type)
doRemoveAccountBanishment(accountId[, playerId])
doRemoveNotations(accountId[, playerId])
doRemoveStatements(name/guid[, channelId])
getNotationsCount(accountId[, playerId])
getStatementsCount(name/guid[, channelId])
getBanData(value[, type[, param]])
getBanReason(id)
getBanAction(id[, ipBanishment = false])
getBanList(type[, value[, param]])
getExperienceStage(level)
getDataDir()
getLogsDir()
getConfigFile()
getConfigValue(key)
getModList()
getHighscoreString(skillId)
getWaypointPosition(name)
doWaypointAddTemporial(name, pos)
getGameState()
doSetGameState(id)
doExecuteRaid(name)
doCreatureExecuteTalkAction(cid, text[, ignoreAccess = false[, channelId = CHANNEL _DEFAULT]])
doReloadInfo(id[, cid])
doSaveServer([shallow = false])
doCleanHouse(houseId)
doCleanMap()
doRefreshMap()
doGuildAddEnemy(guild, enemy, war, type)
doGuildRemoveEnemy(guild, enemy)
doUpdateHouseAuctions()
loadmodlib(lib)
domodlib(lib)
dodirectory(dir[, recursively = false])
  • Lua made functions - Funções feitas em lua (data/lib)
doPlayerGiveItem(cid, itemid, amount, subType)
doPlayerGiveItemContainer(cid, containerid, itemid, amount, subType)
doPlayerTakeItem(cid, itemid, amount)
doPlayerBuyItem(cid, itemid, count, cost, charges)
doPlayerBuyItemContainer(cid, containerid, itemid, count, cost, charges)
doPlayerSellItem(cid, itemid, count, cost)
doPlayerWithdrawMoney(cid, amount)
doPlayerDepositMoney(cid, amount)
doPlayerAddStamina(cid, minutes)
isPremium(cid)
getMonthDayEnding(day)
getMonthString(m)
getArticle(str)
isNumeric(str)
doNumberFormat(i)
doPlayerAddAddons(cid, addon)
doPlayerWithdrawAllMoney(cid)
doPlayerDepositAllMoney(cid)
doPlayerTransferAllMoneyTo(cid, target)
playerExists(name)
getTibiaTime()
doWriteLogFile(file, text)
getExperienceForLevel(lv)
doMutePlayer(cid, time)
getPlayerGroupName(cid)
getPlayerVocationName(cid)
getPromotedVocation(vid)
doPlayerRemovePremiumDays(cid, days)
getPlayerMasterPos(cid)
getHouseOwner(houseId)
getHouseName(houseId)
getHouseEntry(houseId)
getHouseRent(houseId)
getHousePrice(houseId)
getHouseTown(houseId)
getHouseDoorsCount(houseId)
getHouseBedsCount(houseId)
getHouseTilesCount(houseId)
getItemNameById(itemid)
getItemPluralNameById(itemid)
getItemArticleById(itemid)
getItemName(uid)
getItemPluralName(uid)
getItemArticle(uid)
getItemText(uid)
getItemSpecialDescription(uid)
getItemWriter(uid)
getItemDate(uid)
getTilePzInfo(pos)
getTileZoneInfo(pos)
doShutdown()
doSummonCreature(name, pos, displayError)
getOnlinePlayers()
getPlayerByName(name)
isPlayer(cid)
isPlayerGhost(cid)
isMonster(cid)
isNpc(cid)
doPlayerSetExperienceRate(cid, value)
doPlayerSetMagicRate(cid, value)
doPlayerAddLevel(cid, amount, round)
doPlayerAddMagLevel(cid, amount)
doPlayerAddSkill(cid, skill, amount, round)
getPartyLeader(cid)
isInParty(cid)
isPrivateChannel(channelId)
doPlayerResetIdleTime(cid)
doBroadcastMessage(text, class)
doPlayerBroadcastMessage(cid, text, class, checkFlag, ghost)
getBooleanFromString(input)
doCopyItem(item, attributes)
doRemoveThing(uid)
setAttackFormula(combat, type, minl, maxl, minm, maxm, min, max)
setHealingFormula(combat, type, minl, maxl, minm, maxm, min, max)
doChangeTypeItem(uid, subtype)
doSetItemText(uid, text, writer, date)
doItemSetActionId(uid, aid)
getFluidSourceType(itemid)
getDepotId(uid)
getItemDescriptions(uid)
getItemWeightById(itemid, count, precision)
getItemWeaponType(uid)
getItemRWInfo(uid)
getItemLevelDoor(itemid)
isContainer(uid)
isItemStackable(itemid)
isItemRune(itemid)
isItemDoor(itemid)
isItemContainer(itemid)
isItemFluidContainer(itemid)
isItemMovable(itemid)
isCorpse(uid)
getContainerCapById(itemid)
getMonsterAttackSpells(name)
getMonsterHealingSpells(name)
getMonsterLootList(name)
getMonsterSummonList(name)
choose(...)
exhaustion.check(cid, storage)
exhaustion.get(cid, storage)
exhaustion.set(cid, storage, time)
exhaustion.make(cid, storage, time)
doConvertIntegerToIp(int, mask)
doConvertIpToInteger(str)
doRevertIp(str)
isInRange(position, fromPosition, toPosition)
getDistanceBetween(fromPosition, toPosition)
getDirectionTo(pos1, pos2)
getCreatureLookPosition(cid)
getPositionByDirection(position, direction, size)
doComparePositions(position, positionEx)
getArea(position, x, y)
Position(x, y, z, stackpos)
isValidPosition(position)
isSorcerer(cid)
isDruid(cid)
isPaladin(cid)
isKnight(cid)
isRookie(cid)
string.split(str)
string.trim(str)
string.explode(str, sep, limit)
string.expand(str)
string.timediff(diff)
  • Compats (data/lib/100-compat.lua)
doSetCreatureDropLoot = doCreatureSetDropLoot
doPlayerSay = doCreatureSay
doPlayerAddMana = doCreatureAddMana
playerLearnInstantSpell = doPlayerLearnInstantSpell
doPlayerRemOutfit = doPlayerRemoveOutfit
pay = doPlayerRemoveMoney
broadcastMessage = doBroadcastMessage
getPlayerName = getCreatureName
getCreaturePosition = getThingPosition
getPlayerPosition = getCreaturePosition
getCreaturePos = getCreaturePosition
creatureGetPosition = getCreaturePosition
getPlayerMana = getCreatureMana
getPlayerMaxMana = getCreatureMaxMana
hasCondition = hasCreatureCondition
getCreatureCondition = hasCreatureCondition
isMoveable = isMovable
isItemMoveable = isItemMovable
saveData = saveServer
savePlayers = saveServer
getPlayerSkill = getPlayerSkillLevel
getPlayerSkullType = getCreatureSkullType
getCreatureSkull = getCreatureSkullType
getAccountNumberByName = getAccountIdByName
getIPByName = getIpByName
getPlayersByIP = getPlayersByIp
getThingFromPos = getThingFromPosition
getThingfromPos = getThingFromPos
getHouseFromPos = getHouseFromPosition
getPlayersByAccountNumber = getPlayersByAccountId
getIPByPlayerName = getIpByName
getPlayersByIPNumber = getPlayersByIp
getAccountNumberByPlayerName = getAccountIdByName
convertIntToIP = doConvertIntegerToIp
convertIPToInt = doConvertIpToInteger
queryTileAddThing = doTileQueryAdd
getTileHouseInfo = getHouseFromPos
executeRaid = doExecuteRaid
saveServer = doSaveServer
cleanHouse = doCleanHouse
cleanMap = doCleanMap
shutdown = doShutdown
mayNotMove = doCreatureSetNoMove
getTileItemsByType = getTileItemByType
doPlayerSetNoMove = doCreatureSetNoMove
getPlayerNoMove = getCreatureNoMove
getConfigInfo = getConfigValue
doPlayerAddExp = doPlayerAddExperience
isInArea = isInRange
doPlayerSetSkillRate = doPlayerSetRate
getCreatureLookDir = getCreatureLookDirection
getPlayerLookDir = getCreatureLookDirection
getPlayerLookDirection = getCreatureLookDirection
doCreatureSetLookDir = doCreatureSetLookDirection
getPlayerLookPos = getCreatureLookPosition
setPlayerStamina = doPlayerSetStamina
setPlayerPromotionLevel = doPlayerSetPromotionLevel
setPlayerGroupId = doPlayerSetGroupId
setPlayerPartner = doPlayerSetPartner
doPlayerSetStorageValue = doCreatureSetStorage
setPlayerStorageValue = doPlayerSetStorageValue
getPlayerStorageValue = getCreatureStorage
getGlobalStorageValue = getStorage
setGlobalStorageValue = doSetStorage
getPlayerMount = canPlayerRideMount
setPlayerBalance = doPlayerSetBalance
doAddMapMark = doPlayerAddMapMark
doSendTutorial = doPlayerSendTutorial
getWaypointsList = getWaypointList
getPlayerLastLoginSaved = getPlayerLastLogin
getThingPos = getThingPosition
doAreaCombatHealth = doCombatAreaHealth
doAreaCombatMana = doCombatAreaMana
doAreaCombatCondition = doCombatAreaCondition
doAreaCombatDispel = doCombatAreaDispel
getItemDescriptionsById = getItemInfo
hasProperty = hasItemProperty
hasClient = hasPlayerClient
print = std.cout
getPosByDir = getPositionByDirection
isNumber = isNumeric
doSetItemActionId = doItemSetActionId
getOnlinePlayers = getPlayersOnlineEx
addDialog = doPlayerAddDialog
doSendPlayerExtendedOpcode = doPlayerSendExtendedOpcode

 
 
Créditos:
Zonnebloem

Compartilhar este post


Link para o post
Compartilhar em outros sites

Sempre bom ter isso em maos.

Dani, tem como eu editar seu topico? Tava pensando em ir adicionando qos poucos o que faz e como funciona cada função.

Compartilhar este post


Link para o post
Compartilhar em outros sites

@@Skulls, putz cara... Ia dar um trabalho desgramado pra explicar cada função dessa, mas fico feliz em ver que vc está disposto a fazer isso.

Soluções para o que vc propôs: vc pode ir comentando aqui aos poucos o que vc gostaria de implementar no topico ou vc pode criar outro(s) tópico(s) para ficar do jeito que vc quer.

Caso vc opte por fazer outro(s) tópico(s), não esqueça de deixar muuuuito bem organizado, sucinto, e caso ache que seja cabível, pode citar este tópico aqui no final do(s) seu(s) tópico(s), afinal aqui estão tds as funções dispostas da forma mais compacta possível... ssahusauhas

Compartilhar este post


Link para o post
Compartilhar em outros sites

@@Skulls, putz cara... Ia dar um trabalho desgramado pra explicar cada função dessa, mas fico feliz em ver que vc está disposto a fazer isso.

 

Soluções para o que vc propôs: vc pode ir comentando aqui aos poucos o que vc gostaria de implementar no topico ou vc pode criar outro(s) tópico(s) para ficar do jeito que vc quer.

 

Caso vc opte por fazer outro(s) tópico(s), não esqueça de deixar muuuuito bem organizado, sucinto, e caso ache que seja cabível, pode citar este tópico aqui no final do(s) seu(s) tópico(s), afinal aqui estão tds as funções dispostas da forma mais compacta possível... ssahusauhas

Ia mesmo ahuehuae.. mas é pq tem umas funções que são auto-explicativas, mas tem umas que tem umas picuinhas bem chatas que se o cara nao ta acostumado ele custa a entender o real proposito dela. xD Se eu animar de fazer eu sigo uma dessas sugestoes :)

Compartilhar este post


Link para o post
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

Entre para seguir isso  

  • Conteúdo Similar

    • Por Emooooo
      [01/04/2019 20:22:33] [Error - GlobalEvent Interface] 
      [01/04/2019 20:22:33] data/globalevents/scripts/record.lua:onRecord
      [01/04/2019 20:22:33] Description: 
      [01/04/2019 20:22:33] data/globalevents/scripts/record.lua:2: attempt to call field 'executeQuery' (a nil value)
      [01/04/2019 20:22:33] stack traceback:
      [01/04/2019 20:22:33]     data/globalevents/scripts/record.lua:2: in function <data/globalevents/scripts/record.lua:1>
       
       
      ALGUÉM AJUDA AE ! PLIS 
      +REP
    • Por JulianoZN
      Então eu tinha esse script de carpet em transform_to a bastante tempo desde 2016, mais simples
      Então então estou postando hoje
       
      Vamos ao Assunto.
       
      vai em data "datapack"/actions/scripts
      Crie um arquivo chamado carpet.lua
      coloque isso
      Please login or register to see this spoiler.
       
      Carpet fechado

       
      Carpet aberto

       
       
       
      DONO: PokemonZbr  ( Online )
      DONO: OtPokemonTvZ  ( Offline ) 
       
      Links do meu jogo

      Please login or register to see this link.
       (Online)  

      Please login or register to see this link.
       (Offline)  
      Eu sou:
      Scripter: 5%
      Mapper: 30%
      Programador: 4%
      Website : 50%
    • Por wizav01
      Versão do Servidor: TFS - 0.4 Tipo de Script: spell Código: Please login or register to see this spoiler.
      boa rapeize, alguem pode ajudar, como faço uma spell, que ela sejá apenas para o knight, ou vocation 4 - 8...
      eu não quero escrever ela e ativar, quero que ela seja propria do personagem sem escrever nada sem ativar...

      bom seguinte, quando o knight tiver com vida menor que 30% do total da vida dele... ele ganha + 20 de skill, axe sword e club... tem como alguém ajudar ? 
      lembrando, eu não quero ativar ela igual utito tempo, e não quero que tenha um tempo determinado, quero que seja do personagem... ta com -30% de life ele ganha skill... 
      agradeço desde já !
    • Por Yan Liima
      #Introdução
      Bom hoje estarei trazendo aqui o sistema de Ping feito pelo Mock, com uma pequena adaptação feita por mim para funcionar em TFS 0.4(talvez podendo funcionar em outras)
      Pois o que ele disponibilizou foi apenas para TFS 0.3.6 e nem foi muito utilizado pela comunidade. Muitos servidores daqui para download tem script no talk mas a lib está totalmente errada e não tem o code nas sources.
      Esse sistema tem varias utilizades, podendo usar o comando !ping para verificar seu ms ou até mesmo você por para kikar jogadores com ms muito alto...
      Se você não sabe o cliente já tem um sistema de ping, e getOtsystime é como os.time () + os.clock (), você tem ano, mês, dia, hora, minutos, segundos, milisegundos...
      Enfim chega de enrolação e vamos lá!
      Code para TFS 0.4 e OTX:
      Please login or register to see this spoiler.
       
      Prontinho, agora seu servidor está pronto para utilizar as funções de Ping. Seja criativo!
      Ahh você é daqueles que quer tudo na mão né? Aqui vai um talkactions para ver o ping.
       
      Em talkactions/scripts crie um arquivo chamado playerping.lua, cole isto dentro:
      -- Script by Yan Liima(Night for xtibia.com) function onSay(cid, words, param, channel) local ms = ping.CheckPing(cid) doPlayerSendTextMessage(cid,22,"Ping aproximado --> ["..ms.."].") return true end Em talkactions.xml
      <talkaction words="!ping" event="script" value="playerping.lua"/>  
    • Por Togumelo
      The Forgotten Tibia
       
      <Test Server está acontecendo!>

      Please login or register to see this link.
       
      Por que esse nome?
      É baseado no The Forgotten Server (e no OTClient)
      Parece que muita gente esqueceu que o Tibia podia ser assim
       
      Assim como?
      Avanço de skills por distribuição de pontos
       
      Como funciona?
       
      - Vocações:
      Não existirão. Todo mundo será um simples humano.
       
      - Skills:
      Magic: + Spell Power, + Rune Power, + 15 Mana (costs 3 points)
      Vitality: +15 Health
      Strenght: + Melee Damage, + Distance Damage, + 5 Capacity
      Resistance: + Shield Defence, +5 Health
      Dexterity: + Distance Damage, +0.25 Walk Speed, +0.25% Attack Speed
      Intelligence: +1% Wand's Maximum Damage, + Attack Spells, +10 Mana
      Faith: +2% Rod's Maximum Damage, + Support and Healing Spells, +10 Mana
      Endurance: +15 Capacity, +5 Health
       
      - Ganho de skill points:
      Do level 1 ao 8 - a cada level ganha 2 pontos
      Do level 8 ao 40 - a cada level ganha 4 pontos
      Do level 40 ao 60 - a cada level ganha 3 pontos
      Do level 60 ao 80 - a cada level ganha 2 pontos
      Do level 80 ao 100 - a cada level ganha 1 pontos
      Do level 100 em diante - a cada 2 levels ganha 1 ponto
       

       
      - New config.lua options:
      -- Skill Gain magicManaGain = 15 vitalityHealthGain = 15 strenghtHealthGain = 0 strenghtCapGain = 5 * 100 resistanceHealthGain = 5 resistanceCapGain = 0 * 100 intelligenceManaGain = 10 faithManaGain = 10 enduranceCapGain = 15 * 100 enduranceHealthGain = 5 -- DUAL WIELDING (75 = 75% of single weapon damage) allowDualWielding = true dualWieldingDamageRate = 70 -- SHIELDS (default: 100 resistance, 0 dexterity) -- Shield formula: defenseSkill = (RESISTANCE * shieldResistanceFactor / 100) + (DEXTERITY * shieldDexterityFactor / 100); shieldResistanceFactor = 100 shieldDexterityFactor = 0 -- DISTANCE WEAPONS (default: 100 dexterity, 0 strenght) -- Spear formula: attackSkill = (STRENGHT * spearStrenghtFactor / 100) + (DEXTERITY * spearDexterityFactor / 100); -- Bow formula: attackSkill = (STRENGHT * bowStrenghtFactor / 100) + (DEXTERITY * bowDexterityFactor / 100); spearDexterityFactor = 100 spearStrenghtFactor = 0 bowDexterityFactor = 75 bowStrenghtFactor = 50 -- WANDS and RODS (default: 0 int, 0 faith, 0 magic) -- Rod formula: maxDamage = maxDamage + (maxDamage * (FAITH - 8 / 100) * (rodFaithFactor / 100) + (MAGIC * magicWandRodFactor / 100); -- Wand formula: maxDamage = maxDamage + (maxDamage * (INTTELIGENCE - 8 / 100) * (wandIntFactor / 100) + (MAGIC * magicWandRodFactor / 100); rodFaithFactor = 200 wandIntelligenceFactor = 100 magicWandRodFactor = 0  
       
×
×
  • Criar Novo...