Thread: PI 2 Errors!

Results 1 to 7 of 7
  1. #1 PI 2 Errors! 
    PhoenixPk - Nothing is impossible
    T3rminator's Avatar
    Join Date
    Feb 2012
    Posts
    327
    Thanks given
    31
    Thanks received
    14
    Rep Power
    16
    Hey i added this:
    int[] dpitems = { 2675, 2671, 2673, 2667, 2665, 2663, 2659, 2657, 2655, 4151, 4151 }; /* Add all of the item IDS here */

    public int dpitems() {
    return dpitems[(int) (Math.random() * dpitems.length)];
    }
    int count = 0;
    public void dropparty() {
    EventManager.getSingleton().addEvent(new Event() {
    public void execute(EventContainer b) {
    if(count == 30) { /* Change the amount of items to be dropped here, currently 30. */
    b.stop();
    sendMessage("The drop party is now over, hope everyone enjoyed!");
    } else {
    for (int j = 0; j < Server.playerHandler.players.length; j++) {
    if (Server.playerHandler.players[j] != null) {
    Client p1 = (Client)Server.playerHandler.players[j];
    int d1 = 0;
    d1 = Misc.random(8);
    if(d1 == 0) {
    Server.itemHandler.createGroundItem(p1, dpitems(), absX-Misc.random(5), absY-Misc.random

    (5), 1, j);
    count += 1;
    } else if(d1 == 1) {
    Server.itemHandler.createGroundItem(p1, dpitems(), absX-Misc.random(5), absY-Misc.random

    (5), 1, j);
    count += 1;
    } else if(d1 == 2) {
    Server.itemHandler.createGroundItem(p1, dpitems(), absX+Misc.random(5), absY+Misc.random

    (5), 1, j);
    count += 1;
    } else if(d1 == 3) {
    Server.itemHandler.createGroundItem(p1, dpitems(), absX+Misc.random(5), absY+Misc.random

    (5), 1, j);
    count += 1;
    } else if(d1 == 4) {
    Server.itemHandler.createGroundItem(p1, dpitems(), absX-Misc.random(5), absY+Misc.random

    (5), 1, j);
    count += 1;
    } else if(d1 == 5) {
    Server.itemHandler.createGroundItem(p1, dpitems(), absX-Misc.random(5), absY+Misc.random

    (5), 1, j);
    count += 1;
    } else if(d1 == 6) {
    Server.itemHandler.createGroundItem(p1, dpitems(), absX+Misc.random(5), absY-Misc.random

    (5), 1, j);
    count += 1;
    } else if(d1 == 7) {
    Server.itemHandler.createGroundItem(p1, dpitems(), absX+Misc.random(5), absY-Misc.random

    (5), 1, j);
    count += 1;
    }
    }
    }
    }
    }
    },2500); //2.5 sec per item
    };



    Then i get those 2 errors:
    src\server\model\players\Client.java:2049: cannot find symbol
    symbol : class Event
    location: class server.model.players.Client
    EventManager.getSingleton().addEvent(new Event() {
    ^
    src\server\model\players\Client.java:2049: cannot find symbol
    symbol : variable EventManager
    location: class server.model.players.Client
    EventManager.getSingleton().addEvent(new Event() {
    ^
    Reply With Quote  
     

  2. #2  
    Member PI 2 Errors! Market Banned

    thesharp's Avatar
    Join Date
    Dec 2010
    Age
    32
    Posts
    1,118
    Thanks given
    311
    Thanks received
    140
    Rep Power
    312
    Import EvenManager class
    Reply With Quote  
     

  3. #3  
    PhoenixPk - Nothing is impossible
    T3rminator's Avatar
    Join Date
    Feb 2012
    Posts
    327
    Thanks given
    31
    Thanks received
    14
    Rep Power
    16
    i don't even got event manager in my source lol
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jun 2012
    Posts
    1,063
    Thanks given
    119
    Thanks received
    199
    Rep Power
    0
    Quote Originally Posted by T3rminator View Post
    i don't even got event manager in my source lol
    IMPORT IT, LIKE HE STATED ABOVE.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Freezia's Avatar
    Join Date
    Feb 2011
    Posts
    6,013
    Thanks given
    1,147
    Thanks received
    758
    Rep Power
    1311
    If you don't have eventmanager you need to do the tutorial to add it in.


    Host your RUNESCAPE PRIVATE SERVER on the cheapest and flagship provider on Rune-Server! Now equipped with DDOS Protection!.


    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Apr 2012
    Posts
    762
    Thanks given
    0
    Thanks received
    276
    Rep Power
    213
    PI should come with event manager. It's in server->events, I believe. Haven't used PI in a long time.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    Quote Originally Posted by Shrugged View Post
    IMPORT IT, LIKE HE STATED ABOVE.
    If you don't have it, you can't fucking import it.

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 72
    Last Post: 01-24-2017, 02:03 PM
  2. Replies: 2
    Last Post: 06-24-2012, 10:59 PM
  3. 562 Loading 602 GE Errors 2 Errors
    By .Optimum in forum Help
    Replies: 1
    Last Post: 07-12-2011, 07:30 AM
  4. Replies: 11
    Last Post: 11-07-2009, 08:43 PM
  5. Replies: 1
    Last Post: 09-24-2009, 12:39 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •