The function of the quest is kill one player and exchange exp and sum the amount of player kills.
The quest is basic.
I explain the quest.Quote:
quest player_kill1 begin
state start begin
when login or levelup with pc.level >= 1 begin
set_state(player_kill1)
end
end
state player_kill1 begin
when letter begin
send_letter("Quest - PvP")
end
when button or info begin
say("Want to gain experience?.")
say("destroy your rivals,")
say("So Get ready!")
say_reward("Remember to be from another realm")
say("")
q.set_counter("kills", 0)
set_state(kill)
end
end
state kill begin
when letter begin
send_letter("Destroy Player")
end
when button or info begin
say_title("Player:")
say_reward("You destroyed "..pc.getqf("state").." player")
say("")
end
when kill begin
if npc.is_pc() and npc.empire != pc.empire then
local count = pc.getqf("state") + 1
if count >= 0 then
q.set_counter("kills", count)
pc.give_exp2(20000)
end
elseif count == 0 then
say("¡Not destroyed user!")
end
end
end
end
The quest start you select of lvl start, on the case is higher or = 1. if you lvl is correct the quest start.
Is button info, you write you historyQuote:
when login or levelup with pc.level >= 1 begin
set_state(player_kill1)
end
In q.set_counter("kills", 0), start in 0.
if you kill one user, sum exp on the case experience multiplied by 2, if pc.give_exp2(20000) the exp sum is 40,000 and if pc.give_exp2(10000) the exp sum is 20,000.Quote:
when button or info begin
say("Want to gain experience?.")
say("destroy your rivals,")
say("So Get ready!")
say_reward("Remember to be from another realm")
say("")
q.set_counter("kills", 0)
set_state(kill)
end
Give thanks if you're interested, it costs nothing...Quote:
when kill begin
if npc.is_pc() and npc.empire != pc.empire then
local count = pc.getqf("state") + 1
if count >= 0 then
q.set_counter("kills", count)
pc.give_exp2(20000)
end
elseif count == 0 then
say("¡Not destroyed user!")
end
end
end
Edit... explain of the quest.







