View Full Version : Useful Lua Functions
- Gorgaz's lua function thread [9 new functions]
- [Functions] getPlayerAccount and getAccountType
- [Iterator] Check areas, easier than ever before!
- screenArea(cid, f)
- table.find (matching isInArray)
- isPosition(pos), is the position valid?
- function passage(cid, npos, cost, me, reply)
- indexToPos() and posToIndex() - transform positions in one number!
- Function: get/setPlayerStorageString
- doMoveBlock(cid) - (Unwalkable/pushing tiles)
- isInArea, loops not needed!
- A better getThingfromPos!
- Colandus function thread!
- addContainerWithItems(cid, container, item, item_count, count)
- doSummonMonster(cid, monster)
- string.explode, for your talkactions
- getDirectionMove(cid, itemPos)
- Evil Hero's Functions
- Lua code for npc telling long stories (corrected and slighly bettered)
- Code for generating random numbers in normal distribution
- Custom Skills
- New money functions! Custom currencies!
- getCreaturesInRange(position, radiusx, radiusy, showMonsters, showPlayers)
- doPlayerReceiveParcel and doPlayerReceiveLetter
- Saving text to files!
- Remove Health/Mana By Percentages for TFS
- Function: doQuest(cid, storageid, itemid, count)
- Request: Sleep in Lua
- Request: Auto Global Ip and Auto Restarter
- Request: Starting EQ! [Advanced scripters join here] Really need help in this!!
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.