最终整理版
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
extends NpcScript
|
||||
|
||||
const questID : int = ProgressCommons.Quest.SNAKE_PIT_THIEF
|
||||
const bitIndex : int = 3
|
||||
var thiefsKeyID : int = DB.GetCellHash("Thief's Key")
|
||||
|
||||
#
|
||||
func OnStart():
|
||||
var state : int = GetQuest(questID)
|
||||
if state >= ProgressCommons.SNAKE_PIT_THIEF.RIDDLE_SOLVED:
|
||||
return
|
||||
|
||||
Mes("墙上刻着第四行字:我把宝箱留给能读懂害怕的人。贪心的人只会听见锁声。")
|
||||
Mes("这里的沙子很新,似乎有人不久前才翻动过。")
|
||||
|
||||
var newState : int = state | (1 << bitIndex)
|
||||
if newState != state:
|
||||
SetQuest(questID, newState)
|
||||
|
||||
if newState == ProgressCommons.SNAKE_PIT_THIEF.ALL_CLUES_FOUND:
|
||||
OnAllCluesFound()
|
||||
|
||||
func OnAllCluesFound():
|
||||
SetQuest(questID, ProgressCommons.SNAKE_PIT_THIEF.RIDDLE_SOLVED)
|
||||
AddItem(thiefsKeyID, 1)
|
||||
Mes("五行刻字在你脑海中拼成完整的路线。石缝弹开,你找到一把盗贼钥匙。")
|
||||
Reference in New Issue
Block a user