finish training statue placeing and payment for offline training

This commit is contained in:
ErikasKontenis
2020-11-08 17:08:42 +02:00
parent 33d9dd7dcd
commit 0666223787
6 changed files with 51 additions and 10 deletions

View File

@@ -10,7 +10,8 @@ function onLogin(player)
player:setOfflineTrainingSkill(-1)
if offlineTime < 600 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You must be logged out for more than 10 minutes to start offline training.")
player:setBankBalance(player:getBankBalance() + 1000)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You must be logged out for more than 10 minutes to start offline training. Your 1000 gold coins entree fee were returned to your bank account.")
return true
end