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

Book in Quest Chest help!

Kanhzaka

New Member
Joined
Sep 9, 2013
Messages
1
Reaction score
0
So when i put writing into a book and then put it into the quest chest, all i find is an empty book. How do i fix this does it have to do with the action id or unique id? Please Help!!
 
You can do it like this.
Code:
local storage = 13007

function onUse(cid, item, fromPosition, itemEx, toPosition)

   if(getPlayerStorageValue(cid, storage) == -1) then
     local book = doPlayerAddItem(cid, 1972, 1)
     doSetItemText(book, "Your Text.")
     setPlayerStorageValue(cid, storage, 1)
     doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a book.")
   else
     doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "The chest is empty.")
   end
   return true
end
 
You can do it like this.
Code:
local storage = 13007

function onUse(cid, item, fromPosition, itemEx, toPosition)

   if(getPlayerStorageValue(cid, storage) == -1) then
     local book = doPlayerAddItem(cid, 1972, 1)
     doSetItemText(book, "Your Text.")
     setPlayerStorageValue(cid, storage, 1)
     doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a book.")
   else
     doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "The chest is empty.")
   end
   return true
end
How do i makes spaces like this ->
This
Book
Is
Boring.
Haha i think you know what i mean ,

Kind regards
 
Back
Top