Dishonor Scape

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Dishonor Scape

Dishonor Private Server


2 posters

    How to add a GS_MINI to ur server!

    Andy
    Andy


    How to add a GS_MINI to ur server! Empty How to add a GS_MINI to ur server!

    Post  Andy Sun Apr 05, 2009 1:09 am

    Purpose: To make a GodSword Mini, that uses shards
    Assumed Knownledge: how to copy and paste junk.
    Difficulty: 2/10
    Classes modified: Client.java, npchandler.java, autospwan.cfg, item2.java
    If you can not see the items in the white code boxes just highlight the whole box to see the contents

    Im just going to get right to the point.
    open up Client.java.

    search for "case 53"
    after you have searched "case 53" search for
    Code:
    Code:
    CheckForSkillUse();
    if you dont have that, look for the last "{"
    copy and paste this under that.
    Code:
    Code:
                if(itemUsed == 15341 && useWith == 15330) {
                   deleteItem(15341, getItemSlot(15341), 1);
                   deleteItem(15330, getItemSlot(15330), 1);
                   addItem(15331, 1);
                   sendMessage("now use a zammy hilt with it...");
                }
                if(itemUsed == 15331 && useWith == 15340) {
                   deleteItem(15331, getItemSlot(15331), 1);
                   deleteItem(15340, getItemSlot(15340), 1);
                   addItem(15336, 1);
                   sendMessage("You skillfully put together a Zammy Godsword");
                }
                else if(itemUsed == 15329 && useWith == 15343) {
                   deleteItem(15329, getItemSlot(15329), 1);
                   deleteItem(15343, getItemSlot(15343), 1);
                   addItem(15331, 1);
                   sendMessage("now use a bandos hilt with it...");
                }
                else if(itemUsed == 15331 && useWith == 15338) {
                   deleteItem(15331, getItemSlot(15331), 1);
                   deleteItem(15338, getItemSlot(15338), 1);
                   addItem(15334, 1);
                   sendMessage("You skillfully put together a Bandos Godsword");
                }
                else if(itemUsed == 15332 && useWith == 15342) {
                   deleteItem(15332, getItemSlot(15332), 1);
                   deleteItem(15342, getItemSlot(15342), 1);
                   addItem(15331, 1);
                   sendMessage("now use a saradomin hilt with it...");
                }
                else if(itemUsed == 15331 && useWith == 15339) {
                   deleteItem(15331, getItemSlot(15331), 1);
                   deleteItem(15339, getItemSlot(15339), 1);
                   addItem(15335, 1);
                   sendMessage("You skillfully put together a Saradomin Godsword");
                }
                else if(itemUsed == 85 && useWith == 15342) {
                   deleteItem(85, getItemSlot(85), 1);
                   deleteItem(15342, getItemSlot(15342), 1);
                   addItem(15331, 1);
                   sendMessage("now use a armdyl hilt with it...");
                }
                else if(itemUsed == 15331 && useWith == 15337) {
                   deleteItem(15331, getItemSlot(15331), 1);
                   deleteItem(15337, getItemSlot(15337), 1);
                   addItem(15333, 1);
                   sendMessage("You skillfully put together a armdyl Godsword");
                }
    that is what shows the shards used together to get the blade, then having the hilt attatch to the blade to make a GodSword.

    then make the NPC's spawn in the area, open "autospawn.cfg" and paste this in there, at the bottom
    Code:
    Code:
    //--Start of GodWars Minigame by (OWNERNAME\CODER)//
    spawn = 2880   2508   4645   0   2509   4644   2504   4644   1   dagg
    spawn = 2881   2523   4639   0   2512   4633   2529   4658   1   dagg
    spawn = 2881   2524   4650   0   2512   4633   2529   4658   1   dagg
    spawn = 2882   2525   4654   0   2512   4633   2529   4658   1   dagg
    spawn = 2882   2527   4649   0   2512   4633   2529   4658   1   dagg
    spawn = 2883   2525   4648   0   2512   4633   2529   4658   1   dagg
    spawn = 2883   2523   4637   0   2512   4633   2529   4658   1   dagg
    Replace (ownername\coder) with whoever made the minigame for your server.
    after that, we are going to make the NPC's drop the items.
    close autospawn.cfg, and open npchandler.java.
    search for "soldier" and you should see a bunch of crap like this
    Code:
    Code:
    if(npcs[NPCID].npcType == 35) {
    ItemHandler.addItem(Item2.randomsoldier(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    well after the last "}" of soldier, paste the under it.

    Code:
    Code:
    if(npcs[NPCID].npcType == 2881) {
    ItemHandler.addItem(Item2.randomdaggy(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2882) {
    ItemHandler.addItem(Item2.randomdaggy2(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    if(npcs[NPCID].npcType == 2883) {
    ItemHandler.addItem(Item2.randomdaggy3(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    }
    then close that, open item2.java, and search for "soldier" again.
    you should see
    Code:
    Code:
    public static int soldier[] = {3101,6897,3202,1333,1319,1113,1127,1147,1093,1079,1373,4131,995};

      public static int randomsoldier()
      {
         return soldier[(int)(Math.random()*soldier.length)];
      }
    After that last "}" again, paste this
    Code:
    Code:
    public static int daggy[] = {4830,4830,4830,4830,4830,15341,15330,15340,15343,15329,15338,15332,15342,15339,85,15342,15337};

      public static int randomdaggy()
      {
         return daggy[(int)(Math.random()*daggy.length)];
      }
    public static int daggy2[] = {4830,4830,4830,4830,4830,15341,15330,15340,15343,15329,15338,15332,15342,15339,85,15342,15337};

      public static int randomdaggy2()
      {
         return daggy2[(int)(Math.random()*daggy2.length)];
      }

    public static int daggy3[] = {4830,4830,4830,4830,4830,15341,15330,15340,15343,15329,15338,15332,15342,15339,85,15342,15337};

      public static int randomdaggy3()
      {
         return daggy3[(int)(Math.random()*daggy3.length)];
      }
    that makes the drops.
    then your going to make the teleport there.
    close item2.java, and go to client.java.
    search for any command you already have. if you dont understand, then search for "imgay" and then paste this command under the last "}"
    Code:
    Code:
    if (command.equalsIgnoreCase("godwars"))
    {
       sendMessage("kill these and gets hilts and shards");
       teleportToX = 2516;
       teleportToY = 4646;
    }
    save, compile and done.
    post any errors, if you get any.
    Greg
    Greg
    Admin


    How to add a GS_MINI to ur server! Empty Re: How to add a GS_MINI to ur server!

    Post  Greg Sun Apr 05, 2009 11:15 am

    GS mini's are fails lolz :p
    Andy
    Andy


    How to add a GS_MINI to ur server! Empty Re: How to add a GS_MINI to ur server!

    Post  Andy Sun Apr 05, 2009 11:31 am

    meh.. some people like them, as they make their gs mini give mage xp at the end

    Sponsored content


    How to add a GS_MINI to ur server! Empty Re: How to add a GS_MINI to ur server!

    Post  Sponsored content


      Current date/time is Sun May 19, 2024 4:15 am