mirror of
https://github.com/otland/forgottenserver
synced 2026-08-15 16:32:07 -04:00
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.
12 lines
293 B
Lua
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
|