Thread: [503] 40% NPC Spawn.

Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 44
  1. #11  
    Ian...
    Guest
    Basicaly just released it yourself?

    EDIT: And i appologise for leaking didnt i?

    but some kid got to it and releasded his soure like a little ****
    Reply With Quote  
     

  2. #12  
    HcoFlame
    Guest
    Quote Originally Posted by Ian... View Post
    Basicaly just released it yourself?
    Everyone already has because within that 5 mins someone got and released in a source.
    Reply With Quote  
     

  3. #13  
    Ian...
    Guest
    Oh just get the **** over it PLEASE. Jesus Christ.
    Reply With Quote  
     

  4. #14  
    Registered Member NaikBoi's Avatar
    Join Date
    Feb 2007
    Posts
    83
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    um , yea , i did , everything and i dont see any npc's ....
    even added a npc to stand next to me , humm , didnt spawn


    oh and if you add NPCs folder to compiler you get 1 error

    to fix that just

    add
    Code:
        public void resetOffset()
        {
            currentOffset = 0;
        }
    to stream.java in Util folder
    ( just before the last } )


    I am N00b!
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #15  
    Registered Member

    Join Date
    Sep 2007
    Posts
    1,155
    Thanks given
    25
    Thanks received
    17
    Rep Power
    317
    It worked really well

    location: class RS2E.GameEngine
    n.requestAnim(NPCAttack.getDeathAnimation(n.npcTyp e)
    , 0);
    ^
    .\RS2E\GameEngine.java:205: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    NPC n = npcs[index] = new NPC(type, index);
    ^
    .\RS2E\GameEngine.java:205: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    NPC n = npcs[index] = new NPC(type, index);
    ^
    .\RS2E\GameEngine.java:216: cannot find symbol
    symbol : class NPCList
    location: class RS2E.GameEngine
    NPCList nl = npcLists[type];
    ^
    19 errors
    ------------ Compiling packets ------------
    .\RS2E\GameEngine.java:20: '{' expected
    public class GameEngine
    ^
    .\RS2E\GameEngine.java:31: maxNPCs is already defined in RS2E.GameEngine
    public int maxNPCs = 150;
    ^
    .\RS2E\GameEngine.java:32: maxListedNPCs is already defined in RS2E.GameEngine
    public int maxListedNPCs = 7000;
    ^
    .\RS2E\GameEngine.java:36: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    public NPC[] npcs;
    ^
    .\RS2E\GameEngine.java:37: cannot find symbol
    symbol : class NPCList
    location: class RS2E.GameEngine
    public NPCList[] npcLists;
    ^
    .\RS2E\GameEngine.java:38: cannot find symbol
    symbol : class NPCMovement
    location: class RS2E.GameEngine
    public NPCMovement moveN;
    ^
    .\RS2E\GameEngine.java:39: cannot find symbol
    symbol : class NPCUpdate
    location: class RS2E.GameEngine
    public NPCUpdate updateN;
    ^
    .\RS2E\GameEngine.java:247: removePlayer(RS2E.Players.Player) is already defined
    in RS2E.GameEngine
    private void removePlayer(Player p)
    ^
    .\RS2E\GameEngine.java:45: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    npcs = new NPC[maxNPCs];
    ^
    .\RS2E\GameEngine.java:46: cannot find symbol
    symbol : class NPCList
    location: class RS2E.GameEngine
    npcLists = new NPCList[maxListedNPCs];
    ^
    .\RS2E\GameEngine.java:53: cannot find symbol
    symbol : class NPCMovement
    location: class RS2E.GameEngine
    moveN = new NPCMovement();
    ^
    .\RS2E\GameEngine.java:54: cannot find symbol
    symbol : class NPCUpdate
    location: class RS2E.GameEngine
    updateN = new NPCUpdate();
    ^
    .\RS2E\GameEngine.java:58: cannot find symbol
    symbol : class LoadNPCLists
    location: class RS2E.GameEngine
    LoadNPCLists lnl = new LoadNPCLists();
    ^
    .\RS2E\GameEngine.java:58: cannot find symbol
    symbol : class LoadNPCLists
    location: class RS2E.GameEngine
    LoadNPCLists lnl = new LoadNPCLists();
    ^
    .\RS2E\GameEngine.java:127: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    for(NPC n : npcs)
    ^
    .\RS2E\GameEngine.java:144: cannot find symbol
    symbol : variable NPCAttack
    location: class RS2E.GameEngine
    n.requestAnim(NPCAttack.getDeathAnimation(n.npcTyp e)
    , 0);
    ^
    .\RS2E\GameEngine.java:205: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    NPC n = npcs[index] = new NPC(type, index);
    ^
    .\RS2E\GameEngine.java:205: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    NPC n = npcs[index] = new NPC(type, index);
    ^
    .\RS2E\GameEngine.java:216: cannot find symbol
    symbol : class NPCList
    location: class RS2E.GameEngine
    NPCList nl = npcLists[type];
    ^
    19 errors
    ------------ Compiling util ------------
    .\RS2E\GameEngine.java:20: '{' expected
    public class GameEngine
    ^
    .\RS2E\GameEngine.java:31: maxNPCs is already defined in RS2E.GameEngine
    public int maxNPCs = 150;
    ^
    .\RS2E\GameEngine.java:32: maxListedNPCs is already defined in RS2E.GameEngine
    public int maxListedNPCs = 7000;
    ^
    .\RS2E\GameEngine.java:36: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    public NPC[] npcs;
    ^
    .\RS2E\GameEngine.java:37: cannot find symbol
    symbol : class NPCList
    location: class RS2E.GameEngine
    public NPCList[] npcLists;
    ^
    .\RS2E\GameEngine.java:38: cannot find symbol
    symbol : class NPCMovement
    location: class RS2E.GameEngine
    public NPCMovement moveN;
    ^
    .\RS2E\GameEngine.java:39: cannot find symbol
    symbol : class NPCUpdate
    location: class RS2E.GameEngine
    public NPCUpdate updateN;
    ^
    .\RS2E\GameEngine.java:247: removePlayer(RS2E.Players.Player) is already defined
    in RS2E.GameEngine
    private void removePlayer(Player p)
    ^
    .\RS2E\GameEngine.java:45: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    npcs = new NPC[maxNPCs];
    ^
    .\RS2E\GameEngine.java:46: cannot find symbol
    symbol : class NPCList
    location: class RS2E.GameEngine
    npcLists = new NPCList[maxListedNPCs];
    ^
    .\RS2E\GameEngine.java:53: cannot find symbol
    symbol : class NPCMovement
    location: class RS2E.GameEngine
    moveN = new NPCMovement();
    ^
    .\RS2E\GameEngine.java:54: cannot find symbol
    symbol : class NPCUpdate
    location: class RS2E.GameEngine
    updateN = new NPCUpdate();
    ^
    .\RS2E\GameEngine.java:58: cannot find symbol
    symbol : class LoadNPCLists
    location: class RS2E.GameEngine
    LoadNPCLists lnl = new LoadNPCLists();
    ^
    .\RS2E\GameEngine.java:58: cannot find symbol
    symbol : class LoadNPCLists
    location: class RS2E.GameEngine
    LoadNPCLists lnl = new LoadNPCLists();
    ^
    .\RS2E\GameEngine.java:127: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    for(NPC n : npcs)
    ^
    .\RS2E\GameEngine.java:144: cannot find symbol
    symbol : variable NPCAttack
    location: class RS2E.GameEngine
    n.requestAnim(NPCAttack.getDeathAnimation(n.npcTyp e)
    , 0);
    ^
    .\RS2E\GameEngine.java:205: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    NPC n = npcs[index] = new NPC(type, index);
    ^
    .\RS2E\GameEngine.java:205: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    NPC n = npcs[index] = new NPC(type, index);
    ^
    .\RS2E\GameEngine.java:216: cannot find symbol
    symbol : class NPCList
    location: class RS2E.GameEngine
    NPCList nl = npcLists[type];
    ^
    19 errors
    ------------ Compiling world ------------
    .\RS2E\GameEngine.java:20: '{' expected
    public class GameEngine
    ^
    .\RS2E\GameEngine.java:31: maxNPCs is already defined in RS2E.GameEngine
    public int maxNPCs = 150;
    ^
    .\RS2E\GameEngine.java:32: maxListedNPCs is already defined in RS2E.GameEngine
    public int maxListedNPCs = 7000;
    ^
    .\RS2E\GameEngine.java:36: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    public NPC[] npcs;
    ^
    .\RS2E\GameEngine.java:37: cannot find symbol
    symbol : class NPCList
    location: class RS2E.GameEngine
    public NPCList[] npcLists;
    ^
    .\RS2E\GameEngine.java:38: cannot find symbol
    symbol : class NPCMovement
    location: class RS2E.GameEngine
    public NPCMovement moveN;
    ^
    .\RS2E\GameEngine.java:39: cannot find symbol
    symbol : class NPCUpdate
    location: class RS2E.GameEngine
    public NPCUpdate updateN;
    ^
    .\RS2E\GameEngine.java:247: removePlayer(RS2E.Players.Player) is already defined
    in RS2E.GameEngine
    private void removePlayer(Player p)
    ^
    .\RS2E\GameEngine.java:45: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    npcs = new NPC[maxNPCs];
    ^
    .\RS2E\GameEngine.java:46: cannot find symbol
    symbol : class NPCList
    location: class RS2E.GameEngine
    npcLists = new NPCList[maxListedNPCs];
    ^
    .\RS2E\GameEngine.java:53: cannot find symbol
    symbol : class NPCMovement
    location: class RS2E.GameEngine
    moveN = new NPCMovement();
    ^
    .\RS2E\GameEngine.java:54: cannot find symbol
    symbol : class NPCUpdate
    location: class RS2E.GameEngine
    updateN = new NPCUpdate();
    ^
    .\RS2E\GameEngine.java:58: cannot find symbol
    symbol : class LoadNPCLists
    location: class RS2E.GameEngine
    LoadNPCLists lnl = new LoadNPCLists();
    ^
    .\RS2E\GameEngine.java:58: cannot find symbol
    symbol : class LoadNPCLists
    location: class RS2E.GameEngine
    LoadNPCLists lnl = new LoadNPCLists();
    ^
    .\RS2E\GameEngine.java:127: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    for(NPC n : npcs)
    ^
    .\RS2E\GameEngine.java:144: cannot find symbol
    symbol : variable NPCAttack
    location: class RS2E.GameEngine
    n.requestAnim(NPCAttack.getDeathAnimation(n.npcTyp e)
    , 0);
    ^
    .\RS2E\GameEngine.java:205: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    NPC n = npcs[index] = new NPC(type, index);
    ^
    .\RS2E\GameEngine.java:205: cannot find symbol
    symbol : class NPC
    location: class RS2E.GameEngine
    NPC n = npcs[index] = new NPC(type, index);
    ^
    .\RS2E\GameEngine.java:216: cannot find symbol
    symbol : class NPCList
    location: class RS2E.GameEngine
    NPCList nl = npcLists[type];
    ^
    19 errors
    ------------ Compiling main ------------
    .\RS2E\GameEngine.java:20: '{' expected
    public class GameEngine
    ^
    1 error
    ------------ Compile complete ------------
    Press any key to continue . . .
    Reply With Quote  
     

  6. #16  
    Registered Member

    Join Date
    Dec 2007
    Age
    13
    Posts
    838
    Thanks given
    4
    Thanks received
    8
    Rep Power
    93
    Quote Originally Posted by Templer View Post
    It worked really well
    LOL! When I read that it was just 1 error I wet my pants.
    Reply With Quote  
     

  7. #17  
    Encouragin
    Guest
    Well, in 317. You have this mofo method.

    Code:
        public void updateNPC(Player p, Stream str)
        {
            if (p != null && str != null)
            {
                Main.m.ge.globalStream.resetOffset();
                str.createFrameVarSizeWord(65);
                str.initBitAccess();
                str.writeBits(8, p.npcListSize);
                int size = p.npcListSize;
                p.npcListSize = 0;
                for (int i = 0; i < size; i++)
                {
                    if (p.npcList[i] != null)
                    {
                        if (!p.rebuildNPCList && withinDistance(p, p.npcList[i]))
                        {
                            Main.m.ge.moveN.updateNPCMovement(p.npcList[i], str);
                            appendNPCUpdateBlock(p.npcList[i], Main.m.ge.globalStream);
                            p.npcList[p.npcListSize++] = p.npcList[i];
                        }
                        else
                        {
                            int id = p.npcList[i].npcIndex;
                            p.npcInListBitmap[id >> 3] &= ~(1 << (id & 7));
                            str.writeBits(1, 1);
                            str.writeBits(2, 3);
                        }
                    }
                }
                for (NPC n : Main.m.ge.npcs)
                {
                    if (n != null)
                    {
                        int id = n.npcIndex;
                        if ((p.npcInListBitmap[id >> 3] & (1 << (id & 7))) == 0)
                        {
                            if (withinDistance(p, n))
                            {
                                addNewNPC(p, n, str);
                            }
                        }
                    }
                }
                p.rebuildNPCList = false;
                if (Main.m.ge.globalStream.getOffset() > 0)
                {
                    str.writeBits(14, 16383);
                    str.finishBitAccess();
                    str.writeBytes(Main.m.ge.globalStream.getBuffer(), Main.m.ge.globalStream.getOffset(), 0);
                }
                else
                {
                    str.finishBitAccess();
                }
                str.endFrameVarSizeWord();
            }
        }
    Theres some huge mofo values in there which we need to change. Also you see the '65' value at the top of the method, Thats teh npc packet or sumthing. ;\
    Reply With Quote  
     

  8. #18  
    Banned

    Join Date
    Apr 2008
    Age
    26
    Posts
    732
    Thanks given
    5
    Thanks received
    76
    Rep Power
    0
    ffs now ive fucked me source up.
    Reply With Quote  
     

  9. #19  
    Banned
    Join Date
    Sep 2006
    Posts
    375
    Thanks given
    0
    Thanks received
    3
    Rep Power
    0
    Please can someone post their resetOffset method. (Stream.java)
    Reply With Quote  
     

  10. #20  
    Legend Rene
    Guest
    Public Stream str;

    str.currentOffset = 0
    Reply With Quote  
     

Page 2 of 5 FirstFirst 1234 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •