"qc in malloc(): error: allocation failed
Abort (core dumped)"
Daca mai adaug un end la sfarsit imi spune in felul urmator :
Cod: Selectaţi tot
unexpected symbol near 'state'
ORCIlvl35.quest:101:abort (core dumped) Misiunea completa :
Cod: Selectaţi tot
quest orcs begin
state start begin
when login or levelup with pc.level>34 begin
set_state(talk_to_disciple_lv35)
end
end
state talk_to_disciple_lv35 begin
when letter begin
local v = find_npc_by_vnum(11101)
if v > 0 then target.vid("__TARGET__", v, "Schlachtenverwalter")
end
send_letter("Go see the berserker")
end
when button or info begin
say_title("The request of the berserker.")
say("")
say("The berserker wants something from you.")
say("Go speak with him")
say("")
say_reward("He waits for you!")
say("")
end
when 11101.chat begin
say("Berserker:")
say("")
say("I was looking for you")
say("The village has a problem")
say("Orcs from the valley are increasing in number")
say("They are becoming a threat to the village")
say("We will need to lower their numbers")
say("Kill 10 orcs and come back to me")
say("")
wait()
say("Berserker:")
say("I will reward you when you get back")
say("Be careful")
say("They can be vicious !")
say("")
set_state(kill_orcs)
pc.setqf("kill_count",0)
end
end
state kill_orcs begin
when letter begin
local v = 1
if v==1 then pc.setqf("kill_count",0)
send_letter("Lowering their numbers")
end
end
when button or info begin
say_title("Kill the orcs !")
say("")
say("The berserker wants you to kill 10 orcs")
say("You can find them in the orc valley")
say("Talk to the teleporter to go there")
say("")
say_reward("You have killed "..pc.getqf("kill_count").." orcs!")
say("")
end
when 601.kill begin
pc.setqf("kill_count", pc.getqf("kill_count")+1)
if pc.getqf("kill_count")>9 then
set_state(gobackto_berserker)
state gobackto_berserker begin
when letter begin
send_letter("You have killed the orcs")
local v = find_npc_by_vnum(11101)
if v != 0 then target.vid("__TARGET__", v, "Schlachtenverwalter")
end
when button or info begin
say_title("You have killed the orcs")
say("")
say("You lowered the number of the orcs")
say("go back to the berserker to receive your reward")
say("")
end
when 11101.chat begin
say("Thank you for helping our village")
say("I will reward you for your trouble")
say("The valley is a very treacherous place")
say("You have proven that you are not weak")
say("Take this so it may help you on your future quests")
say("Good luck !")
if pc.job==0 then
pc.give_item2(1, 3075)
elseif pc.job==1 then
pc.give_item2(1, 1045)
elseif pc.job==2 then
pc.give_item2(1, 85)
elseif pc.job==3 then
pc.give_item2(1, 7075)
end
end
end
end
end

