17 lines
511 B
GDScript
17 lines
511 B
GDScript
extends NpcScript
|
|
|
|
# Quest ID
|
|
const questID : int = ProgressCommons.Quest.SANDSTORM_MINE_ABANDONED_TREASURE
|
|
|
|
# Reward items
|
|
var chestMineKeyID : int = DB.GetCellHash("Chest Mine Key")
|
|
|
|
#
|
|
func OnStart():
|
|
match GetQuest(questID):
|
|
ProgressCommons.SANDSTORM_MINE_ABANDONED_TREASURE.INACTIVE:
|
|
if HasSpace(1):
|
|
Mes("碎石下面露出一把生锈钥匙,柄上还刻着旧矿工的编号。")
|
|
SetQuest(questID, ProgressCommons.SANDSTORM_MINE_ABANDONED_TREASURE.KEY_FOUND)
|
|
AddItem(chestMineKeyID, 1)
|