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

Lua Command or npc that give access to all quests,doors,travels. is it possible to do?

Jeyci

Banned User
Joined
May 6, 2023
Messages
289
Solutions
3
Reaction score
36
As title says
Command or npc that give access to all quests,doors,travels. is it possible to do?
in the server that im working you need storage for almost every mission quest. so is there a way to unlock all these with a command or npc or something similar?
 
would like to give it to players to all of them every access is not possible?

Revscripts

Lua:
local talkactionSetGlobalStorage = TalkAction("/globalstorage")

function talkactionSetGlobalStorage.onSay(player, words, param)
    local t = param:explode(",")
    local storage = tonumber(t[1]) or 1
    local value = tonumber(t[2]) or 1

    for _, targetPlayer in pairs(getOnlinePlayers()) do
        targetPlayer:setStorageValue(storage, value)
    end
    return false
end

talkactionSetGlobalStorage:register()

example
/globalstorage storage, value
Will provide storage for all players who are online.
/globalstorage xxxxx, 1
 
Revscripts

Lua:
local talkactionSetGlobalStorage = TalkAction("/globalstorage")

function talkactionSetGlobalStorage.onSay(player, words, param)
    local t = param:explode(",")
    local storage = tonumber(t[1]) or 1
    local value = tonumber(t[2]) or 1

    for _, targetPlayer in pairs(getOnlinePlayers()) do
        targetPlayer:setStorageValue(storage, value)
    end
    return false
end

talkactionSetGlobalStorage:register()

example

Will provide storage for all players who are online.
how to make it when players log in? so i have not do it with every new player? would be possible?
 
Up!
Would be possible that when a players log ins or with a command give all these accesses to the players? not one by one but all
Lua:
https://paste.bingner.com/paste/bu72x
 
Back
Top