mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-07 20:29:20 +02:00
introduce first items for starting players in mainland
This commit is contained in:
parent
b704dde509
commit
a3263c3bd8
@ -3,16 +3,31 @@ function onLogin(player)
|
||||
player:setStorageValue(17571, 1)
|
||||
|
||||
-- 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)
|
||||
player:addItem(3355, 1, true, -1, CONST_SLOT_HEAD)
|
||||
player:addItem(3361, 1, true, -1, CONST_SLOT_ARMOR)
|
||||
player:addItem(3559, 1, true, -1, CONST_SLOT_LEGS)
|
||||
player:addItem(3552, 1, true, -1, CONST_SLOT_FEET)
|
||||
player:addItem(3412, 1, true, -1, CONST_SLOT_LEFT)
|
||||
player:addItem(3007, 1, true, 100, CONST_SLOT_RING)
|
||||
player:addItem(2920, 1, true, -1, CONST_SLOT_AMMO)
|
||||
|
||||
local container = Game.createItem(2853, 1)
|
||||
if player:getVocation():getId() == 1 then
|
||||
player:addItem(3074, 1, true, -1, CONST_SLOT_RIGHT)
|
||||
elseif player:getVocation():getId() == 2 then
|
||||
player:addItem(3066, 1, true, -1, CONST_SLOT_RIGHT)
|
||||
elseif player:getVocation():getId() == 3 then
|
||||
player:addItem(3277, 1, true, 5, CONST_SLOT_RIGHT)
|
||||
elseif player:getVocation():getId() == 4 then
|
||||
local weapons = { 3300, 3286, 3276 }
|
||||
player:addItem(weapons[math.random(#weapons)], 1, true, -1, CONST_SLOT_RIGHT)
|
||||
end
|
||||
|
||||
local container = Game.createItem(2854, 1)
|
||||
container:addItem(3585, 1)
|
||||
container:addItem(3031, 25)
|
||||
container:addItem(3725, 5)
|
||||
container:addItem(3003, 1)
|
||||
container:addItem(3457, 1)
|
||||
|
||||
player:addItemEx(container, true, CONST_SLOT_BACKPACK)
|
||||
|
||||
@ -22,11 +37,6 @@ function onLogin(player)
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user