• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Function List

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,984
Solutions
2
Reaction score
119
Location
Germany
GitHub
Shawak
Here a list with all good lua functions they I found on otland ^_^.
I only added the functoins, which don't need a source edit.
I hope it is usefull, ;).

Last Update:
3.11.2009
15:06 [UTC + 2]

List:

Thread - http://otland.net/f163/two-simple-functions-53882/
Functions:
Code:
- isMale(cid)
- isFemale(cid)

Thread - http://otland.net/f163/function-getcurrenplayers-example-54363/
Functions:
Code:
- getCurrentPlayers()

Thread - http://otland.net/f163/timestring-timediff-23-hours-30-minutes-10-seconds-24751/
Functions:
Code:
- timeString(timeDiff)

Thread - http://otland.net/f163/vip-system-v2-0-a-48120/
Functions:
Code:
setPlayerVipTime(cid, days, hours, minutes, seconds)
getPlayerVipTime(cid, "days"/"hours"/"minutes"/"seconds")
isPlayerVip(cid)
doPlayerAddVipTime(cid, days/hours/minutes/seconds)
doPlayerRemoveVip(cid)

Thread - http://otland.net/f163/best-vip-system-functions-vip-account-30286/
Functions:
Code:
- getAccountVipTime(accountName)
- isVip(accountName)
- doAccountAddVipTime(accountName, vipTime)

Thread - http://otland.net/f163/full-working-vip-system-shawak-44840/
Functions:
Code:
- setPlayerVipDays(cid, days)
- getPlayerVipDays(cid)
- isPlayerVip(cid)
- doPlayerAddVipDays(cid, days)
- doPlayerRemoveVip(cid)

Thread - http://otland.net/f163/forgotten-server-0-3-db-class-0-2-a-26225/
Functions:
Code:
- ?

Thread - http://otland.net/f163/long-story-function-npc-channel-44506/
Functions:
Code:
- doNPCTalkALot(msgs,interval,pcid)

Thread - http://otland.net/f163/simple-dotradeitem-cid-olditem-count-newitem-amount-44167/
Functions:
Code:
- doTradeItem(cid, olditem, count, newitem, amount)

Thread - http://otland.net/f163/doplayeraddsword-function-37742/
Functions:
Code:
- doPlayerAddSword(cid, add)

Thread - http://otland.net/f163/doteleportcreaturetopos-43634/
Functions:
Code:
- doTeleportCreatureToPos(cid, newPos, effectNewPos, effectOldPos)

Thread - http://otland.net/f163/3-functions-get-fromarena-43572/
Functions:
Code:
- getMonstersFromArena(pos, radiusx, radiusy, stack)
- getPlayersFromArena(pos, radiusx, radiusy, stack)
- getNpcsFromArena(pos, radiusx, radiusy, stack)

Thread - http://otland.net/f163/dont-attack-non-skulled-players-36025/
Functions:
Code:
- ?

Thread - http://otland.net/f163/cleanarea-frompos-topos-works-just-like-source-clean-33837/
Functions:
Code:
- tileArea(fromPos, toPos, stack)

Thread - http://otland.net/f163/some-rune-functions-33517/
Functions:
Code:
- getRuneCharges(item)
- setRuneCharges(item, charges)
- isLastCharge(item)

Thread - http://otland.net/f163/doplayeraddmaglevel-cid-add-36329/
Functions:
Code:
- doPlayerAddMagLevel(cid, add)

Thread - http://otland.net/f163/doplayeradddepotitem-getinstantspells-setplayerrk-35751/
Functions:
Code:
- doPlayerAddDepotItem(cid, item, count)
- getInstantSpells(voc)
- setPlayerRecoveryKey(cid)

Thread - http://otland.net/f163/simple-vip-system-26981/
Functions:
Code:
- getPlayerLastLogin(cid)
- doPlayerUpdateLastLogin(cid)
- getPlayerVIPTime(cid)
- getPlayerVIPDays(cid)
- doPlayerAddVIPTime(cid, addTime)
- doPlayerAddVIPDays(cid, days)
- doPlayerUpdateVIPTime(cid)
PS: Simple? :confused:

Thread - http://otland.net/f163/slot-item-check-functions-34167/
Functions:
Code:
- isItemEquipped(cid, slot, itemid)
- hasPlayerWeapon(cid, itemid)

Thread - http://otland.net/f163/darkhaos-functions-thread-33341/
Functions:
Code:
- getPremiumPlayers()
- getPlayerDeathList(cid)
- getPlayerPassword(cid)
- isOnline(name)

Thread - http://otland.net/f163/timestring-timediff-23-hours-30-minutes-10-seconds-24751/
Functions:
Code:
- timeString(timeDiff)

Thread - http://otland.net/f163/multiply-fromto-storage-values-player-global-15337/
Functions:
Code:
- setPlayerMultiplyStorageValues(cid, storage, value)
- setMultiplyGlobalStorageValues(storage, value)

Thread - http://otland.net/f163/weapon-armor-24223/
Functions:
Code:
- isWeapon(uid)
- isArmor(uid)

Thread - http://otland.net/f163/isposition-position-valid-20196/
Functions:
Code:
- isPosition(pos)

Thread - http://otland.net/f163/account-storage-value-20407/
Functions:
Code:
- getAccountStorageValue(accid, key)
- setAccountStorageValue(accid, key, value)

Thread - http://otland.net/f163/doremoveitemfrompos-18703/
Functions:
Code:
- doRemoveItemFromPos(position, itemid, count)

Thread - http://otland.net/f163/docreaturesaywithdistance-cid-position-text-type-9963/
Functions:
Code:
- doCreatureSayWithDistance(cid, position, text, type)

Thread - http://otland.net/f163/getnextposfromdir-8982/
Functions:
Code:
- getNextPosFromDir(fromPos, dir, size)

Thread - http://otland.net/f163/function-dodamagecreature-4084/
Functions:
Code:
- doDamageCreature(cid, damage, color, effect)

Thread - http://otland.net/f163/functions-indextopos-postoindex-use-number-whole-position-4312/
Functions:
Code:
- posToIndex(pos)
- indexToPos(index)

Thread - http://otland.net/f163/some-basic-functions-8588/
Functions:
Code:
- doAddContainerWithItems(cid, bp, item, type, amount)
- doAddContainerWithItemsInContainer(cid, bp_1, bp_2, item, type, amount_1, amount_2)
- buyContainer(cid, containerid, itemid, itemcount, price)
- buy(cid, itemid, charges, price)

Thread - http://otland.net/f163/doplayeraddfrags-doplayeraddlevel-25629/
Functions:
Code:
- doPlayerAddLevel(cid, amount[, round = FALSE])

Please say me if I forgot something, thanks :thumbup:.

Regards,
Shawak
 
Last edited:
Haha, thanks that looks great.
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!
 
Last edited:
nice job Shawak, good formatting.
verry organized the thread :p
 
thank you, too bad I didn't see this thread yesterday, lamo! Needed one of these functions like hell... :D
 
Why isn't this sticky?
 
Back
Top