forgottenserver/data/creaturescripts/scripts/firstitems.lua
Mark Samman 877e42399f Passing userdata instead of cid everywhere
This is a breaking change, and I think it's safe to assume that most NPC
scripts are broken and the NPC system needs a rewrite/some backwards
compatibility patch to pass id's instead of userdata to callbacks.
2014-11-03 19:10:51 +01:00

12 lines
293 B
Lua

local firstItems = {2050, 2382}
function onLogin(player)
if player:getLastLoginSaved() == 0 then
for i = 1, #firstItems do
player:addItem(firstItems[i], 1)
end
player:addItem(player:getSex() == 0 and 2651 or 2650, 1)
player:addItem(1987, 1):addItem(2674, 1)
end
return true
end