Jump to content

filippos1234

Inactive Member
  • Posts

    102
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by filippos1234

  1. 12 minutes ago, Syreldar said:
    
    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
    
            when 3969.use begin
                if (not reset_time_item_use.IsWaitingForTime()) then
                    return syschat("You don't have to wait for any quest.");
                end -- if
    
                local data = reset_time_item_use.GetBiologistQuestNames();
                local get_waiting_quest_id = reset_time_item_use.GetQuestWaitingForTime();
    
                pc.setf(data[get_waiting_quest_id], "duration", 0);
                syschat("The waiting time has been reset successfully.")
            end -- when
        end -- state
    end -- quest

    It should work. Make sure the quest_names are correct in the data table.

    i dont think its working..no second selection appear on biologist 

  2. Hello i search for a quest that if you have an item example.(vnum)3969 get the biologist time to 0 or skip it..

    i found one its on ro i think:

    quest example begin
    state start begin
    		when 20084.chat."Elimina timp" with get_time() <= pc.getqf("duration") begin
    			say_title("Biolog:")
    			say("Planta magica contine acid sulfuric")
    			say("Doar o picatura din ea pe un obiect si")
    			say("a fost distrus!Daca imi oferi una voi putea")
    			say("elimina timpul mai repede!Ai una?")
    			say_item("Floarea biologului","3969","")
    			local s = select ("Da,am la mine.", "Inapoi")
    			if s == 2 then
    				return
    			elseif s == 1 then
    			if pc.count_item(3969) > 0 then
    				say_title("Biologul:")
    				say("Aceasta planta este magnifica.Voi putea elimina")
    				say("timpul imediat.")
    				say(" . . . ")
    				say(" . . . ")
    				say("Gata.Timpul a fost eliminat.Acum astept sa imi")
    				say("aduci alte materiale pentru cercetari!")
    				pc.remove_item(3969, 1)
    				pc.setqf("duration", get_time()-1)
    				end
    			elseif pc.count_item(3969) == 0 then
    				say_title("Biologul:")
    				say("Nu detii nici o planta de acest gen.")
    				say("Ce e drept..este destul de rara.")
    		end
    	end
    		end
    	end

    it get the item (vnum) 3969 but it wont get the time to 0..can anyone help or is there any ready quest like this? thanks

    • Love 1
  3. 10 hours ago, Syreldar said:

    Items, just like everything else that is linked to players and account, do not get removed if you remove the player, they'll still be there, even though linked to a no-longer-existing player (or account in the case of the warehouse).

    To make those players disappear you have to remove their definitions inside player_index.

    To also remove the items etc. just write a very simple query.

     

    Thanks worked for players that was still showing..im not good with this so what query should i write?any example or something

    thx

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.