Jump to content
  • 0

Quest for change lvl 105 => 104


Godric

Question

16 answers to this question

Recommended Posts

  • 0

Mmmhh I have 34083 game.

 

But it's not possible create an query in the quest ?

Because I go navicat, I go in my player. level : 105. I change 104 and ingame it's good ^^ I'am lvl 104.

It's not possible create quest for this ?

Thanks.

Link to comment
  • 0
  • Honorable Member

I didn't tested it, but i think it will work..

quest change_level begin
	state start begin
		when ITEM_ID.use begin
			if pc.get_level() == 105
				say("Do you really change your level?")
				local select=select ("Yes", "No")
					if 1==select
						say("Your level was changed")
						pc.set_level(104)
						return
					end
					if 2==select
						return
					end
			else
				return
			end
		end
	end
end
	
Link to comment
  • 0

Thanks ^^

I click right to the item (40002) and nothing :(

Because the questfunc pc.set_level is not in your gamefile. Risan has already said this, you need a newer gamefile. (best way would be a precompiled 40k core with this func)

Link to comment
  • 0

I didn't tested it, but i think it will work..

quest change_level begin
	state start begin
		when ITEM_ID.use begin
			if pc.get_level() == 105
				say("Do you really change your level?")
				local select=select ("Yes", "No")
					if 1==select
						say("Your level was changed")
						pc.set_level(104)
						return
					end
					if 2==select
						return
					end
			else
				return
			end
		end
	end
end
	

 

 

 

Your quest don't work with game 40k :s

Error :

 

if pc . get_level ( ) == 105

say ( "Do you really change your level?" )

local select = select ( "Yes" , "No" )

if 1 == select

say ( "Your level was changed" )

pc . set_level ( < span class = "searchlite" > 104 < / span > )

return

end

if 2 == select

return

end

else

return

end

syntax error : [string "start"]:2: `then' expected near `say'

Abort trap (core dumped)

 

 

 

Help me :)

Link to comment
  • 0
quest change_level begin
    state start begin
        when ITEM_ID.use begin
            if pc.get_level() == 105 then
                say("Do you really change your level?")
                local select=select ("Yes", "No")
                    if 1==select
                        say("Your level was changed")
                        pc.set_level(104)
                        return
                    end
                    if 2==select
                        return
                    end
            else
                return
            end
        end
    end
end
    

try it like this

Link to comment
  • 0

does the pc.set_level function work in the vanilla core? '-'

 

vanilla core is based on 40k src it should support this function unless it was removed by her  , for depresation on because it is useless

  • Love 1
Link to comment
  • 0

quest change_level begin
    state start begin
        when ITEM_ID.use begin
            if pc.get_level() == 105 then
                say("Do you really change your level?")
                local select=select ("Yes", "No")
                    if 1==select
                        say("Your level was changed")
                        pc.set_level(104)
                        return
                    end
                    if 2==select
                        return
                    end
            else
                return
            end
        end
    end
end
    

try it like this

 

 

Don't work :s

 

Error :

 

if pc . get_level ( ) == 105 then

say ( "Do you really change your level?" )

local select = select ( "Yes" , "No" )

if 1 == select

say ( "Your level was changed" )

pc . set_level ( 104 )

return

end

if 2 == select

return

end

else

return

end

syntax error : [string "start"]:5: `then' expected near `say'

Abort trap (core dumped)

 

 

Link to comment
  • 0
  • VIP

The "then" keywords were missed from the condition-lines.

if cond then

 local select=select ("Yes", "No")
                    if 1==select
                        say("Your level was changed")
                        pc.set_level(104)
                        return

correct:

 local select=select ("Yes", "No")
                    if 1==select then
                        say("Your level was changed")
                        pc.set_level(104)
                        return
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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