• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Księga - reward chest - text

Erazma

Banned User
Joined
Sep 3, 2012
Messages
265
Reaction score
4
Może ktoś mi powiedzieć jak zrobić coś takiego że gdy użyje skrzyni dostane książke ale ... bd w niej coś np pisało?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

if item.uid == UID then
queststatus = getPlayerStorageValue(cid, STORG)
if queststatus < 1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "BOOK")
doPlayerAddItem(cid, BOOK ID, 1)
doPlayerSetStorageValue(cid, STORG, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end

end
return TRUE
end
 
doSetItemText(doPlayerAddItem(cid, BOOK ID, 1), "text")

spróbuj

jak nie będzie działać to zrób tak, że przy otrzymaniu książki skrypt nadaje jej jakieś actionid

i potem w actions
if item.actionid == X then doShowTextDialog(cid, itemid, text) end
 
Last edited:
weś mój skrypt z sygnaturki, ten mój quest system tam masz skrypt który wypisuje w book'a texty
 
Back
Top