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

Lua [8.10] Same sprite, different ID?

V

varhlak

Guest
Hey OTlanders.

I'd like to know how to create an item of the same sprite BUT having different ID.

Basically,
Let's say crown armor has ID 5555,
I'd like to make ANOTHER crown armor with ID 5556, how can that be done?

I want to do an upgrade system for the OT and i'm pretty sure that it's possible, just don't know how.
Hope you help me soon enough,
// Varhlak.
 
varhlak you are correctly...

You can do that but you need OtItemEditor 8.1 and when you will add the tags to items.xml, always add after that the original itemId.

Example:
Code:
	<item id="2487" article="a" name="crown armor">
		<attribute key="weight" value="9900" />
		<attribute key="armor" value="13" />
		<attribute key="slotType" value="body" />
	</item>
	<item id="240" article="an" name="upgrade crown armor">
		<attribute key="weight" value="5400" />
		<attribute key="armor" value="16" />
		<attribute key="slotType" value="body" />
	</item>

Or when player buy/sell crown armor to the NPc you will be get errors.
 
here is the answer :))
First Step u need ItemEditor look at pic
Step 1.JPG
Second Step open it like this
Step 2.JPG
Third Step load ur item.otbm from ur server path
Step 3.JPG
Step 4.JPG
Fifth Step in pic explain
Step 5.JPG
 
Sixth Step u can find it in other id with 2487 and remember the cid number cuz this is number of pic in tibia.dat
Step 6.JPG
Step Seven go in deprecate and u see id number 102 in cid type 3381
Step 7.JPG
Step Eight right click on it and choose none to appear in other at the end
Step 8.JPG
Step 9.JPG
now save ur new thing to item.otbm
Step 11.JPG
 
wow we have make a big step on this
now go to ur items.xml in ur server path and as where is ur item.otbm
Step 12.JPG
open it and search for crown armor ... then change id to 102 or better make copy of it and paste then change item id to 102 like this
Step 13.JPG

run your ot and go with ur admin and type /i 102 u will got the crown armor ::))
Finished
Srry for stupid upload with pics
 
Back
Top