Eihrenjar

tfs 1.0 lua-made lua functions

Jan 17th, 2014
4,713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.50 KB | None | 0 0
  1. doCreatureSayWithRadius(cid, text, type, radiusx, radiusy, position)
  2. getBlessingsCost(level)
  3. getPvpBlessingCost(level)
  4. isInRange(pos, fromPos, toPos)
  5. isPremium(cid)
  6. isNumber(str)
  7. getDistanceBetween(firstPosition, secondPosition)
  8. isSorcerer(cid)
  9. isDruid(cid)
  10. isPaladin(cid)
  11. isKnight(cid)
  12. getTibianTime()
  13. doForceSummonCreature(name, pos)
  14. Game.getStorageValue(key)
  15. Game.setStorageValue(key, value)
  16. Game.convertIpToString(ip)
  17. Position.getNextPosition(self, direction, steps)
  18. Creature.getClosestFreePosition(self, position, extended)
  19. Player.sendCancelMessage(self, message)
  20. Player.feed(self, food)
  21. Player.isUsingOtClient(self)
  22. Player.sendExtendedOpcode(self, opcode, buffer)
  23. string.split(str, sep)
  24. pushThing(thing)
  25. isCreature(cid)
  26. isPlayer(cid)
  27. isMonster(cid)
  28. isSummon(cid)
  29. isNpc(cid)
  30. isItem(uid)
  31. isContainer(uid)
  32. getCreatureName(cid)
  33. getCreatureHealth(cid)
  34. getCreatureMaxHealth(cid)
  35. getCreaturePosition(cid)
  36. getCreatureOutfit(cid)
  37. getCreatureSpeed(cid)
  38. getCreatureBaseSpeed(cid)
  39. getCreatureTarget(cid)
  40. getCreatureMaster(cid)
  41. getCreatureSummons(cid)
  42. doCreatureAddHealth(cid, health)
  43. doRemoveCreature(cid)
  44. doCreatureSetLookDir(cid, direction)
  45. doCreatureSay(cid, text, type, ...)
  46. doCreatureChangeOutfit(cid, outfit)
  47. doSetCreatureDropLoot(cid, doDrop)
  48. registerCreatureEvent(cid, name)
  49. unregisterCreatureEvent(cid, name)
  50. getPlayerByName(name)
  51. getIPByPlayerName(name)
  52. getPlayerGUID(cid)
  53. getPlayerIp(cid)
  54. getPlayerAccountType(cid)
  55. getPlayerLastLoginSaved(cid)
  56. getPlayerName(cid)
  57. getPlayerFreeCap(cid)
  58. getPlayerPosition(cid)
  59. getPlayerMagLevel(cid)
  60. getPlayerAccess(cid)
  61. getPlayerSkill(cid, skillId)
  62. getPlayerMana(cid)
  63. getPlayerMaxMana(cid)
  64. getPlayerLevel(cid)
  65. getPlayerTown(cid)
  66. getPlayerVocation(cid)
  67. getPlayerSoul(cid)
  68. getPlayerSex(cid)
  69. getPlayerStorageValue(cid, key)
  70. getPlayerBalance(cid)
  71. getPlayerMoney(cid)
  72. getPlayerGroupId(cid)
  73. getPlayerLookDir(cid)
  74. getPlayerLight(cid)
  75. getPlayerDepotItems(cid, depotId)
  76. getPlayerSkullType(cid)
  77. getPlayerLossPercent(cid)
  78. getPlayerMount(cid, mountId)
  79. getPlayerPremiumDays(cid)
  80. getPlayerBlessing(cid, blessing)
  81. getPlayerParty(cid)
  82. getPlayerGuildId(cid)
  83. getPlayerGuildLevel(cid)
  84. getPlayerGuildName(cid)
  85. getPlayerGuildRank(cid)
  86. getPlayerGuildNick(cid)
  87. getPlayerMasterPos(cid)
  88. getPlayerItemCount(cid, itemId, ...)
  89. getPlayerSlotItem(cid, slot)
  90. getPlayerItemById(cid, deepSearch, itemId, ...)
  91. getPlayerFood(cid)
  92. canPlayerLearnInstantSpell(cid, name)
  93. getPlayerLearnedInstantSpell(cid, name)
  94. isPlayerGhost(cid)
  95. isPlayerPzLocked(cid)
  96. getPlayersByIPAddress(ip, mask)
  97. getOnlinePlayers()
  98. getPlayersByAccountNumber(accountNumber)
  99. getPlayerGUIDByName(name)
  100. getAccountNumberByPlayerName(name)
  101. setPlayerStorageValue(cid, key, value)
  102. doPlayerSetBalance(cid, balance)
  103. doPlayerAddMoney(cid, money)
  104. doPlayerRemoveMoney(cid, money)
  105. doPlayerAddSoul(cid, soul)
  106. doPlayerSetVocation(cid, vocation)
  107. doPlayerSetTown(cid, town)
  108. setPlayerGroupId(cid, groupId)
  109. doPlayerSetSex(cid, sex)
  110. doPlayerSetGuildLevel(cid, level)
  111. doPlayerSetGuildNick(cid, nick)
  112. doShowTextDialog(cid, itemId, text)
  113. doPlayerAddItemEx(cid, uid, ...)
  114. doPlayerAddPremiumDays(cid, days)
  115. doPlayerRemovePremiumDays(cid, days)
  116. doPlayerAddBlessing(cid, blessing)
  117. doPlayerAddOutfit(cid, lookType, addons)
  118. doPlayerRemOutfit(cid, lookType, addons)
  119. canPlayerWearOutfit(cid, lookType, addons)
  120. doPlayerAddMount(cid, mountId)
  121. doPlayerRemoveMount(cid, mountId)
  122. doPlayerSendCancel(cid, text)
  123. doPlayerFeed(cid, food)
  124. playerLearnInstantSpell(cid, name)
  125. doPlayerPopupFYI(cid, message)
  126. doSendTutorial(cid, tutorialId)
  127. doAddMapMark(cid, pos, type, description)
  128. doPlayerSendTextMessage(cid, type, text, ...)
  129. doPlayerAddExp(cid, exp, useMult, ...)
  130. doPlayerAddManaSpent(cid, mana)
  131. doPlayerAddSkillTry(cid, skillid, n)
  132. doPlayerAddMana(cid, mana, ...)
  133. doPlayerJoinParty(cid, leaderId)
  134. getPartyMembers(cid)
  135. getMonsterTargetList(cid)
  136. getMonsterFriendList(cid)
  137. doSetMonsterTarget(cid, target)
  138. doMonsterChangeTarget(cid)
  139. doConvinceCreature(cid, target)
  140. getTownId(townName)
  141. getTownName(townId)
  142. getTownTemplePosition(townId)
  143. doSetItemActionId(uid, actionId)
  144. doTransformItem(uid, newItemId, ...)
  145. doRemoveItem(uid, ...)
  146. getContainerSize(uid)
  147. getContainerCap(uid)
  148. getContainerItem(uid, slot)
  149. doAddContainerItemEx(uid, virtualId)
  150. doSendMagicEffect(pos, magicEffect, ...)
  151. doSendDistanceShoot(fromPos, toPos, distanceEffect, ...)
  152. isSightClear(fromPos, toPos, floorCheck)
  153. getPromotedVocation(vocationId)
  154. getGuildId(guildName)
  155. getHouseName(houseId)
  156. getHouseOwner(houseId)
  157. getHouseEntry(houseId)
  158. getHouseTown(houseId)
  159. getHouseTilesSize(houseId)
  160. isItemStackable(itemId)
  161. isItemRune(itemId)
  162. isItemDoor(itemId)
  163. isItemContainer(itemId)
  164. isItemFluidContainer(itemId)
  165. isItemMovable(itemId)
  166. isCorpse(uid)
  167. getItemName(itemId)
  168. getItemWeight(itemId, ...)
  169. getItemDescriptions(itemId)
  170. getItemIdByName(name)
  171. getItemWeightByUID(uid, ...)
  172. getItemRWInfo(uid)
  173. getContainerCapById(itemId)
  174. getFluidSourceType(itemId)
  175. doSetItemText(uid, text)
  176. doSetItemSpecialDescription(uid, desc)
  177. doDecayItem(uid)
  178. setHouseOwner(id, guid)
  179. getHouseRent(id)
  180. getHouseAccessList(id, listId)
  181. setHouseAccessList(id, listId, listText)
  182. getTilePzInfo(position)
  183. getTileInfo(position)
  184. getTileItemByType(position, itemType)
  185. getTileItemById(position, itemId, ...)
  186. getTileThingByPos(position)
  187. getTileThingByTopOrder(position, topOrder)
  188. getTopCreature(position)
  189. queryTileAddThing(thing, position, ...)
  190. doTeleportThing(uid, dest, pushMovement)
  191. getThing(uid)
  192. getConfigInfo(info)
  193. getWorldCreatures(type)
  194. getGlobalStorageValue(key)
  195. setGlobalStorageValue(key, value)
Advertisement
Add Comment
Please, Sign In to add comment