quest roua_roz begin
state start begin
when 20022.chat."Obţine Rouă Roz" begin
say_title("Huahn-So:")
say("")
say("Datorită unei noi tehnici pot crea Rouă")
say("Roz dar am nevoie de următoarele obiecte:")
say_rosu("50 x Fragment de Energie")
say_rosu("200 x Apa Sim")
say("")
if pc.count_item(51001) < 50 then
if pc.count_item(50813) < 200 then
say_reward("Fragmentele de Energiele poţi procura de")
say_reward("la Alchimist, iar Apa Sim o poţi ")
say_reward("cumpăra de la Octavio")
say("")
return
end
if pc.count_item(51001) >= 50 then
if pc.count_item(50813) >= 200 then
local s = select("Am obiectele necesare","Înapoi")
if s == 1 then
if pc.count_item(51001) < 50 then
if pc.count_item(50813) < 200 then
say_title("Huahn-So:")
say("")
say("Revin-o când ai obiectele necesare.")
say("")
return
end
if pc.get_level() < 55 then
say_title("Huahn-So:")
say("")
say("Trebuie sa ai minim level 55 pentru")
say("a putea crea Rouă Roz")
say("")
return
end
if pc.count_item(51001) >= 50 and pc.count_item(50813) >= 200 then
pc.remove_item(51001, 50 )
pc.remove_item(50813, 200 )
pc.give_item2 (50822, 50 )
syschat("Ai creat 50 x Rouă Roz.Felicitari!")
end
end
end
end
end -- end_of_state
end -- end_of_quest
root@:/usr/game/share/locale/romania/quest # ./qc roua_roz.quest
QUEST : roua_roz
STATE : start
WHEN : 20022.chat ("Obţine Rouă Roz")
qc in malloc(): error: allocation failed
Abort (core dumped)
root@:/usr/game/share/locale/romania/quest #
Asta imi da cand incerc sa instalez.
Initial questul facea alt ceva eu doar am adaptat.
In mod normal cerea doar un singur itm ca sa-ti dea recompensa dar eu adaugat doua : if pc.count_item(51001) < 50 then
if pc.count_item(50813) < 200 then
-------------------------------
-- Create by wRoNg
-------------------------------
quest roua_roz begin
state start begin
when 20022.chat."Obţine Rouă Roz" begin
say_title("Huahn-So:")
say("")
say("Datorită unei noi tehnici pot crea Rouă")
say("Roz dar tu o sa ai nevoie de nivelul 55")
say("ca sa o poti creea iar eu am nevoie de:")
say_rosu("50 x Fragment de Energie")
say_rosu("200 x Apa Sim")
say("")
if pc.count_item(51001) < 50 then
if pc.count_item(50813) < 200 then
say_reward("Fragmentele de Energiele poţi procura de")
say_reward("la Alchimist, iar Apa Sim o poţi ")
say_reward("cumpăra de la Octavio")
say("")
return
end
end
if pc.count_item(51001) >= 50 then
if pc.count_item(50813) >= 200 then
local s = select("Am obiectele necesare","Înapoi")
if s == 1 then
if pc.count_item(51001) < 50 then
if pc.count_item(50813) < 200 then
say_title("Huahn-So:")
say("")
say("Revin-o când ai obiectele necesare.")
say("")
return
end
end
if pc.get_level() < 55 then
say_title("Huahn-So:")
say("")
say("Trebuie sa ai minim level 55 pentru")
say("a putea crea Rouă Roz")
say("")
return
end
if pc.count_item(51001) >= 50 and pc.count_item(50813) >= 200 then
pc.remove_item(51001, 50 )
pc.remove_item(50813, 200 )
pc.give_item2 (50822, 50 )
syschat("Ai creat 50 x Rouă Roz.Felicitari!")
end
end
end
end
end
end -- end_of_state
end -- end_of_quest
--------------------
-- Create by wRoNg--
--------------------
quest roua_roz begin
state start begin
when 20022.chat."Obţine Rouă Roz" begin
say_title("Huahn-So:")
say("")
say("Datorită unei noi tehnici pot crea Rouă")
say("Roz dar tu o sa ai nevoie de nivelul 55")
say("ca sa o poti creea iar eu am nevoie de:")
say_rosu("50 x Fragment de Energie")
say_rosu("200 x Apa Sim")
say("")
if pc.count_item(51001) < 50 and pc.count_item(50813) < 200 then
say_reward("Fragmentele de Energiele poţi procura de")
say_reward("la Alchimist, iar Apa Sim o poţi ")
say_reward("cumpăra de la Octavio")
say("")
return
end
if pc.count_item(51001) >= 50 and pc.count_item(50813) >= 200 then
local s = select("Am obiectele necesare","Înapoi")
if s == 1 then
if pc.count_item(51001) < 50 and pc.count_item(50813) < 200 then
say_title("Huahn-So:")
say("")
say("Revin-o când ai obiectele necesare.")
say("")
return
end
if pc.get_level() < 55 then
say_title("Huahn-So:")
say("")
say("Trebuie sa ai minim level 55 pentru")
say("a putea crea Rouă Roz")
say("")
return
end
if pc.count_item(51001) >= 50 and pc.count_item(50813) >= 200 then
pc.remove_item(51001, 50 )
pc.remove_item(50813, 200 )
pc.give_item2 (50822, 50 )
syschat("Ai creat 50 x Rouă Roz.Felicitari!")
return
end
end
end
end
end
end
Asta trebuie sa mearga . Scuze de inactivitate ... am avut si eu putina treaba zilele astea!