Need Help With Skeletron Drop Code

Discussion in 'Released Mods' started by K3V1NBP, Dec 17, 2012.

  1. K3V1NBP Squirrel

    so im trying to make the skeletron ( normal one ) drop an item that i created but i can't seem to make the code work. SO here's the code: http://pastebin.com/EDUDXT8R

    Any Help Would Be Very Apreaciated Thx .
  2. Modder35342 Bunny

    Why do you need to code it? If it's just an additional item, I think you can define it in the Drops section of Skeletron.ini, something like

    [Drops]
    1-2 MyItem=100

    That's 100% to drop 1-2 of the item on death, in addition to the default drops.

    EDIT: I'm not 100% sure that "Skeletron.ini" is the right file name, but you can always add it to Skeletron Head.ini instead. For the hardmode version, there's Skeletron Prime.ini
    Bullseye55 likes this.
  3. Bullseye55 Moth

    Alright, to modify the items a NPC drops, find its .ini file.


    Find Skeleton's .ini file, then modify the drops in that file, then save that file into your modpack.


    The code you created is not needed. :p
  4. K3V1NBP Squirrel

    yeah it is i tried with only the .ini but it didint worked... about a year ago i managed to change the zombie drop but i dont remember the code for it
  5. Bullseye55 Moth


    Is the .ini in your own modpack? If not, it has no effect.
  6. Modder35342 Bunny

    You didn't forget to rebuild the modified ini into a mod and enable it in-game, did you? Check the rest of the entries. Here's how the Fireball mod adds a chance for a Circle of Bone drop to Skeletron Head.ini :

    Code:
    [Stats]
    npcSlots=6
    width=80
    height=102
    type=35
    aiStyle=11
    timeLeft=750
    damage=32
    defense=10
    soundHit=2
    soundKilled=2
    lifeMax=4400
    displayName=Skeletron
    scale=1
    noGravity=True
    noTileCollide=True
    boss=True
    value=50000
    [Buff Immunities]
    Poisoned=True
    On Fire!=True
    Confused=True
    Cursed Inferno=True
    [Drops]
    1 Circle of Bone=25
    Bullseye55 likes this.
  7. Classikly Flying Snake

    Okay people, we don't need 3 posts with the exact same answers on them. One's enough.
    Bullseye55 and Yoraiz0r like this.
  8. Bullseye55 Moth

    Just turned into a tie. :p

    We answered at the same time, it seems. XD

Share This Page