• 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!

Travel NPC

Kungenn

Veteran OT User
Joined
Jun 10, 2007
Messages
1,625
Reaction score
283
Location
USA California
From what I understand to make a travel destination require premium you write

name,destination,price,--->1<--- and it will require premium to travel?


city name,3471,3475,6,120,1

Correct?

function TravelModule:addDestination(name, position, price, premium)

But when I do that I get lots of errors in the console when people without premium try to travel.


And they do not get any message saying that it requires premium to travel to that place.


Code:
data/npc/scripts/default.lua:onCreatureSay
Description:
data/npc/lib/npcsystem/modules.lua:433: attempt to index global 'modulenpcHandler' <a nil value>
stack traceback:
data/npc/lib/npcsystem/modules.lua:433: in function 'callback'
data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage'
data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage'
data/npc/lib/npcsystem/keywordhandler.lua:122: in function 'processMessage'
data/npc/lib/npcsystem/npchandler.lua:387: in function 'onCreatureSay'
data/npc/scripts/default.lua:7: in function <data/npc/scripts/default.lua:7>

Really hope someone can help after I wrote all that by hand lol :p
 
Back
Top