PDA

View Full Version : Useful Lua Functions


  1. Gorgaz's lua function thread [9 new functions]
  2. [Functions] getPlayerAccount and getAccountType
  3. [Iterator] Check areas, easier than ever before!
  4. screenArea(cid, f)
  5. table.find (matching isInArray)
  6. isPosition(pos), is the position valid?
  7. function passage(cid, npos, cost, me, reply)
  8. indexToPos() and posToIndex() - transform positions in one number!
  9. Function: get/setPlayerStorageString
  10. doMoveBlock(cid) - (Unwalkable/pushing tiles)
  11. isInArea, loops not needed!
  12. A better getThingfromPos!
  13. Colandus function thread!
  14. addContainerWithItems(cid, container, item, item_count, count)
  15. doSummonMonster(cid, monster)
  16. string.explode, for your talkactions
  17. getDirectionMove(cid, itemPos)
  18. Evil Hero's Functions
  19. Lua code for npc telling long stories (corrected and slighly bettered)
  20. Code for generating random numbers in normal distribution
  21. Custom Skills
  22. New money functions! Custom currencies!
  23. getCreaturesInRange(position, radiusx, radiusy, showMonsters, showPlayers)
  24. doPlayerReceiveParcel and doPlayerReceiveLetter
  25. Saving text to files!
  26. Remove Health/Mana By Percentages for TFS
  27. Function: doQuest(cid, storageid, itemid, count)
  28. Request: Sleep in Lua
  29. Request: Auto Global Ip and Auto Restarter
  30. Request: Starting EQ! [Advanced scripters join here] Really need help in this!!