Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Funções 0.X
- -- Legenda
- -- cid = creatureId (ID DA CRIATURA)
- -- uid = unique id (ID UNICO, ITENS E CRIATURA POSSUEM ESSE ID)
- -- pos -> posição {x,y,z}
- -- channelId -> ID DO CANAL
- -- Creature
- getCreatureHealth(cid)
- getCreatureMaxHealth(cid[, ignoreModifiers = false])
- getCreatureMana(cid)
- getCreatureMaxMana(cid[, ignoreModifiers = false])
- getCreatureHideHealth(cid)
- doCreatureSetHideHealth(cid, hide)
- getCreatureSpeakType(cid)
- doCreatureSetSpeakType(cid, type)
- getCreatureLookDirection(cid)
- getInstantSpellInfo(cid, name)
- getCreatureStorageList(cid)
- getCreatureStorage(uid, key)
- doCreatureSetStorage(uid, key, value)
- doCreatureSay(uid, text[, type = SPEAK _SAY[, ghost = false[, cid = 0[, pos]]]])
- doSendCreatureSquare(cid, color[, player])
- doCreatureAddHealth(cid, health[, hitEffect[, hitColor[, force]]])
- doCreatureAddMana(cid, mana)
- setCreatureMaxHealth(cid, health)
- setCreatureMaxMana(cid, mana)
- doSummonMonster(cid, name)
- doConvinceCreature(cid, target)
- doCreatureExecuteTalkAction(cid, text[, ignoreAccess = false[, channelId = CHANNEL _DEFAULT]])
- getCreatureByName(name)
- registerCreatureEvent(uid, eventName)
- unregisterCreatureEvent(uid, eventName)
- doCreatureSetDropLoot(cid, doDrop)
- doCreatureSetLookDirection(cid, dir)
- getCreatureGuildEmblem(cid[, target])
- doCreatureSetGuildEmblem(cid, emblem)
- getCreaturePartyShield(cid[, target])
- doCreatureSetPartyShield(cid, shield)
- getCreatureSkullType(cid[, target])
- doCreatureSetSkullType(cid, skull)
- getCreatureNoMove(cid)
- doCreatureSetNoMove(cid, block)
- getCreatureOutfit(cid)
- getCreatureLastPosition(cid)
- getCreatureName(cid)
- getCreatureSpeed(cid)
- getCreatureBaseSpeed(cid)
- getCreatureTarget(cid)
- doChangeSpeed(cid, delta)
- doCreatureChangeOutfit(cid, outfit)
- doSetCreatureOutfit(cid, outfit[, time = -1])
- doSetMonsterOutfit(cid, name[, time = -1])
- doSetItemOutfit(cid, item[, time = -1])
- getCreatureMaster(cid)
- getCreatureSummons(cid)
- -- Player
- 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)
- doPlayerFeed(cid, food)
- doPlayerSendCancel(cid, text)
- doPlayerSendDefaultCancel(cid, ReturnValue)
- doPlayerAddSkillTry(cid, skillid, n[, useMultiplier = true])
- 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)
- doPlayerPopupFYI(cid, message)
- doPlayerSendTutorial(cid, id)
- doPlayerSendMailByName(name, item[, town[, actor]])
- doPlayerAddMapMark(cid, pos, type[, description])
- doPlayerAddPremiumDays(cid, days)
- getPlayerPremiumDays(cid)
- 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)
- getPlayerByNameWildcard(name~[, ret = false])
- getPlayerGUIDByName(name[, multiworld = false])
- getPlayerNameByGUID(guid[, multiworld = false[, displayError = true]])
- doPlayerChangeName(guid, oldName, newName)
- 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])
- getPlayerLossPercent(cid, lossType)
- doPlayerSetLossPercent(cid, lossType, newPercent)
- doPlayerSetLossSkill(cid, doLose)
- getPlayerLossSkill(cid)
- doPlayerSwitchSaving(cid)
- doPlayerSave(cid[, shallow = false])
- isPlayerPzLocked(cid)
- isPlayerSaving(cid)
- getPlayerByGUID(guid)
- getPlayerSex(cid[, full = false])
- doPlayerSetSex(cid, newSex)
- getPlayerSkullEnd(cid)
- doPlayerSetSkullEnd(cid, time, type)
- getPlayerBlessing(cid, blessing)
- doPlayerAddBlessing(cid, blessing)
- getPlayerStamina(cid)
- doPlayerSetStamina(cid, minutes)
- getPlayerBalance(cid)
- doPlayerSetBalance(cid, balance)
- -- Party
- getPartyMembers(lid)
- -- Account
- getAccountIdByName(name)
- getAccountByName(name)
- getAccountIdByAccount(accName)
- getAccountByAccountId(accId)
- getPlayersByAccountId(accId)
- -- Ban
- getBanData(value[, type[, param]])
- getBanReason(id)
- getBanAction(id[, ipBanishment = false])
- getBanList(type[, value[, param]])
- 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])
- -- Guild
- doGuildAddEnemy(guild, enemy, war, type)
- doGuildRemoveEnemy(guild, enemy)
- getGuildId(guildName)
- getGuildMotd(guildId)
- -- Storage
- getStorageList()
- getStorage(key)
- doSetStorage(key, value)
- setPlayerStorageValue
- -- OT
- getPlayersOnline()
- getPlayersByIp(ip[, mask = 0xFFFFFFFF])
- getExperienceStage(level)
- getGameState()
- doSetGameState(id)
- getWorldType()
- setWorldType(type)
- getWorldTime()
- getWorldLight()
- getWorldCreatures(type)
- getWorldUpTime()
- getVocationList()
- getGroupList()
- getChannelList()
- getTownList()
- getWaypointList()
- getTalkActionList()
- getExperienceStageList()
- doSaveServer([shallow = false])
- doUpdateHouseAuctions()
- isCreature(cid)
- isMovable(uid)
- hasPlayerClient(cid)
- getHighscoreString(skillId)
- getVocationInfo(id)
- getGroupInfo(id[, premium = false])
- getIpByName(name)
- getMountInfo([mountId])
- -- Lua Utils
- isInArray(array, value[, caseSensitive = false])
- -- Events
- addEvent(callback, delay, ...)
- stopEvent(eventid)
- -- Channel
- getChannelUsers(channelId)
- -- Item
- doItemRaidUnref(uid)
- doRemoveItem(uid[, count = -1])
- doTransformItem(uid, newId[, count/subType])
- doDecayItem(uid)
- doCreateItem(itemid[, type/count], pos)
- doCreateItemEx(itemid[, count/subType = -1])
- 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)
- -- Container
- doAddContainerItemEx(uid, virtuid)
- getContainerSize(uid)
- getContainerCap(uid)
- getContainerItem(uid, slot)
- doAddContainerItem(uid, itemid[, count/subType = 1])
- -- Raids
- doExecuteRaid(name)
- -- Map
- getTileInfo(pos)
- getThingFromPos(pos[, displayError = true])
- getThing(uid[, recursive = RECURSE _FIRST])
- doTileQueryAdd(uid, pos[, flags[, displayError = true]])
- getThingPosition(uid)
- getTileItemById(pos, itemId[, subType = -1])
- getTileItemByType(pos, type)
- getTileThingByPos(pos)
- getTopCreature(pos)
- getClosestFreeTile(cid, targetpos[, extended = false[, ignoreHouse = true]])
- doTeleportThing(cid, newpos[, pushmove = true[, fullTeleport = true]])
- doSendMagicEffect(pos, type[, player])
- doSendDistanceShoot(fromPos, toPos, type[, player])
- doSendAnimatedText(pos, text, color[, player])
- doTileAddItemEx(pos, uid)
- 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])
- doCleanHouse(houseId)
- doCleanMap()
- doRefreshMap()
- doMoveCreature(cid, direction[, flag = FLAG _NOLIMIT])
- doSteerCreature(cid, position)
- getSpectators(centerPos, rangex, rangey[, multifloor = false])
- isSightClear(fromPos, toPos, floorCheck)
- getTownId(townName)
- getTownName(townId)
- getTownTemplePosition(townId)
- getTownHouses(townId)
- -- Waypoints
- getWaypointPosition(name)
- doWaypointAddTemporial(name, pos)
- -- Condition & Combat
- doAddCondition(cid, condition)
- doRemoveCondition(cid, type[, subId])
- doRemoveConditions(cid[, onlyPersistent])
- doRemoveCreature(cid[, forceLogout = true])
- getCreatureCondition(cid, condition[, subId = 0])
- 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)
- -- Message
- doShowTextDialog(cid, itemid, text)
- -- Engine
- loadmodlib(lib)
- domodlib(lib)
- dodirectory(dir[, recursively = false])
- getDataDir()
- getLogsDir()
- getConfigFile()
- getConfigValue(key)
- getModList()
- doReloadInfo(id[, cid])
- -- House
- getHouseInfo(houseId[, displayError = true])
- getHouseAccessList(houseid, listId)
- getHouseByPlayerGUID(playerGUID)
- getHouseFromPos(pos)
- setHouseAccessList(houseid, listid, listtext)
- setHouseOwner(houseId, owner[, clean])
- -- Unknown
- getSearchString(fromPosition, toPosition[, fromIsCreature = false[, toIsCreature = false]])
Add Comment
Please, Sign In to add comment