Hello. Im trying to make a talkaction script to promote players on 7.72. Im using a OTHire distro located here: https://otland.net/threads/7-72-othire-0-0-1b-based-in-otserv-trunk-latest.212153/
When im trying to use lua function setPlayerPromotionLevel() the server console keep spamming:
data/talkactions/scripts/promote.lua:19: attempt to call global 'setPlayerPromot
ionLevel' (a nil value)
stack traceback:
data/talkactions/scripts/promote.lua:19: in function <data/talkactions/s
cripts/promote.lua:1>
Before calling setPlayerPromotionLevel i check if playerID is not null and if ID is a player.
Here is my lua code: http://pastebin.com/tHPSJ3Mz
Thx for answer.
When im trying to use lua function setPlayerPromotionLevel() the server console keep spamming:
data/talkactions/scripts/promote.lua:19: attempt to call global 'setPlayerPromot
ionLevel' (a nil value)
stack traceback:
data/talkactions/scripts/promote.lua:19: in function <data/talkactions/s
cripts/promote.lua:1>
Before calling setPlayerPromotionLevel i check if playerID is not null and if ID is a player.
Here is my lua code: http://pastebin.com/tHPSJ3Mz
Thx for answer.