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

Lua Custom item?

ultrkomm

New Member
Joined
Nov 6, 2011
Messages
76
Reaction score
3
Hi!

I'm trying to add a custom item that looks exactly like a sword, but has a special description and when you use it it plays music.

Same sprite and everything, only that when you look at it it says "You see a music sword.", and it plays music upon use.

How would I go about doing this?

Thanks
 
If it's obtained through a quest or any sort of LUA script, you could use a LUA function to just add the special name to a normal sword, then make another LUA onUse script that checks for the item name, and if the sword is called 'music sword' it'll play music.

Other than that I guess you'll have to edit the items.otb and create a new item with the sword sprite, for it to have a new item id.
 

Similar threads

Back
Top