• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Add storage yalahar quest

undead mage

Active Member
Joined
Mar 25, 2012
Messages
364
Solutions
2
Reaction score
47
Location
Amsterdam
Im trying to add storage at login so people won't have to do the missions for yalahar quest just the last battle but im having some problems. Im using TFS 1.2 and also the yalahar quest system that came with TFS 1.2

to enter the teleport to the room you need this storage

server/data/movements/scripts/quests/in service of yalahar/lastFightTeleports.lua
Code:
if player:getStorageValue(Storage.InServiceofYalahar.Questline) == 51 then

So I checked the storage file and found this storage
server/data/lib/miscellaneous/051-storages.lua
Code:
        Mission10 = 12250,

So I tryd this in login.lua but it didn't work people still can't enter the teleport to enter the last fight
Code:
    player:setStorageValue(12250, 51)
 
Im trying to add storage at login so people won't have to do the missions for yalahar quest just the last battle but im having some problems. Im using TFS 1.2 and also the yalahar quest system that came with TFS 1.2

to enter the teleport to the room you need this storage

server/data/movements/scripts/quests/in service of yalahar/lastFightTeleports.lua
Code:
if player:getStorageValue(Storage.InServiceofYalahar.Questline) == 51 then

So I checked the storage file and found this storage
server/data/lib/miscellaneous/051-storages.lua
Code:
        Mission10 = 12250,

So I tryd this in login.lua but it didn't work people still can't enter the teleport to enter the last fight
Code:
    player:setStorageValue(12250, 51)
try to use print more often
comes in handy for troubleshooting before you post things like this
try print(Storage.InServiceofYalahar.Questline) and see what it shows in your console
if it's not 12250 then there's your problem
 
try to use print more often
comes in handy for troubleshooting before you post things like this
try print(Storage.InServiceofYalahar.Questline) and see what it shows in your console
if it's not 12250 then there's your problem

How do I do that? Do you mean the console when I start the server up? Because I can't type anything there
 
How do I do that? Do you mean the console when I start the server up? Because I can't type anything there
yes, console is the cmd that pops up for your server and shows everything that goes on
the print() function sends a message to console and you can show what's in locals, tables, what a function returns, etc.
it's really helpful with troubleshooting to test if something is working as it should or not
you just put print(Storage.InServiceofYalahar.Questline) before if player:getStorage~ so it should try to print that storage value
 
yes, console is the cmd that pops up for your server and shows everything that goes on
the print() function sends a message to console and you can show what's in locals, tables, what a function returns, etc.
it's really helpful with troubleshooting to test if something is working as it should or not
you just put print(Storage.InServiceofYalahar.Questline) before if player:getStorage~ so it should try to print that storage value
Ah I see indeed that I did make a mistake it's 12240 it worked now thanks!
 
Back
Top