Creating custom items with non overlapped sprites!

Posts 115 of 24 · Page 1 of 2
Creating custom items with non overlapped sprites!
Thing you will need for this:
-A SWF Decompiler (I will be using Sothink for this)
-The MMOE Client (the .swf you use to run the game)
-The MMOE Server files
-An image editing program (I use paint.net since it's free and easy to use)

Optional: Notepad++ for an easier time creating the items and their stats

Step 1: Creating the item

For this you need to navigate into your server folder (mine is at private server_mpgh.net_mpgh.net\Private Server\db\data)
and you need to open up addition.xml
I will be creating a cloak for this tutorial so I am going to go back to private server_mpgh.net_mpgh.net\Private Server\db\data
and open up dat20.xml, which has all the items in it. Then I am going to copy the code of the T6 Cloak

Make sure to only copy what is between <Object type="ID" id="ITEM NAME"> and </Object>
Then you need to go back to the addition.xml file and scroll to the bottom, go ahead and paste the T6 Cloak details there
(MAKE YOU PASTE IT ABOVE </Addition> ON THE LAST LINE)
You can now edit the item ID (make sure you check addition.xml and dat20.xml for the item ID to make sure it is not already taken)
and the item name and stats. It should look something like this when you are done.

Incase you would like to change the stats of the cloak here are the ID numbers for the stats
Dexterity = 28
Attack = 20
Defense = 21
Speed = 22
Vitality = 26
Wisdom = 27
Life = 0
Mana = 3

Step 2: Creating the sprite for the item

Open up your SWF Decompiler and open up the client.swf
If you are using Sothink you should see a black box that says "Fx" with client.swf next to it
expand that and open up the image folder (tiered items are in image 117 and abilites in image 70)
I will be using 117 even though I creating a cloak since I keep all my customs in the file, but you can do it in any of them as long as
you know the lofiObj of the image file (image 117 is lofiObj5) now check the box next to the image file, right click and hit export resources.
Save the file somewhere you can find it and open in up in an image editing program. Each row has a letter assigned to it and each item in the row can be either 0-9 or a-e. When you are done editing right click the image file in Sothink and click edit, then navigate to your edited image file and select it.

You can use this chart to find out where your sprite is located. (If your finished item's sprite is offset you may have put the sprite in wrong, but its and easy fix) Once you are done placing the item in the image file, replace the ID of the sprite in the addition.xml with the one you just created.

Step 3: Rebuild your wServer (I rebuild 'db' just to be safe but I don't know if it's neccesary)
When you restart your server and spawn your item with /give ITEM NAME it should work!
If you have any questions please ask and I'll answer them to the best of my abilities!
Here is my finished product and some other items I created!


This is my first tutorial so constructive criticism is welcome!
Quote Originally Posted by Trapped View Post
@Idunnowhy MAN. SERIOUSLY. This is awesome. #firstpost
Haha thank you! Anything I can do to improve it?
Yes. Don't use pictures for code. use code tags
Quote Originally Posted by VikingRaid View Post
Yes. Don't use pictures for code. use code tags
How might I do that?
Quote Originally Posted by Idunnowhy View Post
How might I do that?
Copy the code you want to use, then go into the advanced post editor. Click the # and then paste the code. It makes it look nice:
Code:
XML Code HERE
Also, maybe link my tutorial for a little more detail on the item creation part?
Holy shit man. That is sooooooooooooooooooo cool!
*brofist*

---------- Post added at 07:00 PM ---------- Previous post was at 06:58 PM ----------

Quote Originally Posted by VikingRaid View Post
Yes. Don't use pictures for code. use code tags
Yes, plz :3
Nice!
Thanks for this.
Yeah use Code tags.
Also if you want to be safe you can always rebuild solution.
I have a problem, i can't save the file, Sothink is not regisered
Sorry Guys For Question But...In Sothink SWF Decompiler 6 How To EDIT?


( SRY BAD GRAMMAr )
@Idunnowhy Except the inb4 russians have bad grammar (up), what I'd suggest you to try is to see if the maximum column-row id is "e" or if you can add them without problems.
@Trapped add me at skype (kacper.nowak99)
Sorry but how do i rebuild like what is the file i right click and where is it? i have no clue
You guys know... hum.... piratebay?

Also :
Posts 115 of 24 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?