Jump to content

Open shop by button in sidebar


Recommended Posts

Hello,

I wrote this quest:
 

Spoiler

quest remoteshop begin
    state start begin
        when letter begin
            cmdchat("remoteshop "..q.getcurrentquestindex())
        end
        when button or info begin
            say_title("Vzdálené obchody")
            say("Tato funkce ti umožňuje otevřít")
            say("ty nejpoužívanější obchody NPC")
            say("a zakoupit si potřebné itemy.")
            say("Cena je stejná jako u normálních NPC.")
            say("")
            local risp = select("Smíšené zboží","Hard", "Cancel")
            if risp==3 then
                npc.open_shop(3)
                setskin(NOWINDOW)
            elseif risp == 1 then
                npc.open_shop(3)
                setskin(NOWINDOW)
            elseif risp == 2 then
                npc.open_shop(3)
                setskin(NOWINDOW)
            end
        end
    end
end

And when I click on any button of dialog, nothing happens. But It should open shop..

Can you help me, please? :(

  • Good 1
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

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.