How to add custom items to FSOD. (The right way without lag)

Posts 1–6 of 6 · Page 1 of 1
How to add custom items to FSOD. (The right way without lag)
So first off this tutorial is for the .swf not the AS3 client once I update to it and add some items I will do a tutorial for it!
In this tutorial we are using Visual Studio Community 2017, JPEXS Free Flash Decompiler, and GIMP2. (All of these are free!)

Open your server.sln, once open you want to navigate to db > data > dat1.xml

So once you are there you want to start creating your item so if you are making a weapon I would use the DPS Calculator 20 you can find it on Google, but if you are making any other kind of item I would copy/paste an item of the same type and just change the stats to your likings.

So there are a few lines you may be confused about and I was to my first time so let me clear them up for you,

Can't figure out the <Object type="0xa73" id="Dusky Rose Dagger"> line?

So this is the line most people can't figure out, <Object type="0xa73" id="Dusky Rose Dagger">. It is really simple, so the "type" is just the unique say item number it must be unique! (Btw it is kept in Hex which is the wierd number format.) So I would start with the Hex ID 0xc00 I do not believe anything above this is used. And the ID must also be unique, so the finished product would be like this, <Object type="0xc00" id="Sword of Awesome">. And so the next item's type would be 0xc00, and once you reach 0xc09 the next one will be 0xc0a, then once you reach 0xc0f it will change to 0xc10. The second line people can't figure out is this one,
<Texture>
<File>lofiObj3</File>
<Index>0x21a</Index>
</Texture>
And we will get back to this after the next step


So now it is time to move over to JPEXS,

First you want to open your .swf file, which is located in the same file that your server.sln is in.
Then you want to open the images, you want to locate image 188, it will be lofiObj3 then right-click it and click
"Export Selection". Now go to where you exported it and edit it with GIMP2 or any other image editing program
that allows transparent pictures. (Meaning you can't use paint...) Now you want to go to the VERY last texture added, it
should be a gift, well that gift's Index (Position on the image) is 0x55a, so you want to make your item right next to it, make sure
your item stays in a 8x8 box and doesn't cut into another item's space. (Items do touch each other but as long as they stay in thier space it doesn't matter.) After adding your item save the file as a .PNG it MUST be a .PNG, and then go back to JPEXS, and right click on the original image, and then
click replace and find/select your new PNG, and then save JPEXS but keep it open!

Now we need to get back to the server.sln and go back to this line,

<Texture>
<File>lofiObj3</File>
<Index>0x21a</Index>
</Texture>

So if you remember I said that the gifts Hex ID was 0x55a so that means yours would be, 0x55b so make that the Index, meaning
the finished product would be this;

<Texture>
<File>lofiObj3</File>
<Index>0x55b</Index>
</Texture>

and now you want to save/rebuild and then copy all of you're dat1.xml and mak sure to keep Visual Studio open!

Now go back to JPEXS and go to binarydata, then right click on the first object and export it as you did the img.
Then you want to open that with a text editor and paste the dat1.xml you copied, then save the document, and
replace the old one in JPEXS with your new one and then save you're client! Then you are good to go!

I hope this helped you, I had to make this in like 5 minutes so it wasn't the best detail if you need any help comment down below and I will be sure to reply!
Nice man. Thanks for the VPS
Quote Originally Posted by Anime View Post
Nice man. Thanks for the VPS
No Problem. (To any outsiders reading this, this is completely unrelated...)
The last gift isn't 0x55a, it is 0x563! (So you would use 0x564!)
@Ahl @Raple, can one of you close this thread there are a few errors and I will post a new one later.
Thanks for noticing. Also, enjoying the VPS
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us