mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-13 22:34:53 +02:00
Rooking player now possible
Reserved storage value 30017 to enable first items when a player is rooked. #17
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
function onLogin(player)
|
||||
if player:getLastLoginSaved() <= 0 then
|
||||
if player:getLastLoginSaved() <= 0 or player:getStorageValue(30017) == 1 then
|
||||
player:setStorageValue(30017, 0) -- reset storage for first items
|
||||
|
||||
-- Items
|
||||
if player:getSex() == PLAYERSEX_FEMALE then
|
||||
player:addItem(3562, 1, true, -1, CONST_SLOT_ARMOR)
|
||||
|
Reference in New Issue
Block a user