UnhappyItem creation does not work [Club599's Source]

Posts 16 of 6 · Page 1 of 1
Item creation does not work [Club599's Source]
Hello, this is about one of my first times posting here. I registered ages ago, but, to the point.
I'm using Club599's source and I'm attempting to make an item. At first, everything seems fine. DB rebuilds fine, wServer rebuilds with the average 212 warnings... but then I open the private server. It all works. No errors in wServer or server, except for the occasional LAGGED! [blahblahblah]. So, I attempt /give {item name, in this case, Buggy Manor Key}. It says, "Success!" but nothing appears to be in my inventory. I'm somewhat new to C# coding, and I'm using SharpDevelop 5.0.3. That slot it was in won't show any 'Empty Item Slot' or anything. Once I replace it with something else, the slot is all reddy.

Here is my code:

Code:
  <Object type="0x1920B" id="Buggy Manor Key">
    <Class>Equipment</Class>
    <Item/>
    <Texture>
      <File>lofiObj2</File>
      <Index>0x29</Index>
    </Texture>
	<SlotType>2</SlotType>
    <Description>A failed key produced from an attempt of Dr Terrible trying out his cloning machine.</Description>
	<RateOfFire>1</RateOfFire>
	<Sound>weapon/dirk</Sound>
	<Soulbound/>
	<Projectile>
	  <ObjectId>Bone Dagger Shot</ObjectId>
	  <Speed>160</Speed>
	  <MinDamage>120</MinDamage>
          <MaxDamage>165</MaxDamage>
	  <LifetimeMS>329</LifetimeMS>
	</Projectile>
	<BagType>4</BagType>
	<OldSound>daggerSwing</OldSound>
	<FameBonus>4</FameBonus>
  </Object>
So, is it my code, the source or SharpDevelop? Please help because this happens with EVERY item I try to create. Thank you in advance.
I think you did something wrong here bro
<Object type="0x1920B" id="Buggy Manor Key">

(:
Is there something wrong with the ID? Changing now. If not, I'm going to be a noob into my own face.
Quote Originally Posted by hydranoid800 View Post
Is there something wrong with the ID? Changing now. If not, I'm going to be a noob into my own face.
its your Object Type

you can't have it as 0x1920B as it's not a hex decimal. It should be more like 0x1921
Quote Originally Posted by Ahl View Post
its your Object Type

you can't have it as 0x1920B as it's not a hex decimal. It should be more like 0x1921
Wait, so instead of <Number> to hex, it should be <Number> to hexadecimal? Thanks, because your solution worked!

EDIT: Hex + Hexadecimal = Same thing...
Quote Originally Posted by hydranoid800 View Post
Wait, so instead of <Number> to hex, it should be <Number> to hexadecimal? Thanks, because your solution worked!

EDIT: Hex + Hexadecimal = Same thing...
A thank?
/10chars
Posts 16 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?