Kahras
Senior User
- Joined
- Aug 26, 2011
- Messages
- 2,714
- Reaction score
- 167
- Age
- 25
Witam!
Tworze tutaj ten temat poniewa? przez ostanie czasy du?o u?ytkownik?w na tym forum tworzy?o "nowe LUA"!
Niekt?rzy nie wiedz? ?e w folderze DOC znajd? funkcje ale oczywi?cie nie wszystkie dowodem jest: click.
Ja postanowi?em to uzupe?ni? i specjalnie dla was to doda?!
Og?lnie funkcje wyci??em z luascript.cpp + folder LIB < - (TFS'a 0.4(9.80-86 r.5960).
Lista funkcji:
[LUA]//is
isPrivateChannel(channelId)
isValidPosition(position)
isSorcerer(cid)
isDruid(cid)
isPaladin(cid)
isKnight(cid)
isRookie(cid)
isPlayer(cid)
isPlayerGhost(cid)
isMonster(cid)
isNpc(cid)
isUnderWater(cid)
isPlayerPzLocked(cid)
isPlayerSaving(cid)
isPlayerProtected(cid)
isCreature(cid)
isIpBanished(ip[, mask])
isPlayerBanished(name/guid, type)
isAccountBanished(accountId[, playerId])
isSightClear(fromPos, toPos, floorCheck)
isMovable(uid)
isInArray(array, value, caseSensitive)
isPremium(cid)
isPlayerUsingOtclient(cid)
isNumeric(str)
isCorpse(uid)
isItemMovable(itemid)
isItemFluidContainer(itemid)
isItemContainer(itemid)
isItemDoor(itemid)
isItemRune(itemid)
isItemStackable(itemid)
isContainer(uid)
isInParty(cid)
isSummon(cid)
isInRange(position, fromPosition, toPosition)
//set
setCreatureMaxHealth(cid, health)
setCreatureMaxMana(cid, mana)
setPlayerStorageValue(uid, valueid, newvalue)
setPlayerGroupId(cid, newGroupId)
setPlayerPromotionLevel(cid, level)
setPlayerStamina(cid, minutes)
setPlayerExtraExpRate(cid, value)
setPlayerPartner(cid, guid)
setHouseOwner(houseid, ownerGUID)
setHouseAccessList(houseid, listid, listtext)
setItemName(uid)
setItemPluralName(uid)
setItemArticle(uid)
setItemAttack(uid, attack)
setItemExtraAttack(uid, extraattack)
setItemDefense(uid, defense)
setItemArmor(uid, armor)
setItemExtraDefense(uid, extradefense)
setItemAttackSpeed(uid, attackspeed)
setItemHitChance(uid, hitChance)
setItemShootRange(uid, shootRange)
setGlobalStorageValue(valueid, newvalue)
setCombatArea(combat, area)
setCombatCondition(combat, condition)
setCombatParam(combat, key, value)
setConditionParam(condition, key, value)
setCombatCallBack(combat, key, function_name)
setCombatFormula(combat, type, mina, minb, maxa, maxb[, minl, maxl[, minm, maxm[, minc[, maxc]]]])
setConditionFormula(combat, mina, minb, maxa, maxb)
setCreatureMaxHealth(cid, health)
setCreatureMaxMana(cid, mana)
setHouseAccessList(houseid, listid, listtext)
setWorldType(type)
setHouseOwner(houseId, owner[, clean = true])
//get
getArea(position, x, y)
getDistanceBetween(fromPosition, toPosition)
getDirectionTo(pos1, pos2)
getCreatureLookPosition(cid)
getPositionByDirection(position, direction, size)
getItemLevelDoor(itemid)
getItemRWInfo(uid)
getItemWeaponType(uid)
getItemDate(uid)
getItemWriter(uid)
getTilePzInfo(pos)
getTileZoneInfo(pos)
getItemTopParent(uid)
getItemHolder(uid)
getItemWeightById(itemid, count, precision)
getPlayerByName(name)
getPlayersOnlineEx()
getExperienceForLevel(lv)
getTibiaTime(num)
getMonthDayEnding(day)
getMonthString(m)
getArticle(str)
getCreatureHealth(cid)
getCreatureMaxHealth(cid[, ignoreModifiers = false])
getCreatureMana(cid)
getCreatureMaxMana(cid[, ignoreModifiers = false])
getCreatureHideHealth(cid)
getCreatureSpeakType(cid)
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)
getPlayerSpecialDescription(cid)
getPlayerAccountId(cid)
getPlayerAccount(cid)
getPlayerFlagValue(cid, flag)
getPlayerCustomFlagValue(cid, flag)
getPlayerPromotionLevel(cid)
getPlayerGroupId(cid)
getPlayerLearnedInstantSpell(cid, name)
getPlayerInstantSpellCount(cid)
getPlayerInstantSpellInfo(cid, index)
getInstantSpellInfo(cid, name)
getCreatureStorageList(cid)
getCreatureStorage(uid, key)
getStorageList()
getStorage(key)
getChannelUsers(channelId)
getPlayersOnline()
getTileInfo(pos)
getThingFromPosition(pos)
getThing(uid[, recursive = RECURSE_FIRST])
getThingPosition(uid)
getTileItemById(pos, itemId[, subType = -1])
getTileItemByType(pos, type)
getTileThingByPos(pos)
getTopCreature(pos)
getSearchString(fromPosition, toPosition[, fromIsCreature = false[, toIsCreature = false]])
getClosestFreeTile(cid, targetpos[, extended = false[, ignoreHouse = true]])
getMonsterTargetList(cid)
getMonsterFriendList(cid)
getMonsterInfo(name)
getCreatureConditionInfo(cid, condition[, subId = 0[, conditionId = CONDITIONID_COMBAT]])
getPlayerLossPercent(cid, lossType)
getContainerSize(uid)
getContainerCap(uid)
getCreatureByName(name)
getPlayerLossSkill(cid)
getPlayerByGUID(guid)
getPlayerByNameWildcard(name~[, ret = false])
getPlayerGUIDByName(name[, multiworld = false])
getPlayerNameByGUID(guid[, multiworld = false])
getContainerItem(uid, slot)
getHouseInfo(houseId[, full = true])
getHouseAccessList(houseid, listId)
getHouseByPlayerGUID(playerGUID)
getHouseFromPosition(pos)
getWorldType()
getWorldTime()
getWorldLight()
getWorldCreatures(type)
getWorldUpTime()
getGuildId(guildName)
getGuildMotd(guildId)
getPlayerSex(cid[, full = false])
getCreatureOutfit(cid)
getCreatureLastPosition(cid)
getCreatureName(cid)
getCreatureSpeed(cid)
getCreatureBaseSpeed(cid)
getCreatureTarget(cid)
getPlayersByAccountId(accId)
getAccountIdByName(name)
getAccountByName(name)
getAccountIdByAccount(accName)
getAccountByAccountId(accId)
getAccountFlagValue(name/id)
getAccountCustomFlagValue(name/id)
getIpByName(name)
getPlayersByIp(ip[, mask = 0xFFFFFFFF])
getCreatureSkullType(cid[, target])
getCreaturePartyShield(cid[, target])
getPlayerPremiumDays(cid)
getCreatureGuildEmblem(cid[, target])
getPlayerSkullEnd(cid)
getPlayerBlessing(cid, blessing)
getPlayerPVPBlessing(cid)
getPlayerStamina(cid)
getPlayerBalance(cid)
getCreatureNoMove(cid)
getPlayerIdleTime(cid)
getPlayerLastLoad(cid)
getPlayerLastLogin(cid)
getPlayerAccountManager(cid)
getPlayerTradeState(cid)
getPlayerOperatingSystem(cid)
getPlayerClientVersion(cid)
getPlayerModes(cid)
getPlayerRates(cid)
getPlayerPartner(cid)
getPlayerParty(cid)
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)
getItemInfo(itemid)
getItemAttribute(uid, key)
getItemWeight(uid[, precise = true])
getItemParent(uid)
getAccountWarnings(accountId)
getNotationsCount(accountId[, playerId])
getBanData(value[, type[, param]])
getBanList(type[, value[, param]])
getExperienceStage(level)
getDataDir()
getLogsDir()
getConfigFile()
getConfigValue(key)
getModList()
getWaypointPosition(name)
getGameState()
getItemSpecialDescription(uid)
getItemText(uid)
getItemArticle(uid)
getItemPluralName(uid)
getItemName(uid)
getItemArticleById(itemid)
getItemPluralNameById(itemid)
getItemNameById(itemid)
getHouseTilesCount(houseId)
getHouseBedsCount(houseId)
getHouseDoorsCount(houseId)
getHouseTown(houseId)
getHousePrice(houseId)
getHouseRent(houseId)
getHouseEntry(houseId)
getHouseName(houseId)
getHouseOwner(houseId)
getPlayerMasterPos(cid)
getPromotedVocation(vid)
getPlayerVocationName(cid)
getPlayerGroupName(cid)
getItemDescriptions(uid)
getDepotId(uid)
getFluidSourceType(itemid)
getMonsterSummonList(name)
getMonsterLootList(name)
getMonsterHealingSpells(name)
getMonsterAttackSpells(name)
getContainerCapById(itemid)
//do
doComparePositions(position, positionEx)
doConvertIntegerToIp(int, mask)
doConvertIpToInteger(str)
doRevertIp(str)
doSendAnimatedText(...)
doPlayerSendToChannel(cid, target, type, text, channel, time)
doItemSetActionId(uid, aid)
doRemoveThing(uid)
doPlayerSetMagicRate(cid, value)
doPlayerSetExperienceRate(cid, value)
doPlayerResetIdleTime(cid)
doChangeTypeItem(uid, subtype)
doShutdown()
doPlayerRemovePremiumDays(cid, days)
doSetItemSpecialDescription(uid, str)
doPlayerWithdrawAllMoney(cid)
doPlayerDepositAllMoney(cid)
doPlayerTransferAllMoneyTo(cid, target)
doPlayerBuyItemContainer(cid, containerid, itemid, count, cost, charges)
doPlayerBuyItem(cid, itemid, count, cost, charges)
doPlayerAddExpEx(cid, amount)
doSetItemText(uid, text, writer, date)
doCopyItem(item, attributes)
doPlayerBroadcastMessage(cid, text, class, checkFlag, ghost)
doBroadcastMessage(text, class)
doPlayerAddLevel(cid, amount, round)
doPlayerAddMagLevel(cid, amount)
doPlayerAddSkill(cid, skill, amount, round)
doSummonCreature(name, pos)
doMutePlayer(cid, time)
doNumberFormat(i)
doPlayerAddAddons(cid, addon)
doWriteLogFile(file, text)
doCreatureSetHideHealth(cid, hide)
doPlayerSetOfflineTrainingSkill(cid, skill)
doCreatureSetSpeakType(cid, type)
doPlayerSetNameDescription(cid, desc)
doPlayerSetSpecialDescription(cid, desc)
doPlayerSetPromotionLevel(cid, level)
doPlayerSetGroupId(cid, newGroupId)
doPlayerSendOutfitWindow(cid)
doPlayerLearnInstantSpell(cid, name)
doPlayerUnlearnInstantSpell(cid, name)
doCreatureCastSpell(uid, spell)
doCreatureSetStorage(uid, key, value)
doSetStorage(key, value)
doPlayerGiveItem(cid, itemid, amount, subType)
doPlayerGiveItemContainer(cid, containerid, itemid, amount, subType)
doPlayerTakeItem(cid, itemid, amount)
doPlayerSellItem(cid, itemid, count, cost)
doPlayerWithdrawMoney(cid, amount)
doPlayerDepositMoney(cid, amount)
doTileQueryAdd(uid, pos[, flags])
doItemRaidUnref(uid)
doPlayerAddStamina(cid, minutes)
doRemoveItem(uid[, count = -1])
doPlayerFeed(cid, food)
doPlayerSendCancel(cid, text)
doPlayerSendDefaultCancel(cid, ReturnValue)
doTeleportThing(cid, destination[, pushmove = true[, fullTeleport = true]])
doItemSetDestination(uid, destination)
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])
doPlayerAddSkillTry(cid, skillid, n[, useMultiplier = true])
doCreatureAddHealth(cid, health[, hitEffect[, hitColor[, force]]])
doCreatureAddMana(cid, mana)
doPlayerSetMaxCapacity(cid, cap)
doPlayerAddSpentMana(cid, amount[, useMultiplier = true])
doPlayerAddSoul(cid, amount)
doPlayerAddItem(cid, itemid[, count/subtype = 1[, canDropOnMap = true[, slot = 0]]])
doPlayerAddItemEx(cid, uid[, canDropOnMap = false[, slot = 0]])
doPlayerSendTextMessage(cid, MessageClasses, message[, value[, color[, position]]])
doPlayerSendChannelMessage(cid, author, message, MessageClasses, channel)
doCreatureChannelSay(cid, targetId, MessageClasses, message, channel[, time])
doPlayerOpenChannel(cid, channelId)
doPlayerSendChannels(cid[, list])
doPlayerAddMoney(cid, money)
doPlayerRemoveMoney(cid, money)
doPlayerTransferMoneyTo(cid, target, money)
doShowTextDialog(cid, itemid[, (text/canWrite)[, (canWrite/length)[, length]]])
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, destination, position)
doCreateMonster(name, pos[, extend = false[, force = false]])
doCreateNpc(name, pos)
doSummonMonster(cid, name)
doConvinceCreature(cid, target)
doMonsterSetTarget(cid, target)
doMonsterChangeTarget(cid)
doAddCondition(cid, condition)
doRemoveCondition(cid, type[, subId = 0])
doRemoveConditions(cid[, onlyPersistent])
doRemoveCreature(cid[, forceLogout = true])
doMoveCreature(cid, direction[, flag = FLAG_NOLIMIT])
doSteerCreature(cid, position[, maxNodes])
doPlayerSetPzLocked(cid, locked)
doPlayerSetTown(cid, townid)
doPlayerSetVocation(cid,voc)
doPlayerRemoveItem(cid, itemid[, count[, subType = -1[, ignoreEquipped = false]]])
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])
doCreatureSetDropLoot(cid, doDrop)
doPlayerSetLossPercent(cid, lossType, newPercent)
doPlayerSetLossSkill(cid, doLose)
doPlayerSwitchSaving(cid)
doPlayerSave(cid[, shallow = false])
doPlayerChangeName(guid, oldName, newName)
doAddContainerItem(uid, itemid[, count/subType = 1])
doPlayerSetSex(cid, newSex)
doCombat(cid, combat, param)
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)
doChangeSpeed(cid, delta)
doCreatureChangeOutfit(cid, outfit)
doSetMonsterOutfit(cid, name[, time = -1])
doSetItemOutfit(cid, item[, time = -1])
doSetCreatureOutfit(cid, outfit[, time = -1])
doPlayerAddDialog(dialog, dialogId, cid, callback) - callback parameters (cid, button, choice); dialogId >= 1000
doPlayerPopupFYI(cid, message)
doPlayerSendTutorial(cid, id)
doPlayerSendMailByName(name, item[, town[, actor]])
doPlayerAddMapMark(cid, pos, type[, description])
doPlayerAddPremiumDays(cid, days)
doCreatureSetLookDirection(cid, dir)
doCreatureSetGuildEmblem(cid, emblem)
doCreatureSetPartyShield(cid, shield)
doCreatureSetSkullType(cid, skull)
doPlayerSetSkullEnd(cid, time, type)
doPlayerAddBlessing(cid, blessing)
doPlayerSetPVPBlessing(cid[, value])
doPlayerSetStamina(cid, minutes)
doPlayerSetBalance(cid, balance)
doCreatureSetNoMove(cid, block)
doPlayerSetIdleTime(cid, amount)
doPlayerSetRate(cid, type, value)
doPlayerSetPartner(cid, guid)
doPlayerFollowCreature(cid, target)
doPlayerJoinParty(cid, lid)
doPlayerLeaveParty(cid[, forced = false])
doPlayerAddMount(cid, mountId)
doPlayerRemoveMount(cid, mountId)
doPlayerSetMounted(cid, mounting[, force])
doItemSetAttribute(uid, key, value)
doItemEraseAttribute(uid, key)
doAddIpBanishment(...)
doAddPlayerBanishment(...)
doAddAccountBanishment(...)
doAddAccountWarnings(...)
doAddNotation(...)
doRemoveIpBanishment(ip[, mask])
doRemovePlayerBanishment(name/guid, type)
doRemoveAccountBanishment(accountId[, playerId])
doRemoveAccountWarnings(accountId[, warnings])
doRemoveNotations(accountId[, playerId])
doPlayerSendExtendedOpcode(cid, opcode, buffer)
doWaypointAddTemporial(name, pos)
doSetGameState(id)
doExecuteRaid(name)
doCreatureExecuteTalkAction(cid, text[, ignoreAccess = false[, channelId = CHANNEL_DEFAULT]])
doReloadInfo(id[, cid])
doSaveServer([flags = 13])
doSaveHouse({list})
doCleanHouse(houseId)
doCleanMap()
doRefreshMap()
doPlayerSetWalkthrough(cid, uid, walkthrough)
doGuildAddEnemy(guild, enemy, war, type)
doGuildRemoveEnemy(guild, enemy)
doUpdateHouseAuctions()
//db
db.query(query)
db.storeQuery(query)
db.escapeString(str)
db.escapeBlob(s, length)
db.lastInsertId()
db.stringComparer()
db.updateLimiter()
db.connected()
db.tableExists(name)
db.transBegin()
db.transRollback()
db.transCommit()
//result table
Result:getID()
Result:setID(_id)
Result:getQuery()
Result:setQuery(_query)
Result:create(_query)
Result:getRows(free)
Result:getDataInt(s)
Result:getDataString(s)
Result:getDataStream(s)
Result:getDataLong(s)
result.getDataInt(resId, s)
result.getDataLong(resId, s)
result.getDataString(resId, s)
result.getDataStream(resId, s, length)
result.next(resId)
db.getResult(query)
result.free(resId)
//bit table
#bit.cast
bit.bnot
bit.band(type, n)
bit.bor(type, n)
bit.bxor(type, n)
bit.lshift(type, n)
bit.rshift(type, n)
#bit.arshift
#bit.ucast
bit.ubnot
bit.uband(type, n)
bit.ubor(type, n)
bit.ubxor(type, n)
bit.ulshift(type, n)
bit.urshift(type, n)
#bit.uarshift
//others
createCombatArea({area}[, {extArea}])
createConditionObject(type[, ticks = 0[, buff = false[, subId = 0[, conditionId = CONDITIONID_COMBAT]]]])
runThread(co)
createThread(data)
table.serialize(x, recur)
table.unserialize(str)
loadmodlib(lib)
domodlib(lib)
dodirectory(dir[, recursively = false])
errors(var)
os table
db table
result table
std table
os.mtime()
choose(...)
playerExists(name, multiworld)
Position(x, y, z, stackpos)
addDamageCondition(condition, rounds, time, value)
addOutfitCondition(condition, outfit)
createCombatObject()
numberToVariant(number)
stringToVariant(string)
positionToVariant(pos)
targetPositionToVariant(pos)
variantToNumber(var)
variantToString(var)
variantToPosition(var)
addEvent(callback, delay, ...)
stopEvent(eventid)
canPlayerRideMount(cid, mountId)
hasItemProperty(uid, prop)
hasPlayerClient(cid)
hasMonsterRaid(cid)
canPlayerWearOutfit(cid, looktype[, addon = 0])
canPlayerWearOutfitId(cid, outfitId[, addon = 0])
hasCreatureCondition(cid, condition[, subId = 0[, conditionId = (both)]])
registerCreatureEvent(uid, name)
unregisterCreatureEvent(uid, name)
unregisterCreatureEventType(uid, type)
exhaustion.check(cid, storage)
exhaustion.get(cid, storage)
exhaustion.set(cid, storage, time)
exhaustion.make(cid, storage, time)
table.find(table, value)
table.isStrIn(txt, str)
table.countElements(table, item)
table.getCombinations(table, num)
string.split(str)
string.trim(str)
string.explode(str, sep)
//compats
table.getPos = table.find
doSetCreatureDropLoot = doCreatureSetDropLoot
doPlayerSay = doCreatureSay
doPlayerAddMana = doCreatureAddMana
playerLearnInstantSpell = doPlayerLearnInstantSpell
doPlayerRemOutfit = doPlayerRemoveOutfit
pay = doPlayerRemoveMoney
broadcastMessage = doBroadcastMessage
getPlayerName = getCreatureName
getPlayerPosition = getCreaturePosition
getCreaturePos = getCreaturePosition
creatureGetPosition = getCreaturePosition
getPlayerMana = getCreatureMana
getPlayerMaxMana = getCreatureMaxMana
hasCondition = getCreatureCondition
isMoveable = isMovable
isItemMoveable = isItemMovable
saveData = saveServer
savePlayers = saveServer
getPlayerSkill = getPlayerSkillLevel
getPlayerSkullType = getCreatureSkullType
getAccountNumberByName = getAccountIdByName
getIPByName = getIpByName
getPlayersByIP = getPlayersByIp
getThingfromPos = getThingFromPos
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
doPlayerSetNoMove = doCreatureSetNoMove
getPlayerNoMove = getCreatureNoMove
getConfigInfo = getConfigValue[/LUA]
My?l? ?e ka?demu si? to przyda a w szczeg?lno?ci nowicjuszom.
#Planuje doda? FUNKCJE NPC
Pozdrawiam
Kahras
Tworze tutaj ten temat poniewa? przez ostanie czasy du?o u?ytkownik?w na tym forum tworzy?o "nowe LUA"!
Niekt?rzy nie wiedz? ?e w folderze DOC znajd? funkcje ale oczywi?cie nie wszystkie dowodem jest: click.
Ja postanowi?em to uzupe?ni? i specjalnie dla was to doda?!
Og?lnie funkcje wyci??em z luascript.cpp + folder LIB < - (TFS'a 0.4(9.80-86 r.5960).
Lista funkcji:
[LUA]//is
isPrivateChannel(channelId)
isValidPosition(position)
isSorcerer(cid)
isDruid(cid)
isPaladin(cid)
isKnight(cid)
isRookie(cid)
isPlayer(cid)
isPlayerGhost(cid)
isMonster(cid)
isNpc(cid)
isUnderWater(cid)
isPlayerPzLocked(cid)
isPlayerSaving(cid)
isPlayerProtected(cid)
isCreature(cid)
isIpBanished(ip[, mask])
isPlayerBanished(name/guid, type)
isAccountBanished(accountId[, playerId])
isSightClear(fromPos, toPos, floorCheck)
isMovable(uid)
isInArray(array, value, caseSensitive)
isPremium(cid)
isPlayerUsingOtclient(cid)
isNumeric(str)
isCorpse(uid)
isItemMovable(itemid)
isItemFluidContainer(itemid)
isItemContainer(itemid)
isItemDoor(itemid)
isItemRune(itemid)
isItemStackable(itemid)
isContainer(uid)
isInParty(cid)
isSummon(cid)
isInRange(position, fromPosition, toPosition)
//set
setCreatureMaxHealth(cid, health)
setCreatureMaxMana(cid, mana)
setPlayerStorageValue(uid, valueid, newvalue)
setPlayerGroupId(cid, newGroupId)
setPlayerPromotionLevel(cid, level)
setPlayerStamina(cid, minutes)
setPlayerExtraExpRate(cid, value)
setPlayerPartner(cid, guid)
setHouseOwner(houseid, ownerGUID)
setHouseAccessList(houseid, listid, listtext)
setItemName(uid)
setItemPluralName(uid)
setItemArticle(uid)
setItemAttack(uid, attack)
setItemExtraAttack(uid, extraattack)
setItemDefense(uid, defense)
setItemArmor(uid, armor)
setItemExtraDefense(uid, extradefense)
setItemAttackSpeed(uid, attackspeed)
setItemHitChance(uid, hitChance)
setItemShootRange(uid, shootRange)
setGlobalStorageValue(valueid, newvalue)
setCombatArea(combat, area)
setCombatCondition(combat, condition)
setCombatParam(combat, key, value)
setConditionParam(condition, key, value)
setCombatCallBack(combat, key, function_name)
setCombatFormula(combat, type, mina, minb, maxa, maxb[, minl, maxl[, minm, maxm[, minc[, maxc]]]])
setConditionFormula(combat, mina, minb, maxa, maxb)
setCreatureMaxHealth(cid, health)
setCreatureMaxMana(cid, mana)
setHouseAccessList(houseid, listid, listtext)
setWorldType(type)
setHouseOwner(houseId, owner[, clean = true])
//get
getArea(position, x, y)
getDistanceBetween(fromPosition, toPosition)
getDirectionTo(pos1, pos2)
getCreatureLookPosition(cid)
getPositionByDirection(position, direction, size)
getItemLevelDoor(itemid)
getItemRWInfo(uid)
getItemWeaponType(uid)
getItemDate(uid)
getItemWriter(uid)
getTilePzInfo(pos)
getTileZoneInfo(pos)
getItemTopParent(uid)
getItemHolder(uid)
getItemWeightById(itemid, count, precision)
getPlayerByName(name)
getPlayersOnlineEx()
getExperienceForLevel(lv)
getTibiaTime(num)
getMonthDayEnding(day)
getMonthString(m)
getArticle(str)
getCreatureHealth(cid)
getCreatureMaxHealth(cid[, ignoreModifiers = false])
getCreatureMana(cid)
getCreatureMaxMana(cid[, ignoreModifiers = false])
getCreatureHideHealth(cid)
getCreatureSpeakType(cid)
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)
getPlayerSpecialDescription(cid)
getPlayerAccountId(cid)
getPlayerAccount(cid)
getPlayerFlagValue(cid, flag)
getPlayerCustomFlagValue(cid, flag)
getPlayerPromotionLevel(cid)
getPlayerGroupId(cid)
getPlayerLearnedInstantSpell(cid, name)
getPlayerInstantSpellCount(cid)
getPlayerInstantSpellInfo(cid, index)
getInstantSpellInfo(cid, name)
getCreatureStorageList(cid)
getCreatureStorage(uid, key)
getStorageList()
getStorage(key)
getChannelUsers(channelId)
getPlayersOnline()
getTileInfo(pos)
getThingFromPosition(pos)
getThing(uid[, recursive = RECURSE_FIRST])
getThingPosition(uid)
getTileItemById(pos, itemId[, subType = -1])
getTileItemByType(pos, type)
getTileThingByPos(pos)
getTopCreature(pos)
getSearchString(fromPosition, toPosition[, fromIsCreature = false[, toIsCreature = false]])
getClosestFreeTile(cid, targetpos[, extended = false[, ignoreHouse = true]])
getMonsterTargetList(cid)
getMonsterFriendList(cid)
getMonsterInfo(name)
getCreatureConditionInfo(cid, condition[, subId = 0[, conditionId = CONDITIONID_COMBAT]])
getPlayerLossPercent(cid, lossType)
getContainerSize(uid)
getContainerCap(uid)
getCreatureByName(name)
getPlayerLossSkill(cid)
getPlayerByGUID(guid)
getPlayerByNameWildcard(name~[, ret = false])
getPlayerGUIDByName(name[, multiworld = false])
getPlayerNameByGUID(guid[, multiworld = false])
getContainerItem(uid, slot)
getHouseInfo(houseId[, full = true])
getHouseAccessList(houseid, listId)
getHouseByPlayerGUID(playerGUID)
getHouseFromPosition(pos)
getWorldType()
getWorldTime()
getWorldLight()
getWorldCreatures(type)
getWorldUpTime()
getGuildId(guildName)
getGuildMotd(guildId)
getPlayerSex(cid[, full = false])
getCreatureOutfit(cid)
getCreatureLastPosition(cid)
getCreatureName(cid)
getCreatureSpeed(cid)
getCreatureBaseSpeed(cid)
getCreatureTarget(cid)
getPlayersByAccountId(accId)
getAccountIdByName(name)
getAccountByName(name)
getAccountIdByAccount(accName)
getAccountByAccountId(accId)
getAccountFlagValue(name/id)
getAccountCustomFlagValue(name/id)
getIpByName(name)
getPlayersByIp(ip[, mask = 0xFFFFFFFF])
getCreatureSkullType(cid[, target])
getCreaturePartyShield(cid[, target])
getPlayerPremiumDays(cid)
getCreatureGuildEmblem(cid[, target])
getPlayerSkullEnd(cid)
getPlayerBlessing(cid, blessing)
getPlayerPVPBlessing(cid)
getPlayerStamina(cid)
getPlayerBalance(cid)
getCreatureNoMove(cid)
getPlayerIdleTime(cid)
getPlayerLastLoad(cid)
getPlayerLastLogin(cid)
getPlayerAccountManager(cid)
getPlayerTradeState(cid)
getPlayerOperatingSystem(cid)
getPlayerClientVersion(cid)
getPlayerModes(cid)
getPlayerRates(cid)
getPlayerPartner(cid)
getPlayerParty(cid)
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)
getItemInfo(itemid)
getItemAttribute(uid, key)
getItemWeight(uid[, precise = true])
getItemParent(uid)
getAccountWarnings(accountId)
getNotationsCount(accountId[, playerId])
getBanData(value[, type[, param]])
getBanList(type[, value[, param]])
getExperienceStage(level)
getDataDir()
getLogsDir()
getConfigFile()
getConfigValue(key)
getModList()
getWaypointPosition(name)
getGameState()
getItemSpecialDescription(uid)
getItemText(uid)
getItemArticle(uid)
getItemPluralName(uid)
getItemName(uid)
getItemArticleById(itemid)
getItemPluralNameById(itemid)
getItemNameById(itemid)
getHouseTilesCount(houseId)
getHouseBedsCount(houseId)
getHouseDoorsCount(houseId)
getHouseTown(houseId)
getHousePrice(houseId)
getHouseRent(houseId)
getHouseEntry(houseId)
getHouseName(houseId)
getHouseOwner(houseId)
getPlayerMasterPos(cid)
getPromotedVocation(vid)
getPlayerVocationName(cid)
getPlayerGroupName(cid)
getItemDescriptions(uid)
getDepotId(uid)
getFluidSourceType(itemid)
getMonsterSummonList(name)
getMonsterLootList(name)
getMonsterHealingSpells(name)
getMonsterAttackSpells(name)
getContainerCapById(itemid)
//do
doComparePositions(position, positionEx)
doConvertIntegerToIp(int, mask)
doConvertIpToInteger(str)
doRevertIp(str)
doSendAnimatedText(...)
doPlayerSendToChannel(cid, target, type, text, channel, time)
doItemSetActionId(uid, aid)
doRemoveThing(uid)
doPlayerSetMagicRate(cid, value)
doPlayerSetExperienceRate(cid, value)
doPlayerResetIdleTime(cid)
doChangeTypeItem(uid, subtype)
doShutdown()
doPlayerRemovePremiumDays(cid, days)
doSetItemSpecialDescription(uid, str)
doPlayerWithdrawAllMoney(cid)
doPlayerDepositAllMoney(cid)
doPlayerTransferAllMoneyTo(cid, target)
doPlayerBuyItemContainer(cid, containerid, itemid, count, cost, charges)
doPlayerBuyItem(cid, itemid, count, cost, charges)
doPlayerAddExpEx(cid, amount)
doSetItemText(uid, text, writer, date)
doCopyItem(item, attributes)
doPlayerBroadcastMessage(cid, text, class, checkFlag, ghost)
doBroadcastMessage(text, class)
doPlayerAddLevel(cid, amount, round)
doPlayerAddMagLevel(cid, amount)
doPlayerAddSkill(cid, skill, amount, round)
doSummonCreature(name, pos)
doMutePlayer(cid, time)
doNumberFormat(i)
doPlayerAddAddons(cid, addon)
doWriteLogFile(file, text)
doCreatureSetHideHealth(cid, hide)
doPlayerSetOfflineTrainingSkill(cid, skill)
doCreatureSetSpeakType(cid, type)
doPlayerSetNameDescription(cid, desc)
doPlayerSetSpecialDescription(cid, desc)
doPlayerSetPromotionLevel(cid, level)
doPlayerSetGroupId(cid, newGroupId)
doPlayerSendOutfitWindow(cid)
doPlayerLearnInstantSpell(cid, name)
doPlayerUnlearnInstantSpell(cid, name)
doCreatureCastSpell(uid, spell)
doCreatureSetStorage(uid, key, value)
doSetStorage(key, value)
doPlayerGiveItem(cid, itemid, amount, subType)
doPlayerGiveItemContainer(cid, containerid, itemid, amount, subType)
doPlayerTakeItem(cid, itemid, amount)
doPlayerSellItem(cid, itemid, count, cost)
doPlayerWithdrawMoney(cid, amount)
doPlayerDepositMoney(cid, amount)
doTileQueryAdd(uid, pos[, flags])
doItemRaidUnref(uid)
doPlayerAddStamina(cid, minutes)
doRemoveItem(uid[, count = -1])
doPlayerFeed(cid, food)
doPlayerSendCancel(cid, text)
doPlayerSendDefaultCancel(cid, ReturnValue)
doTeleportThing(cid, destination[, pushmove = true[, fullTeleport = true]])
doItemSetDestination(uid, destination)
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])
doPlayerAddSkillTry(cid, skillid, n[, useMultiplier = true])
doCreatureAddHealth(cid, health[, hitEffect[, hitColor[, force]]])
doCreatureAddMana(cid, mana)
doPlayerSetMaxCapacity(cid, cap)
doPlayerAddSpentMana(cid, amount[, useMultiplier = true])
doPlayerAddSoul(cid, amount)
doPlayerAddItem(cid, itemid[, count/subtype = 1[, canDropOnMap = true[, slot = 0]]])
doPlayerAddItemEx(cid, uid[, canDropOnMap = false[, slot = 0]])
doPlayerSendTextMessage(cid, MessageClasses, message[, value[, color[, position]]])
doPlayerSendChannelMessage(cid, author, message, MessageClasses, channel)
doCreatureChannelSay(cid, targetId, MessageClasses, message, channel[, time])
doPlayerOpenChannel(cid, channelId)
doPlayerSendChannels(cid[, list])
doPlayerAddMoney(cid, money)
doPlayerRemoveMoney(cid, money)
doPlayerTransferMoneyTo(cid, target, money)
doShowTextDialog(cid, itemid[, (text/canWrite)[, (canWrite/length)[, length]]])
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, destination, position)
doCreateMonster(name, pos[, extend = false[, force = false]])
doCreateNpc(name, pos)
doSummonMonster(cid, name)
doConvinceCreature(cid, target)
doMonsterSetTarget(cid, target)
doMonsterChangeTarget(cid)
doAddCondition(cid, condition)
doRemoveCondition(cid, type[, subId = 0])
doRemoveConditions(cid[, onlyPersistent])
doRemoveCreature(cid[, forceLogout = true])
doMoveCreature(cid, direction[, flag = FLAG_NOLIMIT])
doSteerCreature(cid, position[, maxNodes])
doPlayerSetPzLocked(cid, locked)
doPlayerSetTown(cid, townid)
doPlayerSetVocation(cid,voc)
doPlayerRemoveItem(cid, itemid[, count[, subType = -1[, ignoreEquipped = false]]])
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])
doCreatureSetDropLoot(cid, doDrop)
doPlayerSetLossPercent(cid, lossType, newPercent)
doPlayerSetLossSkill(cid, doLose)
doPlayerSwitchSaving(cid)
doPlayerSave(cid[, shallow = false])
doPlayerChangeName(guid, oldName, newName)
doAddContainerItem(uid, itemid[, count/subType = 1])
doPlayerSetSex(cid, newSex)
doCombat(cid, combat, param)
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)
doChangeSpeed(cid, delta)
doCreatureChangeOutfit(cid, outfit)
doSetMonsterOutfit(cid, name[, time = -1])
doSetItemOutfit(cid, item[, time = -1])
doSetCreatureOutfit(cid, outfit[, time = -1])
doPlayerAddDialog(dialog, dialogId, cid, callback) - callback parameters (cid, button, choice); dialogId >= 1000
doPlayerPopupFYI(cid, message)
doPlayerSendTutorial(cid, id)
doPlayerSendMailByName(name, item[, town[, actor]])
doPlayerAddMapMark(cid, pos, type[, description])
doPlayerAddPremiumDays(cid, days)
doCreatureSetLookDirection(cid, dir)
doCreatureSetGuildEmblem(cid, emblem)
doCreatureSetPartyShield(cid, shield)
doCreatureSetSkullType(cid, skull)
doPlayerSetSkullEnd(cid, time, type)
doPlayerAddBlessing(cid, blessing)
doPlayerSetPVPBlessing(cid[, value])
doPlayerSetStamina(cid, minutes)
doPlayerSetBalance(cid, balance)
doCreatureSetNoMove(cid, block)
doPlayerSetIdleTime(cid, amount)
doPlayerSetRate(cid, type, value)
doPlayerSetPartner(cid, guid)
doPlayerFollowCreature(cid, target)
doPlayerJoinParty(cid, lid)
doPlayerLeaveParty(cid[, forced = false])
doPlayerAddMount(cid, mountId)
doPlayerRemoveMount(cid, mountId)
doPlayerSetMounted(cid, mounting[, force])
doItemSetAttribute(uid, key, value)
doItemEraseAttribute(uid, key)
doAddIpBanishment(...)
doAddPlayerBanishment(...)
doAddAccountBanishment(...)
doAddAccountWarnings(...)
doAddNotation(...)
doRemoveIpBanishment(ip[, mask])
doRemovePlayerBanishment(name/guid, type)
doRemoveAccountBanishment(accountId[, playerId])
doRemoveAccountWarnings(accountId[, warnings])
doRemoveNotations(accountId[, playerId])
doPlayerSendExtendedOpcode(cid, opcode, buffer)
doWaypointAddTemporial(name, pos)
doSetGameState(id)
doExecuteRaid(name)
doCreatureExecuteTalkAction(cid, text[, ignoreAccess = false[, channelId = CHANNEL_DEFAULT]])
doReloadInfo(id[, cid])
doSaveServer([flags = 13])
doSaveHouse({list})
doCleanHouse(houseId)
doCleanMap()
doRefreshMap()
doPlayerSetWalkthrough(cid, uid, walkthrough)
doGuildAddEnemy(guild, enemy, war, type)
doGuildRemoveEnemy(guild, enemy)
doUpdateHouseAuctions()
//db
db.query(query)
db.storeQuery(query)
db.escapeString(str)
db.escapeBlob(s, length)
db.lastInsertId()
db.stringComparer()
db.updateLimiter()
db.connected()
db.tableExists(name)
db.transBegin()
db.transRollback()
db.transCommit()
//result table
Result:getID()
Result:setID(_id)
Result:getQuery()
Result:setQuery(_query)
Result:create(_query)
Result:getRows(free)
Result:getDataInt(s)
Result:getDataString(s)
Result:getDataStream(s)
Result:getDataLong(s)
result.getDataInt(resId, s)
result.getDataLong(resId, s)
result.getDataString(resId, s)
result.getDataStream(resId, s, length)
result.next(resId)
db.getResult(query)
result.free(resId)
//bit table
#bit.cast
bit.bnot
bit.band(type, n)
bit.bor(type, n)
bit.bxor(type, n)
bit.lshift(type, n)
bit.rshift(type, n)
#bit.arshift
#bit.ucast
bit.ubnot
bit.uband(type, n)
bit.ubor(type, n)
bit.ubxor(type, n)
bit.ulshift(type, n)
bit.urshift(type, n)
#bit.uarshift
//others
createCombatArea({area}[, {extArea}])
createConditionObject(type[, ticks = 0[, buff = false[, subId = 0[, conditionId = CONDITIONID_COMBAT]]]])
runThread(co)
createThread(data)
table.serialize(x, recur)
table.unserialize(str)
loadmodlib(lib)
domodlib(lib)
dodirectory(dir[, recursively = false])
errors(var)
os table
db table
result table
std table
os.mtime()
choose(...)
playerExists(name, multiworld)
Position(x, y, z, stackpos)
addDamageCondition(condition, rounds, time, value)
addOutfitCondition(condition, outfit)
createCombatObject()
numberToVariant(number)
stringToVariant(string)
positionToVariant(pos)
targetPositionToVariant(pos)
variantToNumber(var)
variantToString(var)
variantToPosition(var)
addEvent(callback, delay, ...)
stopEvent(eventid)
canPlayerRideMount(cid, mountId)
hasItemProperty(uid, prop)
hasPlayerClient(cid)
hasMonsterRaid(cid)
canPlayerWearOutfit(cid, looktype[, addon = 0])
canPlayerWearOutfitId(cid, outfitId[, addon = 0])
hasCreatureCondition(cid, condition[, subId = 0[, conditionId = (both)]])
registerCreatureEvent(uid, name)
unregisterCreatureEvent(uid, name)
unregisterCreatureEventType(uid, type)
exhaustion.check(cid, storage)
exhaustion.get(cid, storage)
exhaustion.set(cid, storage, time)
exhaustion.make(cid, storage, time)
table.find(table, value)
table.isStrIn(txt, str)
table.countElements(table, item)
table.getCombinations(table, num)
string.split(str)
string.trim(str)
string.explode(str, sep)
//compats
table.getPos = table.find
doSetCreatureDropLoot = doCreatureSetDropLoot
doPlayerSay = doCreatureSay
doPlayerAddMana = doCreatureAddMana
playerLearnInstantSpell = doPlayerLearnInstantSpell
doPlayerRemOutfit = doPlayerRemoveOutfit
pay = doPlayerRemoveMoney
broadcastMessage = doBroadcastMessage
getPlayerName = getCreatureName
getPlayerPosition = getCreaturePosition
getCreaturePos = getCreaturePosition
creatureGetPosition = getCreaturePosition
getPlayerMana = getCreatureMana
getPlayerMaxMana = getCreatureMaxMana
hasCondition = getCreatureCondition
isMoveable = isMovable
isItemMoveable = isItemMovable
saveData = saveServer
savePlayers = saveServer
getPlayerSkill = getPlayerSkillLevel
getPlayerSkullType = getCreatureSkullType
getAccountNumberByName = getAccountIdByName
getIPByName = getIpByName
getPlayersByIP = getPlayersByIp
getThingfromPos = getThingFromPos
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
doPlayerSetNoMove = doCreatureSetNoMove
getPlayerNoMove = getCreatureNoMove
getConfigInfo = getConfigValue[/LUA]
My?l? ?e ka?demu si? to przyda a w szczeg?lno?ci nowicjuszom.
#Planuje doda? FUNKCJE NPC
Pozdrawiam
Kahras