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

Closed

Lbtg

Advanced OT User
Joined
Nov 22, 2008
Messages
2,398
Reaction score
165
Ello , Posible to make quest with reward book , and inside writed words ? if yes please script for it
 
Last edited:
lol . realy strange.....

my actions:
PHP:
  <action uniqueid="7917" script="other/secretbook.lua"/>

script
PHP:
function onUse(cid, item, frompos, item2, topos)

    if item.uid == 7917 then
     queststatus = getPlayerStorageValue(cid,5020227)
     if queststatus == -1 then
	doSetItemText(doPlayerAddItem(cid, 1950),"Warfare Secret:We know one of warfare secrets! Go To Jungle And Find Hero Statue , from statue go 1 south 6 west 3 south 1 west. Here Is A Secret Passage , But we dont know where it leads cuz we dont know secret words to enter it! Find Another Secret Somewhere in Warfare City...")
     setPlayerStorageValue(cid,5020227,1)
     else
     doPlayerSendTextMessage(cid,22,"It is empty.")
     end
    else
    return 0
    end

    return 1
    end


if evrything fine here why the script isint working for me lol
 
LUA:
 function onUse(cid, item, frompos, item2, topos)

local config = {
        storage = 50012, -- change to your own storage value :)
        item = 1955, -- change to id of book
               

}

        if getPlayerStorageValue(cid, config.storage) == -1 then
                setPlayerStorageValue(cid, config.storage, 1)
                                doPlayerSendTextMessage(cid,25,"You have found a book.")
                item = doPlayerAddItem(cid, config.item, 1)
                                doSetItemText(item,"Text\n(break line)Text\n Text")
        else
                doPlayerSendTextMessage(cid,25,"The chest is empty.")
                end
        return TRUE
end
 
Back
Top