Ciao a tutti mi potete aiutare con questo script, l'intento era quello di far salire di un livello se riesci ad uccidere un player. (è una quest)
quest livello 1 begin
state start begin
when letter begin
send_letter("Vai dal comandante")
end
when button or info begin
say("Vai dal comandante)
end
when 9003.chat." Ehi avventuriero!" begin
say("Ciao avventuriero, è arrivato il tuo momento" )
say("è ora di uccidere il tuo primo avversario" )
set_state("uccidiilnabbo")
end
end
state uccidiilnabbo begin
when letter begin
send_letter("uccidi il nabbo!")
end
when button or info begin
say("Il tuo regno ha bisogno che tu lo uccida!")
end
when kill with npc.is_pc()
chat("Hai ucciso il tuo primo avversario, torna dal comandante")
pc . give_item2(0,1)
set_state ("ritorna")
end
end
state ritorna begin
when 9003.chat. "Il regno ti è grato" >= 1 begin
say("Grazie guerriero")
pc.get_next_exp()/1)
set_state("__COMPLETE__")
end
end
state __COMPLETE__ begin
end
end
Se mi potete dire anche dove la devo mettere e se ci sono degli errori...
NATURALMENTE +1
quest livello 1 begin
state start begin
when letter begin
send_letter("Vai dal comandante")
end
when button or info begin
say("Vai dal comandante)
end
when 9003.chat." Ehi avventuriero!" begin
say("Ciao avventuriero, è arrivato il tuo momento" )
say("è ora di uccidere il tuo primo avversario" )
set_state("uccidiilnabbo")
end
end
state uccidiilnabbo begin
when letter begin
send_letter("uccidi il nabbo!")
end
when button or info begin
say("Il tuo regno ha bisogno che tu lo uccida!")
end
when kill with npc.is_pc()
chat("Hai ucciso il tuo primo avversario, torna dal comandante")
pc . give_item2(0,1)
set_state ("ritorna")
end
end
state ritorna begin
when 9003.chat. "Il regno ti è grato" >= 1 begin
say("Grazie guerriero")
pc.get_next_exp()/1)
set_state("__COMPLETE__")
end
end
state __COMPLETE__ begin
end
end
Se mi potete dire anche dove la devo mettere e se ci sono degli errori...
NATURALMENTE +1