mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-15 15:04:53 +02:00
Full Distribution
This commit is contained in:
30
data/creaturescripts/scripts/firstitems.lua
Normal file
30
data/creaturescripts/scripts/firstitems.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
function onLogin(player)
|
||||
if player:getLastLoginSaved() <= 0 then
|
||||
-- Items
|
||||
if player:getSex() == PLAYERSEX_FEMALE then
|
||||
player:addItem(3562, 1, true, -1, CONST_SLOT_ARMOR)
|
||||
else
|
||||
player:addItem(3561, 1, true, -1, CONST_SLOT_ARMOR)
|
||||
end
|
||||
player:addItem(3270, 1, true, -1, CONST_SLOT_LEFT)
|
||||
player:addItem(2920, 1, true, -1, CONST_SLOT_RIGHT)
|
||||
|
||||
local container = Game.createItem(2853, 1)
|
||||
container:addItem(3585, 1)
|
||||
|
||||
player:addItemEx(container, true, CONST_SLOT_BACKPACK)
|
||||
|
||||
-- Default Outfit
|
||||
if player:getSex() == PLAYERSEX_FEMALE then
|
||||
player:setOutfit({lookType = 136, lookHead = 78, lookBody = 106, lookLegs = 58, lookFeet = 95})
|
||||
else
|
||||
player:setOutfit({lookType = 128, lookHead = 78, lookBody = 106, lookLegs = 58, lookFeet = 95})
|
||||
end
|
||||
|
||||
local town = Town("Rookgaard")
|
||||
player:teleportTo(town:getTemplePosition())
|
||||
player:setTown(town)
|
||||
player:setDirection(DIRECTION_SOUTH)
|
||||
end
|
||||
return true
|
||||
end
|
Reference in New Issue
Block a user