Hik 108 Posted August 28, 2016 Share Posted August 28, 2016 What is wrong in this quest? It compiles but does not appear in the game. quest missioneuno begin state inizio begin when login or levelup with pc.level >= 2 begin set_state("information") end end state information begin when letter begin local v = find_npc_by_vnum(20355) if v != 0 then target.vid("__TARGET__", v, "Comandante") end send_letter("Tutti contribuiscono ") end when button or info begin say_title("Tutti contribuiscono: ") say("") say("Il comandante ti sta cercando, ") say("dovresti andare da lui il prima possibile.") say("Non farlo aspettare!") say("") end when __TARGET__.target.click or 20355.chat."Tutti contribuiscono" begin target.delete("__TARGET__") say_title("Comandante:") say("") say("Benvenuto.") say("In questo regno tutti svolgono un compito.") say("Mi sembri in gamba, mostrami cosa sai fare.") say("") say("Voglio che liberi il nostro amato regno") say("dalla maledizione delle rocce Metin.") say("Vai ora e cerca di non morire.") set_state("caccia") end end state caccia begin when letter begin send_letter("Tutti contribuiscono ") end when button or info begin say_title("Tutti contribuiscono: ") say("") say("Il comandante ti ha affidato una missione. ") say("Devi distruggere 1 Metin del Dolore.") say("") end when 8001.kill begin set_state("ritorna") end end state ritorna begin when letter begin local v = find_npc_by_vnum(20355) if v != 0 then target.vid("__TARGET__", v, "Comandante") end send_letter("Tutti contribuiscono ") end when button or info begin say_title("Tutti contribuiscono: ") say("") say("Hai distrutto il Metin. ") say("Ritorna dal comandante ora.") say("") end when __TARGET__.target.click or 20355.chat."Tutti contribuiscono" begin target.delete("__TARGET__") say_title("Comandante:") say("") say("Ben fatto!") say("Non pensavo tu ci riuscissi.") say("Sono sicuro farai grandi cose per il Regno.") say("Ma vedi di non montarti la testa!") say("Ora veniamo alle cose importanti, ecco") say("la tua ricompensa:") say_item_vnum(50051) say("") wait() say_title("Comandante:") say("") say("Con questo oggetto potrai cavalcare.") say("Usare le proprie gambe è bello,") say("ma farsi portare in groppa lo è di più!") say("All'inizio non sarà facile richiamare") say("il cavallo, ma poi imparerà il tuo comando.") set_state("fine") end end state fine begin end end Link to comment Share on other sites More sharing options...
Hik 108 Posted August 28, 2016 Author Share Posted August 28, 2016 Fix it. No state inizio begin but state start begin (at line 2) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now