Post[Text Tutorial] Adding Custom Loot Bags To Your Server

Posts 1–3 of 3 · Page 1 of 1
[Text Tutorial] Adding Custom Loot Bags To Your Server
This is a tutorial on how to add Loot Bags and how to make them drop.

You Will Need:
A private server
- At least some knowledge of editing the server

Visual Studio or Other Editing Software
- Dont use something such as notepad ++

Sothink SWF Decompiler
- You can go here to learn how to use it.

Step 1: Export Image 143 from your client using Sothink.

Step 2: Create a new Loot Bag sprite, and place it directly next to the white bag sprite.

Step 3: Save your new Image 143, and import it into your client again using sothink.

Step 4: Open up your server in Visual Studio, and go to wserver>logic>Loot>LootBehavior.cs

Step 5: In LootBehavior.cs you will find two pieces of code that look like this:

Code:
case 0: bag = 0x0500; break;
case 1: bag = 0x0503; break;
case 2: bag = 0x0507; break;
case 3: bag = 0x0508; break;
case 4: bag = 0x0509; break;
With both of them, add this line of code directly under the last one:
Code:
case 5: bag = 0x050a; break;
Step 6: Next, go over to db>data>addition.xml

Step 7: Scroll all the way down to the bottom of the code. Place this piece of code above </addition> but below </object>

Code:
<Object type="0x050a" id="Loot Bag 6">
    <DisplayId>Loot Bag</DisplayId>
    <Class>Container</Class>
    <Container/>
    <CanPutNormalObjects/>
    <CanPutSoulboundObjects/>
    <Loot/>
    <Texture>
      <File>lofiObj4</File>
      <Index>0x95</Index>
    </Texture>
    <Size>80</Size>
    <SlotTypes>0, 0, 0, 0, 0, 0, 0, 0</SlotTypes>
  </Object>
Step 8: To make items drop in your new bag, find their object data and look for this line:

Code:
<BagType>1</BagType>
Replace the number between the two <BagType> tags with a five. Then it'll drop in your new custom bag.

Leave a "thanks" if this helped you out
Looks Good, nice job!
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?