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:
Evil Puncker
2020-07-03 14:31:44 -03:00
committed by GitHub
parent 3c8b1eb0aa
commit 34f9b51f8f
35 changed files with 1010 additions and 275 deletions

View 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()