Previous topic

Scriptable events in PyOT

This Page

A TFS to PyOT script function map


Author:Stian (vapus members/stian)
Release:1.0-alpha1
Date:December 10, 2012

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:

Creature.data["health"]
getCreatureMaxHealth(cid[, ignoreModifiers = false])

Equal to:

Creature.data["healthmax"]
getCreatureMana(cid)

Equal to:

Player.data["mana"]
getCreatureMaxMana(cid[, ignoreModifiers = false])

Equal to:

Player.data["manamax"]
getCreatureHideHealth(cid)

Equal to:

Creature.getHideHealth()
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:

Creature.direction
getPlayerLevel(cid)

Equal to:

Player.data["level"]
getPlayerExperience(cid)

Equal to:

Player.data["experience"]
getPlayerMagLevel(cid[, ignoreModifiers = false])

Equal to:

Player.data["maglevel"]
getPlayerSpentMana(cid)

Equal to:

Player.data["manaspent"]
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:

Player.data["town_id"]
getPlayerVocation(cid)

Equal to:

Player.getVocation() (for the vocation object), Player.getVocationId() (for the Id)
getPlayerIp(cid)

Equal to:

Player.getIP()
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:

Player.itemCount(Item)
getPlayerMoney(cid)

Equal to:

Player.getMoney()
getPlayerSoul(cid[, ignoreModifiers = false])

Equal to:

Player.data["soul"]
getPlayerFreeCap(cid)

Equal to:

Player.freeCapasity()
getPlayerLight(cid)

Equal to:

INVIDIDUAL PLAYER LIGHT NOT IMPLANTED (yet)
getPlayerSlotItem(cid, slot)

Equal to:

Player.inventory[slot]
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:

Player.getDepot(depotId)
getPlayerAccountId(cid)

Equal to:

Player.data["account_id"]
getPlayerAccount(cid)

Equal to:

Grab it form SQL?
getPlayerFlagValue(cid, flag)

Equal to:

We don't have such flags
getPlayerCustomFlagValue(cid, flag)

Equal to:

We don't have such flags
getPlayerPromotionLevel(cid)

Figure it out from the vocation id

doPlayerSetPromotionLevel(cid, level)

Equal to:

Change the vocation
getPlayerGroupId(cid)

Equal to:

Player.data["group_id"]
doPlayerSetGroupId(cid, newGroupId)

Equal to:

Player.data["group_id"] = newGroupId # Currently not saved!!!
doPlayerSendOutfitWindow(cid)

Equal to:

Player.outfitWindow()
doPlayerLearnInstantSpell(cid, name)

Equal to:

Player.learnSpell(name)
doPlayerUnlearnInstantSpell(cid, name)

Equal to:

Player.unlearnSpell(name)
getPlayerLearnedInstantSpell(cid, name)

Equal to:

Player.canUseSpell(name)
getPlayerInstantSpellCount(cid)

No equal

getPlayerInstantSpellInfo(cid, index)

No equal

getInstantSpellInfo(cid, name)

Something like this:

game.spell.spells[name]
getCreatureStorageList(cid)

Equal to:

Player.storage
getCreatureStorage(uid, key)

Equal to:

Player.getStorage(key)
doCreatureSetStorage(uid, key, value)

Equal to:

Player.setStorage(key, value)
getStorageList()

Equal to:

engine.globalStorage
getStorage(key)

Equal to:

Creature.getGlobal(key)
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:

StackPosition.getThing()
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:

thing.position
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:

StackPosition.getThing()
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:

Item.transform(newId)
doCreatureSay(uid, text[, type = SPEAK _SAY[, ghost = false[, cid = 0[, pos]]]])

Something like this:

Creature.say(text)
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:

Player.addMoney(money)
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:

Item.decay()
doCreateItem(itemid[, type/count], pos)

Equal to:

placeItem(Item(itemid, type/count), pos)
or
<Item>.place(pos)
doCreateItemEx(itemid[, count/subType = -1])

Equal to:

Item(itemid, count)
doTileAddItemEx(pos, uid)

Equal to:

placeItem(Item, pos)
or
<Item>.place(pos)
doMonsterSetTarget(cid, target)

Equal to:

Creature.target = target
doMonsterChangeTarget(cid)

Equal to:

Creature.target = None (?)
getMonsterInfo(name)

Somewhat equal to:

getMonster(name)

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:

Creature.remove()
doMoveCreature(cid, direction[, flag = FLAG _NOLIMIT])

Equal to:

Creature.move(direction)
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:

Player.save()
isPlayerPzLocked(cid)
isPlayerSaving(cid)

Equal to:

Player.doSave
isCreature(cid)

Equal to:

Thing.isCreature()
isMovable(uid)

Equal to:

Thing.movable
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:

Item.containerSize
getContainerItem(uid, slot)

Equal to:

Item.container.getThing(slot)
getHouseAccessList(houseid, listId)

Equal to:

