Jump to content

Recommended Posts

Hello,

I have a problem with this quest

Spoiler

quest horse_guard begin
    state start begin
    when 20349.chat."Upgrade Horse" begin 
            say_title("Stable Boy:") 
            say("") 
            say("Hello!") 
            say("With me you can improve your horse.") 
            say("Raising the horse level costs you 10 horse medal per level.") 
            say("") 
            say_reward("Would you like to raise your horse level?") 
            say("") 
            local s = select("Yes", "No") 
                if s == 1 then 
                    say_title("Stable Boy:") 
                    say("") 
                            if pc.count_item(50050) <9 then 
                            pc.remove_item("50050", 10)
                            horse.unride() 
                            horse.advance() 
                            horse.ride() 
                            say("Your horse is now level "..(horse.get_level()).." WINK.") 
                            say("") 
                            elseif horse.get_level()>=30 then 
                            say("Your horse has reached level 30.") 
                            say("You can not increase it.") 
                            say("") 
                            elseif pc.count_item(50050) >10 then 
                            say("You do not have enough horse medals to increase the level of your horse.") 
                            say("") 
                end 
                elseif s == 2 then 
                    return 
        end 
    end 
        when 20349.chat.gameforge.horse_guard._10_npcChat begin
            say_title(gameforge.horse_levelup._240_sayTitle)
            local s=number(1, 7)
            if 1>=s then -- 14.29% (1/7)
                say(gameforge.horse_guard._20_say)
            elseif 2>=s then -- 14.29% (1/7)
                say(gameforge.horse_guard._30_say)
            elseif 3>=s then -- 14.29% (1/7)
                say(gameforge.horse_guard._40_say)
            elseif 4>=s then -- 14.29% (1/7)
                say(gameforge.horse_guard._50_say)
            elseif 5>=s then -- 14.29% (1/7)
                say(gameforge.horse_guard._60_say)
            elseif 6>=s then -- 14.29% (1/7)
                say(gameforge.horse_guard._70_say)
            elseif 7>=s then -- 14.29% (1/7)
                say(gameforge.horse_guard._80_say)
            end
        end
    end
    state __COMPLETE__ begin
        when enter begin
            q.done()
        end
    end
end

It says i don't have enough horse medals even tho i have.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.