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

Windows Quest Scrolls Script ( like Blue and green Djinn by click Quest done)

zufux

Member
Joined
Sep 1, 2008
Messages
221
Reaction score
5
Hello,

maybe anyone go this scripts, I need like a scroll to complete a quest by one click.

maybe anyone got this script and would it share with me.

Thank you
 
https://otland.net/threads/rules-for-the-support-board.217087/
#5

Since you didn't type any server version I wrote a script for TFS 1.X.
You could do something like this:
Code:
local config = {
    questStorage = 2000,
    storageValue = 1,
    finnishValue = 2,
    questName = "Pits of Inferno"
}

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if player:getStorageValue(config.questStorage) > config.storageValue then
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You completed the ".. config.questName .." quest.")
        player:setStorageValue(config.questStorage, config.finnishValue)
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You already completed the ".. config.questName .." quest.")
    end
end

This script check if the questStorage is lower than storageValue.
 
This should really be in requests, you should create an action script that sets the storage value of the quest to 1 or whatever the value is to show it has been completed.
 
Back
Top