added npc's gift

This commit is contained in:
Vlad committed 2026-04-12 14:52:37 +06:00
1 parent bc2997d86f
commit 34759326b9
9 files changed
+166 -15

No files matched your search

+14 -2
View File
@@ -14,7 +14,13 @@
"modelScale": 0.01,
"modelCorrectionRotX": 0.0,
"modelCorrectionRotY": 180.0,
"modelCorrectionRotZ": 0.0
"modelCorrectionRotZ": 0.0,
"gift": {
"id": "guard_token",
"name": "Guard's Token",
"description": "A token from the Guard - sign of respect",
"icon": "resources/fire2.png"
}
},
{
"id": "npc_02_ghost",
@@ -30,7 +36,13 @@
"modelScale": 0.01,
"modelCorrectionRotX": 0.0,
"modelCorrectionRotY": 180.0,
"modelCorrectionRotZ": 0.0
"modelCorrectionRotZ": 0.0,
"gift": {
"id": "ghost_essence",
"name": "Ghost's Essence",
"description": "A mysterious essence from the Ghost realm",
"icon": "resources/fire2.png"
}
}
]
}
+10
View File
@@ -26,3 +26,13 @@ function on_health_pickup()
end
-- ============================================
-- NPC INTERACTION HANDLER
-- ============================================
function on_npc_interact(npc_index)
print("[Lua] NPC interaction! Index: " .. tostring(npc_index))
game_api.receive_npc_gift(npc_index)
end
print("Lua script loaded successfully!")