Jump to content

Connection refused after reloading quests


Recommended Posts

Hello, I've edited the following quest and I'm getting a connection refused error, after reloading the quests and restarting the game core.
I need to reboot the whole machine to reload the quest and to not get the connection refused error.

quest give_basic_weapon begin
    state start begin
        when login with pc.getqf("basicweapon") == 0 begin
            local klasse
			
			say_title("Server namerino")
			say("Welcome to serverino, you warriorerino")
			say("")
			say_reward("Itemerino getterino")
			
            if pc.job == 0 then
                pc.give_item2(11206, 1)
                pc.give_item2(16, 1)			
            elseif pc.job == 1 then    
                pc.give_item2(11406, 1)
                pc.give_item2(2006, 1)
                pc.give_item2(1006, 1)
				pc.give_item2(12346, 1)
				pc.give_item2(8000, 200)				
            elseif pc.job == 2 then
                pc.give_item2(11606, 1)
                pc.give_item2(16, 1)
				pc.give_item2(12486, 1)				
            elseif pc.job == 3 then
                pc.give_item2(11806, 1)
                pc.give_item2(7006, 1)
				pc.give_item2(12626, 1)				
            end
			
			pc.give_item2(13006 , 1)
			pc.give_item2(14006 , 1)
			pc.give_item2(15006 , 1)
			pc.give_item2(16006 , 1)
			pc.give_item2(17006 , 1)
			pc.give_item2(70038 , 50)
			pc.give_item2(72723 , 1)
			pc.give_item2(72727 , 1)
            pc.setqf("basicweapon", 1)	
            set_state(__complete)
        end
    end
    state __complete begin
    end
end

What's wrong with my code?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium
quest give_basic_weapon begin
    state start begin
        when login with pc.getqf("basicweapon") == 0 begin
			say_title("Server namerino")
			say("Welcome to serverino, you warriorerino")
			say("")
			say_reward("Itemerino getterino")
			
            if pc.job == 0 then
                pc.give_item2(11206, 1)
                pc.give_item2(16, 1)			
			elseif pc.job == 1 then    
				pc.give_item2(11406, 1)
				pc.give_item2(2006, 1)
				pc.give_item2(1006, 1)
				pc.give_item2(12346, 1)
				pc.give_item2(8000, 200)				
			elseif pc.job == 2 then
				pc.give_item2(11606, 1)
				pc.give_item2(16, 1)
				pc.give_item2(12486, 1)				
			elseif pc.job == 3 then
				pc.give_item2(11806, 1)
				pc.give_item2(7006, 1)
				pc.give_item2(12626, 1)				
				end
			
			pc.give_item2(13006 , 1)
			pc.give_item2(14006 , 1)
			pc.give_item2(15006 , 1)
			pc.give_item2(16006 , 1)
			pc.give_item2(17006 , 1)
			pc.give_item2(70038 , 50)
			pc.give_item2(72723 , 1)
			pc.give_item2(72727 , 1)
			pc.setqf("basicweapon", 1)	
        end
    end

I'm no lua coder/whatever but now should do the trick.

P.s. not tested but idk if you have to end the elseif's, test it

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.