mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00

- changed folder name from LUA to Lua - Added installation instructions - fixed playerdeath variables (fixes #430) - Added outfit IDs up to Jouster outfit to the sync outfit script - Removed unecessary instruction - Added revscriptsys version of all scripts
18 lines
440 B
Lua
18 lines
440 B
Lua
local creatureevent = CreatureEvent("FirstItemsRook")
|
|
|
|
local firstItems = {2050, 2382} -- torch and club
|
|
|
|
function creatureevent.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) -- coat
|
|
player:addItem(ITEM_BAG, 1)
|
|
player:addItem(2674, 1) -- red apple
|
|
end
|
|
return true
|
|
end
|
|
|
|
creatureevent:register()
|