SennyK
New Member
- Joined
- Jan 17, 2017
- Messages
- 12
- Reaction score
- 0
Hi guys. I have problem. Im trying to write first simple script but when im try login i cant
I have no errors in console but when im joining to server i have in console:
SennyK has logged in.
SennyK haslogged out.
in creaturescripts.xml i have:
Somebody can help me with it?
Sorry for my bad english... :c
Lua:
local config = {
["Monday"] = 1.0,
["Tuesday"] = 1.0,
["Wednesday"] = 1.0,
["Thursday"] = 1.0,
["Friday"] = 1.0,
["Saturday"] = 1.5,
["Sunday"] = 2.0
}
function onLogin(player)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, "Dostajesz dodatkowego EXP'a bo dziś jest "..os.date("%A").."!")
end
function onGainExperience(player, exp, rawExp)
exp = exp * config[os.date("%A")]
return exp
end
I have no errors in console but when im joining to server i have in console:
SennyK has logged in.
SennyK haslogged out.
in creaturescripts.xml i have:
<event type="login" name="TestLua" script="test.lua" />
Somebody can help me with it?
Sorry for my bad english... :c