A TFS to PyOT script function map
NB! This page is work in progress!
There is 175 functions left to document.
First some important class (type) names:
Creature means it’s part of any creature (game.creature.Creature)
Player means it’s only part of a player (game.player.Player)
Item means it’s a item (game.item.Item)
Position is a position object (game.map.Position)
StackPosition is a position object with stack (game.map.StackPosition)
<> are used when the value is literaly inlined to the command
-
getCreatureHealth(cid)
Equal to:
-
getCreatureMaxHealth(cid[, ignoreModifiers = false])
Equal to:
Creature.data["healthmax"]
-
getCreatureMana(cid)
Equal to:
-
getCreatureMaxMana(cid[, ignoreModifiers = false])
Equal to:
-
getCreatureHideHealth(cid)
Equal to:
-
doCreatureSetHideHealth(cid, hide)
Equal to:
Creature.hideHealth(hide)
-
getCreatureSpeakType(cid)
Equal to:
Creature.defaultSpeakType
-
doCreatureSetSpeakType(cid, type)
Equal to:
Creature.defaultSpeakType = type
-
getCreatureLookDirection(cid)
Equal to:
-
getPlayerLevel(cid)
Equal to:
-
getPlayerExperience(cid)
Equal to:
Player.data["experience"]
-
getPlayerMagLevel(cid[, ignoreModifiers = false])
Equal to:
-
getPlayerSpentMana(cid)
Equal to:
-
getPlayerFood(cid)
Equal to:
No equalent (it's a Condition in PyOT so use Creature.getCondition())
-
getPlayerAccess(cid)
Equal to:
PyOT doesn't have access levels, only access flags
-
getPlayerGhostAccess(cid)
Equal to:
PyOT doesn't have access levels, only access flags
-
getPlayerSkillLevel(cid, skill[, ignoreModifiers = false])
Equal to:
Player.getActiveSkill(skill) (with modifiers) and Player.skill[skill] (without modifers)
-
getPlayerSkillTries(cid, skill)
Equal to:
Player.getSkillAttempts(skill)
-
getPlayerTown(cid)
Equal to:
-
getPlayerVocation(cid)
Equal to:
Player.getVocation() (for the vocation object), Player.getVocationId() (for the Id)
-
getPlayerIp(cid)
Equal to:
-
getPlayerRequiredMana(cid, magicLevel)
Equal to:
config.magicLevelFormula(magicLevel, Vocation.mlevel)
-
getPlayerRequiredSkillTries(cid, skillId, skillLevel)
Somewhat equal to:
config.skillFormula(skillLevel, Player.getVocation().meleeSkill)
-
getPlayerItemCount(cid, itemid[, subType = -1])
Equal to:
-
getPlayerMoney(cid)
Equal to:
-
getPlayerSoul(cid[, ignoreModifiers = false])
Equal to:
-
getPlayerFreeCap(cid)
Equal to:
-
getPlayerLight(cid)
Equal to:
INVIDIDUAL PLAYER LIGHT NOT IMPLANTED (yet)
-
getPlayerSlotItem(cid, slot)
Equal to:
-
getPlayerWeapon(cid[, ignoreAmmo = false])
Equal to:
Player.inventory[SLOT_RIGHT]
-
getPlayerItemById(cid, deepSearch, itemId[, subType = -1])
Equal to:
Player.findItemById(itemId, count/subType)
-
getPlayerDepotItems(cid, depotid)
Equal to:
-
getPlayerAccountId(cid)
Equal to:
Player.data["account_id"]
-
getPlayerAccount(cid)
Equal to:
-
getPlayerFlagValue(cid, flag)
Equal to:
-
getPlayerCustomFlagValue(cid, flag)
Equal to:
-
getPlayerPromotionLevel(cid)
Figure it out from the vocation id
-
doPlayerSetPromotionLevel(cid, level)
Equal to:
-
getPlayerGroupId(cid)
Equal to:
-
doPlayerSetGroupId(cid, newGroupId)
Equal to:
Player.data["group_id"] = newGroupId # Currently not saved!!!
-
doPlayerSendOutfitWindow(cid)
Equal to:
-
doPlayerLearnInstantSpell(cid, name)
Equal to:
-
doPlayerUnlearnInstantSpell(cid, name)
Equal to:
Player.unlearnSpell(name)
-
getPlayerLearnedInstantSpell(cid, name)
Equal to:
-
getPlayerInstantSpellCount(cid)
No equal
-
getPlayerInstantSpellInfo(cid, index)
No equal
-
getInstantSpellInfo(cid, name)
Something like this:
-
getCreatureStorageList(cid)
Equal to:
-
getCreatureStorage(uid, key)
Equal to:
-
doCreatureSetStorage(uid, key, value)
Equal to:
Player.setStorage(key, value)
-
getStorageList()
Equal to:
-
getStorage(key)
Equal to:
-
doSetStorage(key, value)
Equal to:
Creature.setGlobal(key, value)
-
getPlayersOnline()
Something like this:
len(game.player.allPlayers)
-
getTileInfo(pos)
Like this:
Position.getTile().getFlags()
-
getThingFromPos(pos[, displayError = true])
Equal to:
-
getThing(uid[, recursive = RECURSE _FIRST])
No equal (unnecessary)
-
doTileQueryAdd(uid, pos[, flags[, displayError = true]])
No equal (unnecessary)
-
doItemRaidUnref(uid)
No equal (unnecessary)
-
getThingPosition(uid)
Equal to:
-
getTileItemById(pos, itemId[, subType = -1])
Equal to:
Position.getTile().findItem(itemId)
-
getTileItemByType(pos, type)
Something like this:
items = []
for thing in pos.getTile().things:
if isinstance(thing, Item) and thing.type == type:
items.append(thing)
-
getTileThingByPos(pos)
Equal to:
-
getTopCreature(pos)
Equal to:
Position.getTile().creatures()[0] (might raise an exception)
-
doRemoveItem(uid[, count = -1])
You may do something like this:
item.modify(count)
or
item.remove()
-
doPlayerFeed(cid, food)
No equal (use Conditions)
-
doPlayerSendCancel(cid, text)
Equal to:
Player.cancelMessage(text)
-
doPlayerSendDefaultCancel(cid, ReturnValue)
We got calls such as Player.notPossible()
-
doTransformItem(uid, newId[, count/subType])
Something like this:
-
doCreatureSay(uid, text[, type = SPEAK _SAY[, ghost = false[, cid = 0[, pos]]]])
Something like this:
-
doSendCreatureSquare(cid, color[, player])
Equal to:
Player.square(Creature, color)
-
doSendMagicEffect(pos, type[, player])
Some alternatives are:
Creature.magicEffect(type)
Creature.magicEffect(type, Position)
magicEffect(Position, type)
-
doSendDistanceShoot(fromPos, toPos, type[, player])
Player.shoot(fromPos, toPos, type)
-
doCreatureAddHealth(cid, health[, hitEffect[, hitColor[, force]]])
Equal to:
Creature.modifyHealth(health)
-
doCreatureAddMana(cid, mana)
Equal to:
Creature.modifyMana(mana)
-
setCreatureMaxHealth(cid, health)
Equal to:
Creature.data["healthmax"] += health
-
setCreatureMaxMana(cid, mana)
Equal to:
Player.data["manamax"] += health
-
doPlayerSetMaxCapacity(cid, cap)
Equal to:
Player.data["capasity"] = cap
-
doPlayerAddSpentMana(cid, amount[, useMultiplier = true])
Equal to:
Player.modifySpentMana(amount)
-
doPlayerAddSoul(cid, amount)
Equal to:
Player.modifySoul(amount)
-
doPlayerAddItem(cid, itemid[, count/subtype = 1[, canDropOnMap = true[, slot = 0]]])
Equal to:
Player.addItem(Item(itemId[, count])[, placeOnGround = True])
-
doPlayerAddItem(cid, itemid[, count = 1[, canDropOnMap = true[, subtype = 1[, slot = 0]]]])
Equal to:
Player.addItem(Item(itemId[, count])[, placeOnGround = True])
-
doPlayerAddItemEx(cid, uid[, canDropOnMap = false[, slot = 0]])
Not neseccary since we got no uid stuff, but Player.itemToUse(ItemObject) is possible.
-
doPlayerSendTextMessage(cid, MessageClasses, message)
Equal to:
Player.message(message[, MessageClass])
-
doPlayerSendChannelMessage(cid, author, message, SpeakClasses, channel)
-
doPlayerSendToChannel(cid, targetId, SpeakClasses, message, channel[, time])
-
doPlayerOpenChannel(cid, channelId)
Equal to:
Player.openChannel(channelId)
-
doPlayerAddMoney(cid, money)
Equal to:
-
doPlayerRemoveMoney(cid, money)
Equal to:
Player.removeMoney(money)
Note that this remove as much as possible if it’s not enough, you should therefore vertify the amount.
-
doPlayerTransferMoneyTo(cid, target, money)
Equal to:
Player.removeMoney(money)
Player2.addMoney(money)
-
doShowTextDialog(cid, itemid, text)
Equal to:
Player.textWindow(Item, text=text)
-
doDecayItem(uid)
Equal to:
-
doCreateItem(itemid[, type/count], pos)
Equal to:
placeItem(Item(itemid, type/count), pos)
or
<Item>.place(pos)
-
doCreateItemEx(itemid[, count/subType = -1])
Equal to:
-
doTileAddItemEx(pos, uid)
Equal to:
placeItem(Item, pos)
or
<Item>.place(pos)
-
doMonsterSetTarget(cid, target)
Equal to:
-
doMonsterChangeTarget(cid)
Equal to:
Creature.target = None (?)
-
getMonsterInfo(name)
Somewhat equal to:
It give you the base class that every monster with that name is based on. Hench it’s easy to grab information.
-
doAddCondition(cid, condition)
Equal to:
Creature.condition(condition)
-
doRemoveCondition(cid, type[, subId])
Equal to:
Creature.removeCondition(condition)
-
doRemoveConditions(cid[, onlyPersistent])
Equal to(?):
Creature.loseAllConditions()
-
doRemoveCreature(cid[, forceLogout = true])
Equal to:
-
doMoveCreature(cid, direction[, flag = FLAG _NOLIMIT])
Equal to:
-
doSteerCreature(cid, position)
Equal to:
autoWalkCreatureTo(Creature, position)
-
doPlayerSetPzLocked(cid, locked)
-
doPlayerSetTown(cid, townid)
-
doPlayerSetVocation(cid, voc)
-
doPlayerRemoveItem(cid, itemid[, count[, subType = -1]])
Equal to:
Player.findItemById(itemid).modify(count) # or .remove()
-
doPlayerAddExperience(cid, amount)
Equal to:
Player.modifyExperience(amount)
-
doPlayerSetGuildId(cid, id)
-
doPlayerSetGuildLevel(cid, level[, rank])
-
doPlayerSetGuildNick(cid, nick)
-
doPlayerAddOutfit(cid, looktype, addon)
Equal to:
Player.addOutfit(outfitName)
# or
Player.addOutfitAddon(outfitName, addon)
-
doPlayerRemoveOutfit(cid, looktype[, addon = 0])
Equal to:
Player.removeOutfit(outfitName)
# or:
Player.removeOutfitAddon(outfitName, addon)
-
doPlayerAddOutfitId(cid, outfitId, addon)
See doPlayerAddOutfit
-
doPlayerRemoveOutfitId(cid, outfitId[, addon = 0])
See doPlayerRemoveOutfit
-
canPlayerWearOutfit(cid, looktype[, addon = 0])
Equal to:
Player.canWearOutfit(outfitName)
# for addon check:
addon in Player.getAddonsForOutfit(outfitName)
-
canPlayerWearOutfitId(cid, outfitId[, addon = 0])
See canPlayerWearOutfit
-
getCreatureCondition(cid, condition[, subId = 0])
Equal to:
Player.getCondition(condition[, subId])
-
doCreatureSetDropLoot(cid, doDrop)
-
getPlayerLossPercent(cid, lossType)
-
doPlayerSetLossPercent(cid, lossType, newPercent)
-
doPlayerSetLossSkill(cid, doLose)
-
getPlayerLossSkill(cid)
-
doPlayerSwitchSaving(cid)
Equal to:
Player.doSave = not Player.doSave
-
doPlayerSave(cid[, shallow = false])
Equal to:
-
isPlayerPzLocked(cid)
-
isPlayerSaving(cid)
Equal to:
-
isCreature(cid)
Equal to:
-
isMovable(uid)
Equal to:
-
getCreatureByName(name)
Somewhat equal to:
getMonster(name)
getNPC(name)
-
getPlayerByGUID(guid)
No equal
-
getPlayerByNameWildcard(name~[, ret = false])
NOT IMPLANTED YET
-
getPlayerGUIDByName(name[, multiworld = false])
No equal
-
getPlayerNameByGUID(guid[, multiworld = false[, displayError = true]])
No equal
-
doPlayerChangeName(guid, oldName, newName)
Player.rename(newName)
-
registerCreatureEvent(uid, eventName)
Equal to:
register(eventName, Creature, function)
-
unregisterCreatureEvent(uid, eventName)
Equal to:
unregister(eventName, Creature, function)
-
getContainerSize(uid)
Equal to:
len(Item.container.items)
-
getContainerCap(uid)
Equal to:
-
getContainerItem(uid, slot)
Equal to:
Item.container.getThing(slot)
-
getHouseAccessList(houseid, listId)
Equal to:
House.data["doors"][listId]
-
getHouseFromPos(pos)
Equal to:
-
setHouseAccessList(houseid, listid, listtext)
No equal, you got to modify House.data[“doors”] directly.
-
setHouseOwner(houseId, owner[, clean])
Equal to:
-
doChangeSpeed(cid, delta)
Equal to:
Creature.setSpeed(Creature.speed + delta)
-
getCreatureOutfit(cid)
Equal to:
-
getCreatureLastPosition(cid)
Equal to:
-
getCreatureName(cid)
Equal to:
-
getCreatureSpeed(cid)
Equal to:
-
getCreatureBaseSpeed(cid)
Equal to:
Creature.speed (we don't really deal with base right now)
-
getCreatureTarget(cid)
Equal to:
-
isInArray(array, value[, caseSensitive = false])
Equal to:
-
addEvent(callback, delay, ...)
Equal to:
callLater(delay (in seconds!), callback, ....)
-
stopEvent(eventid)
Equal to:
(return value of the event).stop()
Equal to:
Player.windowMessage(message)
-
doPlayerSendTutorial(cid, id)
Equal to:
-
doCreatureSetLookDirection(cid, dir)
Equal to:
-
getPlayerModes(cid)
Equal to:
-
getCreatureMaster(cid)
Equal to:
-
getItemIdByName(name[, displayError = true])
Equal to:
game.item.itemNames[name]
-
getItemInfo(itemid)
Equal to:
-
getItemAttribute(uid, key)
Equal to:
-
doItemSetAttribute(uid, key, value)
Equal to:
-
doItemEraseAttribute(uid, key)
Equal to:
-
getItemWeight(uid[, precise = true])
Equal to:
-
getItemParent(uid)
Equal to:
-
hasItemProperty(uid, prop)
Item.<prop>
-
hasPlayerClient(cid)
Equal to:
-
getDataDir()
Always ./data
-
getConfigFile()
This function have no purpose.
-
getConfigValue(key)
Equal to:
-
doCreatureExecuteTalkAction(cid, text[, ignoreAccess = false[, channelId = CHANNEL _DEFAULT]])
Equal to:
Creature.say(text[,channelId = channelId])
-
doReloadInfo(id[, cid])
Somewhat equal to:
This reloads everything tho.
-
doSaveServer([shallow = false])
Equal to:
-
loadmodlib(lib)
See domodlib()
-
domodlib(lib)
See import
Somewhat equal to:
-
dodirectory(dir[, recursively = false])
Somewhat equal to:
Or to:
-
doPlayerGiveItem(cid, itemid, amount, subType)
Can be done like this:
Player.addItem(Item(itemid, amount))
-
doPlayerGiveItemContainer(cid, containerid, itemid, amount, subType)
Like this:
Player.addItemToContainer(ContainerItem, Item(itemid, amount))
-
isPremium(cid)
Desided by player access flags
-
isNumeric(str)
Equal to:
-
playerExists(name)
Equal to:
True if getPlayer(name) else False
-
getTibiaTime()
Equal to:
-
getHouseOwner(houseId)
Like this:
getHouseById(houseId).owner
-
getHouseName(houseId)
Like this:
getHouseById(houseId).name
-
getHouseRent(houseId)
Like this:
getHouseById(houseId).rent
-
getHousePrice(houseId)
Like this:
getHouseById(houseId).price
-
getHouseTown(houseId)
Like this:
getHouseById(houseId).town_id
-
getHouseDoorsCount(houseId)
Can be done like this:
len(game.map.houseDoors[houseId])
-
getHouseBedsCount(houseId)
No equalent yet
-
getHouseTilesCount(houseId)
Like this:
getHouseById(houseId).size
-
getItemNameById(itemid)
Equal to:
itemAttribute(itemid, "name")
-
getItemPluralNameById(itemid)
Equal to:
itemAttribute(itemid, "plural")
-
getItemArticleById(itemid)
Equal to:
itemAttribute(itemid, "article")
-
getItemName(uid)
Equal to:
-
getItemPluralName(uid)
Equal to:
-
getItemArticle(uid)
Equal to:
-
getItemText(uid)
Equal to:
-
getItemSpecialDescription(uid)
Equal to:
-
getItemWriter(uid)
Equal to:
-
getItemDate(uid)
Equal to:
-
getTilePzInfo(pos)
Equal to:
Position.getTile().getFlags() & TILEFLAGS_PROTECTIONZONE
-
getTileZoneInfo(pos)
Equal to:
Position.getTile().getFlags()
-
doSummonCreature(name, pos, displayError)
Equal to:
game.monster.getMonster(name).spawn(pos)
-
getOnlinePlayers()
Equal to:
len(game.player.allPlayers)
-
getPlayerByName(name)
Equal to:
-
isPlayer(cid)
Equal to:
-
isPlayerGhost(cid)
Equal to:
-
isMonster(cid)
Equal to:
-
isNpc(cid)
Equal to:
-
doPlayerAddLevel(cid, amount, round)
Equal to:
Player.modifyLevel(amount)
-
doPlayerAddMagLevel(cid, amount)
Equal to:
Player.modifyMagicLeve(amount)
-
doPlayerAddSkill(cid, skill, amount, round)
Equal to:
Player.addSkillLevel(skill, amount)
-
doCopyItem(item, attributes)
Equal to:
-
doRemoveThing(uid)
Equal to:
Depends on where the item is.
-
doChangeTypeItem(uid, subtype)
Equal to:
Item.count -= 1 (you need to refresh the item tho)
-
doSetItemText(uid, text, writer, date)
Equal to:
Item.test = text
Item.written = date
Item.writtenBy = writer
-
doItemSetActionId(uid, aid)
Equal to:
PyOT support multiple actions, so Item.actions.append("action") and Item.actions.remove("action")
-
getFluidSourceType(itemid)
Equal to:
itemAttribute(itemid, "fluidSource")
-
getDepotId(uid)
Equal to:
Depots are indexed based on depotid in player.
-
getItemDescriptions(uid)
Equal to:
-
getItemWeightById(itemid, count, precision)
Equal to:
itemAttribute(itemid, "weight") * count
-
getItemWeaponType(uid)
Equal to:
-
isContainer(uid)
Equal to:
-
isItemStackable(itemid)
Equal to:
-
isItemContainer(itemid)
Equal to:
-
isItemFluidContainer(itemid)
Equal to:
-
isItemMovable(itemid)
Equal to:
-
choose(...)
Equal to:
-
getDistanceBetween(fromPosition, toPosition)
Equal to:
fromPosition.distanceTo(toPosition)
-
getCreatureLookPosition(cid)
Equal to:
Creature.positionInDirection(Creature.direction)
-
getPositionByDirection(position, direction, size)
Equal to:
positionInDirection(position, direction, size)
-
doComparePositions(position, positionEx)
Equal to:
-
getArea(position, x, y)
Equal to:
We don't do areas like lua do.
-
Position(x, y, z, stackpos)
Equal to:
Position(x, y, z) and StackPosition(z, y, z, stackpos)
-
isValidPosition(position)
Equal to:
if getTile(position): True
-
doCreateTeleport(itemid, topos, createpos)
Equal to:
Item.teledest = [X, Y, Z] # Yes, it's a list and NOT a Position object, there are a couple of reasons for this, but well.
-
doCreateMonster(name, pos[, extend = false[, force = false[, displayError = true]]])
Equal to:
getMonster(name).spawn(pos)
-
doCreateNpc(name, pos[, displayError = true])
Equal to:
-
doPlayerAddSkillTry(cid, skillid, n[, useMultiplier = true])
Equal to:
Player.skillAttempt(skillid[, n=1])
-
doSummonMonster(cid, name)
Equal to:
monster = getMonster(name).spawn(Player.getPositionInDirection(Player.direction))
monster.setMaster(Player)
-
doPlayerAddMount(cid, mountId)
Equal:
-
doPlayerRemoveMount(cid, mountId)
Equal to:
-
getPlayerMount(cid, mountId)
Equal to:
-
doPlayerSetMount(cid, mountId)
Equal to:
Player.mount = mountid or mountname # both work in teory i suppose
-
doPlayerSetMountStatus(cid, mounted)
Equal to:
-
getMountInfo([mountId])
Equal to:
mount = game.resource.getMount(mountname)
-
doPlayerAddMapMark(cid, pos, type[, description])
Equal to:
Player.mapMarker(Position, Type[, description])
-
doPlayerAddPremiumDays(cid, days)
No equal
-
getPlayerPremiumDays(cid)
No equal
-
getPlayerAccountManager(cid)
No equal
-
getPlayersByAccountId(accId)
No equal
-
getAccountIdByName(name)
No equal
-
getAccountByName(name)
No equal
-
getAccountIdByAccount(accName)
No equal
-
getAccountByAccountId(accId)
No equal
-
getIpByName(name)
No equal
-
getPlayersByIp(ip[, mask = 0xFFFFFFFF])
No equal
- ** string actions (see pythons documentation instead) **
string.split(str)
Equal to:
string.trim(str)
Equal to:
string.explode(str, sep, limit)
Equal to:
string.expand(str)
Equal to:
** part of the guild system, yet to be implanted **
.. function:: getPlayerGuildId(cid)
-
getPlayerGuildName(cid)
-
getPlayerGuildRankId(cid)
-
getPlayerGuildRank(cid)
-
getPlayerGuildNick(cid)
-
getPlayerGuildLevel(cid)
-
getPlayerGUID(cid)
-
getPlayerNameDescription(cid)
-
doPlayerSetNameDescription(cid, desc)
-
getPlayerSpecialDescription(cid)
-
doPlayerSetSpecialDescription(cid, desc)
-
isSorcerer(cid)
-
isDruid(cid)
-
isPaladin(cid)
-
isKnight(cid)
-
isRookie(cid)
-
isCorpse(uid)
-
getContainerCapById(itemid) Item.containerSize
-
getMonsterAttackSpells(name)
-
getMonsterHealingSpells(name)
-
getMonsterLootList(name)
-
getMonsterSummonList(name)
-
getDirectionTo(pos1, pos2)
-
isInRange(position, fromPosition, toPosition)
-
isItemRune(itemid)
-
isItemDoor(itemid)
-
getItemRWInfo(uid)
-
getItemLevelDoor(itemid)
-
getPartyLeader(cid)
-
isInParty(cid)
-
isPrivateChannel(channelId)
-
doPlayerResetIdleTime(cid)
-
doBroadcastMessage(text, class)
-
doPlayerBroadcastMessage(cid, text, class, checkFlag, ghost)
-
getBooleanFromString(input)
-
doPlayerSetExperienceRate(cid, value)
-
doPlayerSetMagicRate(cid, value)
-
doShutdown()
-
getHouseEntry(houseId)
-
doWriteLogFile(file, text)
-
getExperienceForLevel(lv)
-
doMutePlayer(cid, time)
-
getPlayerGroupName(cid)
-
getPlayerVocationName(cid)
-
getPromotedVocation(vid)
-
doPlayerRemovePremiumDays(cid, days)
-
getPlayerMasterPos(cid)
-
doPlayerAddAddons(cid, addon)
-
doPlayerWithdrawAllMoney(cid)
-
doPlayerDepositAllMoney(cid)
-
doPlayerTransferAllMoneyTo(cid, target)
-
getMonthDayEnding(day)
-
getMonthString(m)
-
getArticle(str)
-
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)
-
doCleanHouse(houseId)
-
doCleanMap()
-
doRefreshMap()
-
doGuildAddEnemy(guild, enemy, war, type)
-
doGuildRemoveEnemy(guild, enemy)
-
doUpdateHouseAuctions()
-
getModList()
-
getHighscoreString(skillId)
-
getWaypointPosition(name)
-
doWaypointAddTemporial(name, pos)
-
getGameState()
-
doSetGameState(id)
-
doExecuteRaid(name)
-
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)
-
getLogsDir()
-
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()
-
getPlayerRates(cid)
-
doPlayerSetRate(cid, type, value)
-
getPlayerPartner(cid)
-
doPlayerSetPartner(cid, guid)
-
doPlayerFollowCreature(cid, target)
-
getPlayerParty(cid)
-
doPlayerJoinParty(cid, lid)
-
doPlayerLeaveParty(cid[, forced = false])
-
getPartyMembers(lid)
-
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)
-
getPlayerTradeState(cid)
-
doPlayerSendMailByName(name, item[, town[, actor]])
-
getChannelUsers(channelId)
-
getSearchString(fromPosition, toPosition[, fromIsCreature = false[, toIsCreature = false]])
-
getClosestFreeTile(cid, targetpos[, extended = false[, ignoreHouse = true]])
-
doTeleportThing(cid, newpos[, pushmove = true[, fullTeleport = true]])
-
doSendAnimatedText(pos, text, color[, player])
-
doAddContainerItemEx(uid, virtuid)
-
doRelocate(pos, posTo[, creatures = true[, unmovable = true]])
-
doCleanTile(pos[, forceMapLoaded = false])
-
doConvinceCreature(cid, target)
-
getMonsterTargetList(cid)
-
getMonsterFriendList(cid)
-
isSightClear(fromPos, toPos, floorCheck)
-
doCreatureChangeOutfit(cid, outfit)
-
doSetMonsterOutfit(cid, name[, time = -1])
-
doSetItemOutfit(cid, item[, time = -1])
-
doSetCreatureOutfit(cid, outfit[, time = -1])
-
getWorldType()
-
setWorldType(type)
-
getWorldTime()
-
getWorldLight()
-
getWorldCreatures(type)
-
getWorldUpTime()
-
getGuildId(guildName)
-
getGuildMotd(guildId)
-
getPlayerSex(cid[, full = false])
-
doPlayerSetSex(cid, newSex)
-
numberToVariant(number)
-
stringToVariant(string)
-
positionToVariant(pos)
-
targetPositionToVariant(pos)
-
variantToNumber(var)
-
variantToString(var)
-
variantToPosition(var)
-
doAddContainerItem(uid, itemid[, count/subType = 1])
-
getHouseInfo(houseId[, displayError = true])
-
getHouseByPlayerGUID(playerGUID)