Jump to content

npc.open_shop doesn't work and all npc functions


Recommended Posts

hello my quest doesn't work anyone can help me?

all functions like npc.get_race etc return null and the same result in syser

 

quest test begin
    state test begin
        when 2018.chat."shop " begin
            npc.open_shop(5)
            setskin(NOWINDOW)
        end

end

 

syser: SYSERR: Jul 16 12:01:49 :: RunState: LUA_ERROR: [string "test"]:5: attempt to call field `open_shop' (a nil value)
SYSERR: Jul 16 12:01:49 :: WriteRunningStateToSyserr: LUA_ERROR: quest test.start click

Link to comment
Share on other sites

  • 11 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hello, i found the solution today.

The problem is that you have a certain quest in your quests folder wich is named with "npc".

I am not talking about the extern names of the files like "give_basic_weapon.quest"

I am talking about after you open a quest file and it says:

quest npc begin

	state start begin

		when 20016.chat  begin 

Well, that "npc" on FIRST line is creating the problem, i don't know why... but it makes certain quests to not work anymore.

Just search your quests and change the name and problem solved.

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.