Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest levelup_empire begin
- state start begin
- when kill with npc.is_pc() begin
- local ARRAY_QF = {"REGNO ROSSO", "REGNO GIALLO", "REGNO BLU"}
- local NUMBER_KILLS = 10 -- Numero player da killare per il next level
- local GET_EMP = npc.get_empire()
- local BASIC_P = pc.getqf (ARRAY_QF[GET_EMP])
- if pc.getqf ( "CONTROL" ) == 1 then
- pc.setqf ( "CONTROL", 0 )
- return
- end
- pc.setqf (ARRAY_QF[GET_EMP], BASIC_P + 1)
- pc.setqf ("CONTROL", 1 )
- syschat ( "Hai killato "..BASIC_P.." player del regno "..ARRAY_QF[GET_EMP].."")
- if BASIC_P == NUMBER_KILLS then
- local EXP_LEVEL = pc.get_next_exp()
- pc.setqf ( ARRAY_QF[GET_EMP], 0 )
- pc.give_exp2 (EXP_LEVEL)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment