Cod: Selectaţi tot
quest neopvp begin
state start begin
when login or levelup with pc.get_level() >= 30 and pc.getqf("level") == 0 begin
say("Hello.")
say("You have reached level 30.")
say("Congratulations!")
say("Now we will see if you can fight.")
say("You have to kill players")
say("For each victory, you will receive points.")
say("The more points you have, the bigger the rewards.")
say("You will also receive dragon coins.")
say("Dragon coins can be traded with the GM in exchange for items, if you have enough !")
say_reward("50 PvP points = + 3% vs demi-humans")
say_reward("100 PvP points = + 500 hp")
say_reward("200 PvP points = + 5% vs demi-humans")
say_reward("500 PvP points = + 1500 hp")
pc.setqf("level", 1)
end
when kill begin
if npc.is_pc() and npc.level >= 50 then
local count = pc.getqf("state") - 1
if count <= 100 then
pc.setqf("state", count)
q.set_counter("kills", -count)
chat("Ai obtinut un punct.")
chat("Acum ai : "..pc.getqf("kill_punkte").." puncte.")
pc.setqf("kill_punkte", pc.getqf("kill_punkte")+1)
if pc.getqf("kill_punkte") == 50 then
affect.add_collect(apply.ATTBONUS_HUMAN,3,60*60*24*365*60)
pc.give_item2(1, 50)
elseif pc.getqf("kill_punkte") == 100 then
affect.add_collect(apply.MAX_HP,500,60*60*24*365*60)
pc.give_item2(1, 100)
elseif pc.getqf("kill_punkte") == 200 then
affect.add_collect(apply.ATTBONUS_HUMAN,5,60*60*24*365*60)
pc.give_item2(1, 200)
elseif pc.getqf("kill_punkte") == 500 then
affect.add_collect(apply.MAX_HP,1500,60*60*24*365*60)
pc.give_item2(1, 500)
default pc.give_item2(1, 5)
end
end
end
end
asta e programul , am adaugat ce ai zis tu. Imi da eroare la compilare : " syntax error :
[string "start"]:27: '=' expected near 'pc'