Drazyn1291

Lua Functions

Dec 28th, 2015
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 12.66 KB | None | 0 0
  1. Get:
  2.  
  3. getPlayerLossSkill(cid)
  4. getPlayerLossPercent(cid, lossType)
  5. getCreatureHealth(cid) // Retorna a Health atual do player
  6. getCreatureMaxHealth(cid[, ignoreModifiers = false]) // Retorna o MaxHealth do player
  7. getCreatureMana(cid) // Retorna a mana do player
  8. getCreatureMaxMana(cid[, ignoreModifiers = false]) // Retorna a MaxMana do player
  9. getCreatureHideHealth(cid)
  10. getCreatureSpeakType(cid)
  11. getCreatureLookDirection(cid)
  12. getPlayerLevel(cid) // Retorna o level do player
  13. getPlayerExperience(cid) // Retorna toda a experiencia do player
  14. getPlayerMagLevel(cid[, ignoreModifiers = false]) // Retorna o Magic Level do player
  15. getPlayerSpentMana(cid)
  16. getPlayerFood(cid)
  17. getPlayerAccess(cid) // Retorna o Acess do player
  18. getPlayerGhostAccess(cid)
  19. getPlayerSkillLevel(cid, skill[, ignoreModifiers = false])
  20. getPlayerSkillTries(cid, skill)
  21. getPlayerTown(cid) // Retorna a Townid do player
  22. getPlayerVocation(cid) // Retorna a vocationid do player
  23. getPlayerIp(cid) // Retorna o Ip do player
  24. getPlayerRequiredMana(cid, magicLevel)
  25. getPlayerRequiredSkillTries(cid, skillId, skillLevel)
  26. getPlayerItemCount(cid, itemid[, subType = -1])
  27. getPlayerMoney(cid) // Retorna a quantidade de money do player
  28. getPlayerSoul(cid[, ignoreModifiers = false])
  29. getPlayerFreeCap(cid) // Retorna o cap do player
  30. getPlayerLight(cid)
  31. getPlayerSlotItem(cid, slot)
  32. getPlayerWeapon(cid[, ignoreAmmo = false])
  33. getPlayerItemById(cid, deepSearch, itemId[, subType = -1])
  34. getPlayerDepotItems(cid, depotid)
  35. getPlayerGuildId(cid) // Retorna o Guildid do player
  36. getPlayerGuildName(cid) // Retorna o Nome da Guild do Player
  37. getPlayerGuildRankId(cid) // Retorna o Rankid da guild do player
  38. getPlayerGuildRank(cid) // Retorna o rank da guild do player
  39. getPlayerGuildNick(cid)
  40. getPlayerGuildLevel(cid)
  41. getPlayerGUID(cid)
  42. getPlayerNameDescription(cid)
  43. getPlayerSpecialDescription(cid)
  44. getPlayerAccountId(cid)
  45. getPlayerAccount(cid)
  46. getPlayerFlagValue(cid, flag)
  47. getPlayerCustomFlagValue(cid, flag)
  48. getPlayerPromotionLevel(cid)
  49. getPlayerGroupId(cid)
  50. getPlayerInstantSpellCount(cid)
  51. getPlayerLearnedInstantSpell(cid, name)
  52. getPlayerInstantSpellInfo(cid, index)
  53. getInstantSpellInfo(cid, name)
  54. getCreatureStorage(uid, key)
  55. getStorage(key)
  56. getChannelUsers(channelId)
  57. getPlayersOnline()
  58. getTileInfo(pos)
  59. getThingFromPos(pos[, displayError = true])
  60. getThing(uid)
  61. getThingPosition(uid)
  62. getTileItemById(pos, itemId[, subType = -1])
  63. getTileItemByType(pos, type)
  64. getTileThingByPos(pos)
  65. getTopCreature(pos)
  66. getSearchString(fromPosition, toPosition[, fromIsCreature = false[, toIsCreature = false]])
  67. getClosestFreeTile(cid, targetpos[, extended = false[, ignoreHouse = true]])
  68. getCreatureByName(name)
  69. getPlayerByGUID(guid)
  70. getPlayerByNameWildcard(name~[, ret = false])
  71. getPlayerGUIDByName(name[, multiworld = false])
  72. getPlayerNameByGUID(guid[, multiworld = false[, displayError = true]])
  73. getContainerSize(uid)
  74. getContainerCap(uid)
  75. getContainerItems(uid)
  76. getContainerItem(uid, slot)
  77. getHouseInfo(houseId[, displayError = true])
  78. getHouseAccessList(houseid, listId)
  79. getHouseByPlayerGUID(playerGUID)
  80. getHouseFromPos(pos)
  81. getWorldType()
  82. getWorldTime()
  83. getWorldLight()
  84. getWorldCreatures(type)
  85. getWorldUpTime()
  86. getGuildId(guildName)
  87. getGuildMotd(guildId)
  88. getPlayerSex(cid[, full = false])
  89. getCreatureOutfit(cid)
  90. getCreatureLastPosition(cid)
  91. getCreatureName(cid)
  92. getCreatureSpeed(cid)
  93. getCreatureBaseSpeed(cid)
  94. getCreatureTarget(cid)
  95. getPlayersByAccountId(accId)
  96. getAccountIdByName(name)
  97. getAccountByName(name)
  98. getAccountIdByAccount(accName)
  99. getAccountByAccountId(accId)
  100. getIpByName(name)
  101. getPlayersByIp(ip[, mask = 0xFFFFFFFF])
  102. getPlayerPremiumDays(cid)
  103. getCreatureGuildEmblem(cid[, target])
  104. getCreaturePartyShield(cid[, target])
  105. getCreatureSkullType(cid[, target])
  106. getPlayerSkullEnd(cid)
  107. getPlayerBlessing(cid, blessing)
  108. getPlayerStamina(cid)
  109. getPlayerLastLoad(cid)
  110. getPlayerLastLogin(cid)
  111. getPlayerAccountManager(cid)
  112. getPlayerBalance(cid)
  113. getCreatureNoMove(cid)
  114. getPlayerIdleTime(cid)
  115. getPlayerTradeState(cid)
  116. getPlayerModes(cid)
  117. getPlayerRates(cid)
  118. getPlayerPartner(cid)
  119. getPlayerParty(cid)
  120. getPartyMembers(lid)
  121. getCreatureMaster(cid)
  122. getCreatures(cid)
  123. getTownId(townName)
  124. getTownName(townId)
  125. getTownTemplePosition(townId[, displayError])
  126. getTownHouses(townId)
  127. getSpectators(centerPos, rangex, rangey[, multifloor = false])
  128. getVocationInfo(id)
  129. getGroupInfo(id[, premium = false])
  130. getVocationList()
  131. getGroupList()
  132. getChannelList()
  133. getTownList()
  134. getWaypointList()
  135. getTalkActionList()
  136. getExperienceStageList()
  137. getItemIdByName(name[, displayError = true])
  138. getItemInfo(itemid)
  139. getItemAttribute(uid, key)
  140. getItemWeight(uid[, precise = true])
  141. getItemParent(uid)
  142. getNotationsCount(accountId[, playerId])
  143. getStatementsCount(name/guid[, channelId])
  144. getBanData(value[, type[, param]])
  145. getBanReason(id)
  146. getBanAction(id[, ipBanishment = false])
  147. getBanList(type[, value[, param]])
  148. getExperienceStage(level)
  149. getDataDir()
  150. getLogsDir()
  151. getConfigFile()
  152. getConfigValue(key)
  153. getModList()
  154. getHighscoreString(skillId)
  155. getWaypointPosition(name)
  156. getGameState()
  157. getMonsterTargetList(cid)
  158. getMonsterFriendList(cid)
  159. getMonsterInfo(name)
  160. getCreatureCondition(cid, condition[, subId = 0])
  161.  
  162. Do:
  163.  
  164. doPlayerSendChannelsDialog(cid)
  165. doItemSetAttribute(uid, key, value)
  166. doItemEraseAttribute(uid, key)
  167. doPlayerSetNameDescription(cid, desc)
  168. doSaveServer([shallow = false])
  169. doCleanHouse(houseId)
  170. doCleanMap()
  171. doRefreshMap()
  172. doGuildAddEnemy(guild, enemy, war, type)
  173. doGuildRemoveEnemy(guild, enemy)
  174. doUpdateHouseAuctions()
  175. doSetGameState(id)
  176. doExecuteRaid(name)
  177. doCreatureExecuteTalkAction(cid, text[, ignoreAccess = false[, channelId = CHANNEL_DEFAULT]])
  178. doReloadInfo(id[, cid])
  179. doWaypointAddTemporial(name, pos)
  180. doPlayerSendChannelsDialog(cid)
  181. doPlayerJoinParty(cid, lid)
  182. doPlayerLeaveParty(cid[, forced = false])
  183. doPlayerFollowCreature(cid, target)
  184. doPlayerSetPartner(cid, guid)
  185. doPlayerSetRate(cid, type, value)
  186. doPlayerPopupFYI(cid, message)
  187. doPlayerSetSex(cid, newSex)
  188. doAddContainerItem(uid, itemid[, count/subType = 1])
  189. doPlayerSetLossPercent(cid, lossType, newPercent)
  190. doTeleportThing(cid, newpos[, pushmove = true[, fullTeleport = true]])
  191. doTransformItem(uid, newId[, count/subType])
  192. doCreatureSay(uid, text[, type = SPEAK_SAY[, ghost = false[, cid = 0[, pos]]]])
  193. doSendCreatureSquare(cid, color[, player])
  194. doSendMagicEffect(pos, type[, player])
  195. doPlayerSendDefaultCancel(cid, ReturnValue)
  196. doRemoveItem(uid[, count = -1])
  197. doPlayerSendCancel(cid, text)
  198. doItemRaidUnref(uid)
  199. doPlayerFeed(cid, food)
  200. doTileQueryAdd(uid, pos[, flags[, displayError = true]])
  201. doSetStorage(key, value)
  202. doCreatureSetStorage(uid, key, value)
  203. doPlayerSetGroupId(cid, newGroupId)
  204. doPlayerSendOutfitWindow(cid)
  205. doPlayerLearnInstantSpell(cid, name)
  206. doPlayerUnlearnInstantSpell(cid, name)
  207. doPlayerSetPromotionLevel(cid, level)
  208. doPlayerSetSpecialDescription(cid, desc)
  209. doCreatureSetHideHealth(cid, hide)
  210. doCreatureSetSpeakType(cid, type)
  211. doSendDistanceShoot(fromPos, toPos, type[, player])
  212. doSendAnimatedText(pos, text, color[, player])
  213. doPlayerAddSkillTry(cid, skillid, n[, useMultiplier = true])
  214. doCreatureAddHealth(cid, health[, hitEffect[, hitColor[, force]]])
  215. doCreatureAddMana(cid, mana)
  216. doPlayerSetMaxCapacity(cid, cap)
  217. doPlayerAddSpentMana(cid, amount[, useMultiplier = true])
  218. doPlayerAddSoul(cid, amount)
  219. doPlayerAddItem(cid, itemid[, count/subtype = 1[, canDropOnMap = true[, slot = 0]]])
  220. doPlayerAddItemEx(cid, uid[, canDropOnMap = false[, slot = 0]])
  221. doPlayerSendTextMessage(cid, MessageClasses, message)
  222. doPlayerSendChannelMessage(cid, author, message, SpeakClasses, channel)
  223. doPlayerSendToChannel(cid, targetId, SpeakClasses, message, channel[, time])
  224. doPlayerOpenChannel(cid, channelId)
  225. doPlayerAddMoney(cid, money)
  226. doPlayerRemoveMoney(cid, money)
  227. doPlayerTransferMoneyTo(cid, target, money)
  228. doShowTextDialog(cid, itemid, text)
  229. doDecayItem(uid)
  230. doCreateItem(itemid[, type/count], pos)
  231. doCreateItemEx(itemid[, count/subType = -1])
  232. doTileAddItemEx(pos, uid)
  233. doAddContainerItemEx(uid, virtuid)
  234. doRelocate(pos, posTo[, creatures = true[, unmovable = true]])
  235. doCleanTile(pos[, forceMapLoaded = false])
  236. doCreateTeleport(itemid, topos, createpos)
  237. doCreateMonster(name, pos[, extend = false[, force = false[, displayError = true]]])
  238. doCreateNpc(name, pos[, displayError = true])
  239. doSummonMonster(cid, name)
  240. doConvinceCreature(cid, target)
  241. doMonsterSetTarget(cid, target)
  242. doMonsterChangeTarget(cid)
  243. doAddCondition(cid, condition)
  244. doRemoveCondition(cid, type[, subId])
  245. doRemoveConditions(cid[, onlyPersistent])
  246. doRemoveCreature(cid[, forceLogout = true])
  247. doMoveCreature(cid, direction[, flag = FLAG_NOLIMIT])
  248. doSteerCreature(cid, position)
  249. doPlayerSetPzLocked(cid, locked)
  250. doPlayerSetTown(cid, townid)
  251. doPlayerSetVocation(cid,voc)
  252. doPlayerRemoveItem(cid, itemid[, count[, subType = -1]])
  253. doPlayerAddExperience(cid, amount)
  254. doPlayerSetGuildId(cid, id)
  255. doPlayerSetGuildLevel(cid, level[, rank])
  256. doPlayerSetGuildNick(cid, nick)
  257. doPlayerAddOutfit(cid, looktype, addon)
  258. doPlayerRemoveOutfit(cid, looktype[, addon = 0])
  259. doPlayerAddOutfitId(cid, outfitId, addon)
  260. doPlayerRemoveOutfitId(cid, outfitId[, addon = 0])
  261. doCreatureSetDropLoot(cid, doDrop)
  262. doPlayerSetLossSkill(cid, doLose)
  263. doPlayerSwitchSaving(cid)
  264. doPlayerSave(cid[, shallow = false])
  265. doChallengeCreature(cid, target)
  266. doChangeSpeed(cid, delta)
  267. doCreatureChangeOutfit(cid, outfit)
  268. doSetMonsterOutfit(cid, name[, time = -1])
  269. doSetItemOutfit(cid, item[, time = -1])
  270. doSetCreatureOutfit(cid, outfit[, time = -1])
  271. doPlayerSetBalance(cid, balance)
  272. doCreatureSetNoMove(cid, block)
  273. doPlayerSetIdleTime(cid, amount)
  274. doPlayerSetStamina(cid, minutes)
  275. doPlayerAddBlessing(cid, blessing)
  276. doPlayerSetSkullEnd(cid, time, type)
  277. doCreatureSetSkullType(cid, skull)
  278. doCreatureSetPartyShield(cid, shield)
  279. doCreatureSetGuildEmblem(cid, emblem)
  280. doCreatureSetLookDirection(cid, dir)
  281. doPlayerSendTutorial(cid, id)
  282. doPlayerSendMailByName(name, item[, town[, actor]])
  283. doPlayerAddMapMark(cid, pos, type[, description])
  284. doPlayerAddPremiumDays(cid, days)
  285. doAddIpBanishment(ip[, mask[, length[, reason[, comment[, admin[, statement]]]]]])
  286. doAddPlayerBanishment(name/guid[, type[, length[, reason[, action[, comment[, admin[, statement]]]]]]])
  287. doAddAccountBanishment(accountId[, playerId[, length[, reason[, action[, comment[, admin[, statement]]]]]]])
  288. doAddNotation(accountId[, playerId[, reason[, comment[, admin[, statement]]]]]])
  289. doAddStatement(name/guid[, channelId[, reason[, comment[, admin[, statement]]]]]])
  290. doRemoveIpBanishment(ip[, mask])
  291. doRemovePlayerBanishment(name/guid, type)
  292. doRemoveAccountBanishment(accountId[, playerId])
  293. doRemoveNotations(accountId[, playerId])
  294. doRemoveStatements(name/guid[, channelId])
  295.  
  296. Is:
  297.  
  298. isPlayerBanished(name/guid, type)
  299. isAccountBanished(accountId[, playerId])
  300. isSightClear(fromPos, toPos, floorCheck)
  301. isInArray(array, value[, caseSensitive = false])
  302. isPlayerSaving(cid)
  303. isCreature(cid)
  304. isContainer(uid)
  305. isMovable(uid)
  306. isPlayerPzLocked(cid)
  307. isIpBanished(ip[, mask])
  308.  
  309. Can:
  310.  
  311. canPlayerWearOutfitId(cid, outfitId[, addon = 0])
  312. canPlayerWearOutfitId(cid, outfitId[, addon = 0])
  313. canPlayerWearOutfit(cid, looktype[, addon = 0])
  314.  
  315. Combat:
  316.  
  317. doCombat(cid, combat, param)
  318. setCombatArea(combat, area)
  319. setCombatCondition(combat, condition)
  320. setCombatParam(combat, key, value)
  321. setConditionParam(condition, key, value)
  322. setCombatCallBack(combat, key, function_name)
  323. setCombatFormula(combat, type, mina, minb, maxa, maxb[, minl, maxl[, minm, maxm[, minc[, maxc]]]])
  324. setConditionFormula(combat, mina, minb, maxa, maxb)
  325. createCombatObject()
  326. doCombatAreaHealth(cid, type, pos, area, min, max, effect)
  327. doTargetCombatHealth(cid, target, type, min, max, effect)
  328. doCombatAreaMana(cid, pos, area, min, max, effect)
  329. doTargetCombatMana(cid, target, min, max, effect)
  330. doCombatAreaCondition(cid, pos, area, condition, effect)
  331. doTargetCombatCondition(cid, target, condition, effect)
  332. doCombatAreaDispel(cid, pos, area, type, effect)
  333. doTargetCombatDispel(cid, target, type, effect)
  334. addOutfitCondition(condition, outfit)
  335. createConditionObject(type[, ticks[, buff[, subId]]])
  336. createCombatArea({area}[, {extArea}])
  337.  
  338. Set:
  339.  
  340. setWorldType(type)
  341. setHouseOwner(houseId, owner[, clean])
  342. setCreatureMaxHealth(cid, health)
  343. setCreatureMaxMana(cid, mana)
  344. setHouseAccessList(houseid, listid, listtext)
  345.  
  346. Others:
  347.  
  348. hasPlayerClient(cid)
  349. hasItemProperty(uid, prop)
  350. addEvent(callback, delay, parameters)
  351. stopEvent(eventid)
  352. stringToVariant(string)
  353. positionToVariant(pos)
  354. targetPositionToVariant(pos)
  355. variantToNumber(var)
  356. variantToString(var)
  357. variantToPosition(var)
  358. numberToVariant(number)
  359. registerCreatureEvent(uid, eventName)
  360. unregisterCreatureEvent(uid, eventName)
  361. addDamageCondition(condition, rounds, time, value)
  362. loadmodlib(lib)
  363. domodlib(lib)
  364. dodirectory(dir[, recursively = false])
  365. errors(var)
Advertisement
Add Comment
Please, Sign In to add comment