mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-15 18:54:55 +02:00
A few Lua scripts updates, converted Lua scripts to RevScriptSys (#431)
- 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
This commit is contained in:
17
Lua/TFS_10/revscriptsys/first_items_rook.lua
Normal file
17
Lua/TFS_10/revscriptsys/first_items_rook.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
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()
|
Reference in New Issue
Block a user