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

Change Text in a Quest item(a book) YurOTS 7.6 engine

kingkashez

New Member
Joined
Apr 17, 2024
Messages
4
Reaction score
2
So basically I'm doing a quest where you click the body and you get the book so far so good,. I want to know how I can change the readable portion to give clues about the continuing the quest . . I know this is an ancient xml engine but any support is appreciated
 
Solution

Xikini Thanks for your help! ill keep working till it works.​


I tried it but i couldn't get it to work. I think it might have something to do with the book Im using
doPlayerAddItem(cid,prize,1)
doSetItemText(book, "Tell My wife Alice I love her.")
 

Xikini Thanks for your help! ill keep working till it works.​


I tried it but i couldn't get it to work. I think it might have something to do with the book Im using
doPlayerAddItem(cid,prize,1)
doSetItemText(book, "Tell My wife Alice I love her.")
Show the full script
 
Show the full script
simple quests based on uniqueId
-- to make quest create chest on map and set its uniqueId to id of quest item

function onUse(cid, item, frompos, item2, topos)
prize = 1966

if prize > 1000 and prize < 5000 then
queststatus = getPlayerStorageValue(cid,prize)

if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'You have found a ' .. getItemName(prize) .. '.')
doPlayerAddItem(cid,prize,1)
doSetItemText(book, "Tell My wife Alice I love her.")
setPlayerStorageValue(cid,prize,1)
else
doPlayerSendTextMessage(cid,22,"His pockets are empty.")
end

return 1
else
return 0
end
end
 
simple quests based on uniqueId
-- to make quest create chest on map and set its uniqueId to id of quest item

function onUse(cid, item, frompos, item2, topos)
prize = 1966

if prize > 1000 and prize < 5000 then
queststatus = getPlayerStorageValue(cid,prize)

if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'You have found a ' .. getItemName(prize) .. '.')
doPlayerAddItem(cid,prize,1)
doSetItemText(book, "Tell My wife Alice I love her.")
setPlayerStorageValue(cid,prize,1)
else
doPlayerSendTextMessage(cid,22,"His pockets are empty.")
end

return 1
else
return 0
end
end
so yeah, you didn't add the local..?

local book = doPlayerAddItem(cid,prize,1)
 
oh im actually dumb

Works like a charm. Thank you now some poor soul will find the journal and inform alice of his passing.
 
Last edited:
Back
Top