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

Make a book stuck to a table. But still possible to click and look in the book.

Znote

<?php echo $title; ?>
Staff member
Global Moderator
Premium User
Joined
Feb 14, 2008
Messages
7,030
Solutions
256
Reaction score
2,118
Location
Norway
GitHub
Znote
Hello, I have an issue, I made ingame highscores on my server, you click on a book, and you can see level highscores etc.

But they can also move that book, and drag it in their backpack.

It would be great if I could make it stuck on the table where it belongs. any possible way to do this?

Some ppl say I can make it stuck by adding unique id, but can anybody give me an example of a line for making it stuck with unique id in actions.xml?

Its allways "unique id "xxx" script "blabla.lua"

But do I need a script to make it stuck? what script in that case? :p
 
Code:
	<action uniqueid="20151" />
	<action uniqueid="20152" />
	<action uniqueid="20153" />
	<action uniqueid="20154" />
	<action uniqueid="20155" />
	<action uniqueid="20156" />
	<action uniqueid="20157" />
	<action uniqueid="20158" />
	<action uniqueid="20159" />
Didn't work.... I got uniqueid 20151 - 159 in the books on the map editor.

TFS got this included and it works perfectly:
Code:
	<action itemid="1981" function="highscoreBook"/>
But i can still move the books.

Shall I make

Code:
	<action uniqueid="20157" function="highscoreBook" />
?
 
Last edited:
Don't put anything in actions.xml, just put the actionID on the item, without a script linked to it.

Added the books, only added action id 151 - 159

didnt work....

can somebody can explain this in details for how to make it stuck?
 
Hahh... old thread from me, but now I need this again.

But not as unique id, but more as an action id.

My friend told I could use action id 5556 to make an item stuck, and it worked (i think) on a statue, now I try to do this on a book, but players can still move the book. :C Anyone got any idea?

Edit:
Fixed it, was easy ^^

I made so I runned the script on all kinds of book who use the item id.

When I used unique id, I made so only 1 book got that text inside, and now it also got sticky! <3

So problem solved! :D
 
Last edited:
Or just give it a random unique id that you dosn't even have to use actions.xml to load. Thats what im using, its stuck there, you cant move it, you cant pick it up. :)
 
Back
Top