0 people like it.

quest

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
let beast = quest {
    let player = new Player()

    // this is the beginning, we require player to talk with an npc using specified dialog node
    do! talk player "Rudolf" "KillBeast", kill player "Beast"
    player.StartQuest("Beast") // and then, the rest will be called when player does this

    do! kill player "Beast"
    if player.KillCount("Beast") > 2 then
        player.GiveXP(200)
}
val beast : obj

Full name: Script.beast
Raw view Test code New version

More information

Link:http://fssnip.net/5a
Posted:15 years ago
Author:
Tags: