modify quest

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
apoelaras123
Nivel 1

Nivel 1
Mesaje: 59
Membru din: 10 Aug 2019, 22:57
Regat: Chunjo
Aprecieri: 32  
Mulţumiri: 1  
Medalii

I want someone to help me modify this quest
ServerFiles utilizat:martysama
Tipologie server(PvM / PvP):PVM
Syserr:nothing
poza:-
quest reset_time_item_use begin
state start begin
function GetBiologistQuestNames()
local data = {
[1] = "biologist_sequence30",
[2] = "biologist_sequence40",
[3] = "biologist_sequence50",
[4] = "biologist_sequence60",
[5] = "biologist_sequence70",
[6] = "biologist_sequence80",
[7] = "biologist_sequence85",
[8] = "biologist_sequence90"
};

return data;
end -- function

function GetQuestWaitingForTime()
local quest_names = reset_time_item_use.GetBiologistQuestNames();
for index, quest_name in ipairs(quest_names) do
if (pc.getf(quest_name, "duration") > 0) then
return index;
end -- if
end -- for

return -1;
end -- function

function IsWaitingForTime()
return reset_time_item_use.GetQuestWaitingForTime() ~= -1;
end -- function

function ExecuteTimeResetForAllQuests()
local quest_names = reset_time_item_use.GetBiologistQuestNames();
for _, quest_name in ipairs(quest_names) do
if (pc.getf(quest_name, "duration") > 0) then
pc.setf(quest_name, "duration", 0);

if (pc.is_gm() or is_test_server()) then
say(string.format("GM/Test: The wait time for the quest %s has been reset.", quest_name))
end -- if
end -- if
end -- for
end -- function

when 20084.chat."hm" with pc.count_item(3969) > 0 begin
say_title(string.format("%s:[ENTER]", mob_name(npc.get_race())))
if (not reset_time_item_use.IsWaitingForTime()) then
return say_reward("You don't have to wait for any quest.");
end -- if

pc.remove_item(3969, 1);
reset_time_item_use.ExecuteTimeResetForAllQuests();
end -- when
end -- state
end -- quest
this quest is working for biologist.
i edited the same for seon but it say core dumped pls help
quest reset_time_item_usex begin
state start begin
function GetBiologistQuestNames()
local data = {
[1] = "collect_quest_lv92",
[2] = "collect_quest_lv94",
[3] = "cq100lv",
[4] = "cq105lv"
};

return data;
end -- function

function GetQuestWaitingForTime()
local quest_names = reset_time_item_use.GetBiologistQuestNames();
for index, quest_name in ipairs(quest_names) do
if (pc.getf(quest_name, "duration") > 0) then
return index;
end -- if
end -- for

return -1;
end -- function

function IsWaitingForTime()
return reset_time_item_use.GetQuestWaitingForTime() ~= -1;
end -- function

function ExecuteTimeResetForAllQuests()
local quest_names = reset_time_item_use.GetBiologistQuestNames();
for _, quest_name in ipairs(quest_names) do
if (pc.getf(quest_name, "duration") > 0) then
pc.setf(quest_name, "duration", 0);

if (pc.is_gm() or is_test_server()) then
say(string.format("GM/Test: The wait time for the quest %s has been reset.", quest_name))
end -- if
end -- if
end -- for
end -- function

when 20091.chat."hm" with pc.count_item(3969) > 0 begin
say_title(string.format("%s:[ENTER]", mob_name(npc.get_race())))
if (not reset_time_item_use.IsWaitingForTime()) then
return say_reward("You don't have to wait for any quest.");
end -- if

pc.remove_item(3969, 1);
reset_time_item_use.ExecuteTimeResetForAllQuests();
end -- when
end -- state
end -- quest
thanks for your time
Avatar utilizator
apoelaras123
Nivel 1

Nivel 1
Mesaje: 59
Membru din: 10 Aug 2019, 22:57
Regat: Chunjo
Aprecieri: 32  
Mulţumiri: 1  
Medalii

help plss
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

apoelaras123 scrie: ↑20 Noi 2019, 19:50 I want someone to help me modify this quest
ServerFiles utilizat:martysama
Tipologie server(PvM / PvP):PVM
Syserr:nothing
poza:-
quest reset_time_item_use begin
state start begin
function GetBiologistQuestNames()
local data = {
[1] = "biologist_sequence30",
[2] = "biologist_sequence40",
[3] = "biologist_sequence50",
[4] = "biologist_sequence60",
[5] = "biologist_sequence70",
[6] = "biologist_sequence80",
[7] = "biologist_sequence85",
[8] = "biologist_sequence90"
};

return data;
end -- function

function GetQuestWaitingForTime()
local quest_names = reset_time_item_use.GetBiologistQuestNames();
for index, quest_name in ipairs(quest_names) do
if (pc.getf(quest_name, "duration") > 0) then
return index;
end -- if
end -- for

return -1;
end -- function

function IsWaitingForTime()
return reset_time_item_use.GetQuestWaitingForTime() ~= -1;
end -- function

function ExecuteTimeResetForAllQuests()
local quest_names = reset_time_item_use.GetBiologistQuestNames();
for _, quest_name in ipairs(quest_names) do
if (pc.getf(quest_name, "duration") > 0) then
pc.setf(quest_name, "duration", 0);

if (pc.is_gm() or is_test_server()) then
say(string.format("GM/Test: The wait time for the quest %s has been reset.", quest_name))
end -- if
end -- if
end -- for
end -- function

when 20084.chat."hm" with pc.count_item(3969) > 0 begin
say_title(string.format("%s:[ENTER]", mob_name(npc.get_race())))
if (not reset_time_item_use.IsWaitingForTime()) then
return say_reward("You don't have to wait for any quest.");
end -- if

pc.remove_item(3969, 1);
reset_time_item_use.ExecuteTimeResetForAllQuests();
end -- when
end -- state
end -- quest
this quest is working for biologist.
i edited the same for seon but it say core dumped pls help
quest reset_time_item_usex begin
state start begin
function GetBiologistQuestNames()
local data = {
[1] = "collect_quest_lv92",
[2] = "collect_quest_lv94",
[3] = "cq100lv",
[4] = "cq105lv"
};

return data;
end -- function

function GetQuestWaitingForTime()
local quest_names = reset_time_item_use.GetBiologistQuestNames();
for index, quest_name in ipairs(quest_names) do
if (pc.getf(quest_name, "duration") > 0) then
return index;
end -- if
end -- for

return -1;
end -- function

function IsWaitingForTime()
return reset_time_item_use.GetQuestWaitingForTime() ~= -1;
end -- function

function ExecuteTimeResetForAllQuests()
local quest_names = reset_time_item_use.GetBiologistQuestNames();
for _, quest_name in ipairs(quest_names) do
if (pc.getf(quest_name, "duration") > 0) then
pc.setf(quest_name, "duration", 0);

if (pc.is_gm() or is_test_server()) then
say(string.format("GM/Test: The wait time for the quest %s has been reset.", quest_name))
end -- if
end -- if
end -- for
end -- function

when 20091.chat."hm" with pc.count_item(3969) > 0 begin
say_title(string.format("%s:[ENTER]", mob_name(npc.get_race())))
if (not reset_time_item_use.IsWaitingForTime()) then
return say_reward("You don't have to wait for any quest.");
end -- if

pc.remove_item(3969, 1);
reset_time_item_use.ExecuteTimeResetForAllQuests();
end -- when
end -- state
end -- quest
thanks for your time
First of all, let's make it clear: your functions within quest, are based on quest name, therefore if your quest name is
reset_time_item_usex, then no function are triggered.
Take a close look here: reset_time_item_use.GetBiologistQuestNames(), where reset_time_item_use is the name of the quest, and GetBiologistQuestNames() the function itself.
Beside that, this particular quest are looking for "duration" timer, so it have to exist inside of seon quests too.
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
apoelaras123
Nivel 1

Nivel 1
Mesaje: 59
Membru din: 10 Aug 2019, 22:57
Regat: Chunjo
Aprecieri: 32  
Mulţumiri: 1  
Medalii

i replaced all the reset_time_item_use with reset_time_item_usex okay
then i checked in seon quest if duration is the timer there and yes thats it..but again the core is dumped please help its an emergency quest..
thank you very much
Avatar utilizator
apoelaras123
Nivel 1

Nivel 1
Mesaje: 59
Membru din: 10 Aug 2019, 22:57
Regat: Chunjo
Aprecieri: 32  
Mulţumiri: 1  
Medalii

up help pls
Avatar utilizator
Ley
Nivel 9

Nivel 9
Mesaje: 1934
Membru din: 09 Feb 2017, 22:30
Server: Colossus2
Regat: Jinno
Aprecieri: 221  
Mulţumiri: 1338  
Medalii

Subiect inactiv.
Imagine
Afișează semnătura
Închis

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Bing [Bot], Google [Bot] și 79 vizitatori