• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPC - old talk system on 8.6

Joined
Aug 15, 2013
Messages
11
Reaction score
4
Location
DBK
Hello everyone.
I want ask you how I can set talk with NPC to working like old tibia?
There is something in the modules.lua:
Lua:
    -- Constants used for shop mode. Notice: addBuyableItemContainer is working on all modes
    SHOPMODULE_MODE_TALK = 1 -- Old system used before Tibia 8.2: sell/buy item name
    SHOPMODULE_MODE_TRADE = 2 -- Trade window system introduced in Tibia 8.2
    SHOPMODULE_MODE_BOTH = 3 -- Both working at one time
But I don't know how use it in npc file...
 
Solution
If we look at the sources on line 29 of modules.lua we can see this.
Lua:
    SHOPMODULE_MODE = SHOPMODULE_MODE_BOTH
If you would like to set the mode to the old system just place this below anywhere in your npc script.
Lua:
    SHOPMODULE_MODE = SHOPMODULE_MODE_TALK
Now if you want to do this globally then replace the code on line 29 of modules with the code above.
If we look at the sources on line 29 of modules.lua we can see this.
Lua:
    SHOPMODULE_MODE = SHOPMODULE_MODE_BOTH
If you would like to set the mode to the old system just place this below anywhere in your npc script.
Lua:
    SHOPMODULE_MODE = SHOPMODULE_MODE_TALK
Now if you want to do this globally then replace the code on line 29 of modules with the code above.
 
Solution
Back
Top