House.data["doors"][listId]
getHouseFromPos(pos)

Equal to:

getHouseByPos(Position)
setHouseAccessList(houseid, listid, listtext)

No equal, you got to modify House.data[“doors”] directly.

setHouseOwner(houseId, owner[, clean])

Equal to:

House.owner = owner
doChangeSpeed(cid, delta)

Equal to:

Creature.setSpeed(Creature.speed + delta)
getCreatureOutfit(cid)

Equal to:

Creature.outfit
getCreatureLastPosition(cid)

Equal to:

Creature.position
getCreatureName(cid)

Equal to:

Creature.name()
getCreatureSpeed(cid)

Equal to:

Creature.speed
getCreatureBaseSpeed(cid)

Equal to:

Creature.speed (we don't really deal with base right now)
getCreatureTarget(cid)

Equal to:

Creature.target
isInArray(array, value[, caseSensitive = false])

Equal to:

value in array
addEvent(callback, delay, ...)

Equal to:

callLater(delay (in seconds!), callback, ....)
stopEvent(eventid)

Equal to:

(return value of the event).stop()
doPlayerPopupFYI(cid, message)

Equal to:

Player.windowMessage(message)
doPlayerSendTutorial(cid, id)

Equal to:

Player.tutorial(id)
doCreatureSetLookDirection(cid, dir)

Equal to:

Creature.turn(dir)
getPlayerModes(cid)

Equal to:

Player.modes
getCreatureMaster(cid)

Equal to:

Creature.master
getItemIdByName(name[, displayError = true])

Equal to:

game.item.itemNames[name]
getItemInfo(itemid)

Equal to:

game.item.items[itemid]
getItemAttribute(uid, key)

Equal to:

Item.<key>
doItemSetAttribute(uid, key, value)

Equal to:

Item.<key> = value
doItemEraseAttribute(uid, key)

Equal to:

del Item.<key>
getItemWeight(uid[, precise = true])

Equal to:

Item.weight
getItemParent(uid)

Equal to:

Item.inContainer
hasItemProperty(uid, prop)

Item.<prop>

hasPlayerClient(cid)

Equal to:

Player.client
getDataDir()

Always ./data

getConfigFile()

This function have no purpose.

getConfigValue(key)

Equal to:

config.<key>
doCreatureExecuteTalkAction(cid, text[, ignoreAccess = false[, channelId = CHANNEL _DEFAULT]])

Equal to:

Creature.say(text[,channelId = channelId])
doReloadInfo(id[, cid])

Somewhat equal to:

reload()

This reloads everything tho.

doSaveServer([shallow = false])

Equal to:

engine.saveAll()
loadmodlib(lib)

See domodlib()

domodlib(lib)

See import

Somewhat equal to:

import <lib>
dodirectory(dir[, recursively = false])

Somewhat equal to:

from <dir> import *

Or to:

import dir.*
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:

type(str) == int
playerExists(name)

Equal to:

True if getPlayer(name) else False
getTibiaTime()

Equal to:

getTibiaTime()
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:

Item.name
getItemPluralName(uid)

Equal to:

Item.plural
getItemArticle(uid)

Equal to:

Item.article
getItemText(uid)

Equal to:

Item.text
getItemSpecialDescription(uid)

Equal to:

Item.description
getItemWriter(uid)

Equal to:

Item.writer
getItemDate(uid)

Equal to:

Item.written
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:

getPlayer(name)
isPlayer(cid)

Equal to:

Creature.isPlayer()
isPlayerGhost(cid)

Equal to:

not Creature.alive
isMonster(cid)

Equal to:

Creature.isMonster()
isNpc(cid)

Equal to:

Creature.isNPC()
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:

item.copy()
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:

Item.description
getItemWeightById(itemid, count, precision)

Equal to:

itemAttribute(itemid, "weight") * count
getItemWeaponType(uid)

Equal to:

Item.weaponType
isContainer(uid)

Equal to:

Item.container
isItemStackable(itemid)

Equal to:

Item.stackable
isItemContainer(itemid)

Equal to:

Item.container
isItemFluidContainer(itemid)

Equal to:

Item.fluidSource
isItemMovable(itemid)

Equal to:

Item.movable
choose(...)

Equal to:

random.choice(Iter)
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:

position == positionEx
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:

getNPC(name).spawn(pos)
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:

Player.addMount(name)
doPlayerRemoveMount(cid, mountId)

Equal to:

Player.removeMount(name)
getPlayerMount(cid, mountId)

Equal to:

Player.canUseMount(name)
doPlayerSetMount(cid, mountId)

Equal to:

Player.mount = mountid or mountname # both work in teory i suppose
doPlayerSetMountStatus(cid, mounted)

Equal to:

Player.mounted = mounted
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:

str.split(splitBy)

string.trim(str)

Equal to:

str.trim()

string.explode(str, sep, limit)

Equal to:

str.split(sep, limit)

string.expand(str)

Equal to:

str += str

** 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)