Thread: barrows mini no errors but not working (dev. 2.6

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 barrows mini no errors but not working (dev. 2.6 
    Banned

    Join Date
    Jul 2009
    Posts
    915
    Thanks given
    1
    Thanks received
    10
    Rep Power
    0
    Alright so i added barrows mini...fixed the errors by fixing the methods...and now for some reason...it just isnt working...

    your supose to climb down a man hole then get teleported to a cage.

    and after killing the barrows you receive a key and are suppose to use it on a chest then get tele to the starting place of where the man hole is.

    why isnt this work?

    here is the coding for the teleporting and shit...this is for devo 2.6

    idk why its not working.



    Code:
             
    
    
    case 881: // i used a manhole :p
    if (misc.random(6) == 1)
    {
    teleportToX = 3014;
    teleportToY = 3194;
    CAM().sendMessage("You telle to "+GetNpcName(2030)+". Good luck!!"); 
    }
    else if (misc.random(6) == 2)
    {
    teleportToX = 3014;
    teleportToY = 3191;
    CAM().sendMessage("You telle to "+GetNpcName(2025)+". Good luck!!"); 
    }
    else if (misc.random(6) == 3)
    {
    teleportToX = 3014;
    teleportToY = 3188;
    CAM().sendMessage("You telle to "+GetNpcName(2026)+". Good luck!!"); 
    }
    else if (misc.random(6) == 4)
    {
    teleportToX = 3018;
    teleportToY = 3188;
    CAM().sendMessage("You telle to "+GetNpcName(2027)+". Good luck!!"); 
    }
    else if (misc.random(6) == 5)
    {
    teleportToX = 3019;
    teleportToY = 3180;
    CAM().sendMessage("You telle to "+GetNpcName(2028)+". Good luck!!"); 
    }
    else if (misc.random(6) == 6)
    {
    teleportToX = 3014;
    teleportToY = 3181;
    CAM().sendMessage("You telle to "+GetNpcName(2029)+". Good luck!!"); 
    }
    break;

    ok now the code above is saying that if i click on the man whole ill randomly be teleported to one of the above coords correct?

    now this code is the chest code.


    Code:
    
    
    case 10284:  //barrows chest
    {
    if(playerHasItem(601) == true)
    {
    addItem(Item.randomah(), 1);
    addItem(995, 250000);
    CAM().sendMessage("Hope you got what you wanted!!");
            teleportToX = 3097;
            teleportToY = 3273;
    deleteItem(601, GetItemSlot(601), 1);
    }
    else if(playerHasItem(605) == true)
    {
    addItem(Item.randomdh(), 1);
    addItem(995, 250000);
    CAM().sendMessage("Hope you got what you wanted!!");
            teleportToX = 3097;
            teleportToY = 3273;
    deleteItem(605, GetItemSlot(605), 1);
    }
    else if(playerHasItem(709) == true)
    {
    addItem(Item.randomgu(), 1);
    addItem(995, 250000);
    CAM().sendMessage("Hope you got what you wanted!!");
            teleportToX = 3097;
            teleportToY = 3273;
    deleteItem(709, GetItemSlot(709), 1);
    }
    else if(playerHasItem(758) == true)
    {
    addItem(Item.randomkar(), 1);
    addItem(995, 250000);
    CAM().sendMessage("Hope you got what you wanted!!");
            teleportToX = 3097;
            teleportToY = 3273;
    deleteItem(758, GetItemSlot(758), 1);
    }
    else if(playerHasItem(759) == true)
    {
    addItem(Item.randomto(), 1);
    addItem(995, 250000);
    CAM().sendMessage("Hope you got what you wanted!!");
            teleportToX = 3097;
            teleportToY = 3273;
    deleteItem(759, GetItemSlot(759), 1);
    }
    else if(playerHasItem(760) == true)
    {
    addItem(Item.randomva(), 1);
    addItem(995, 250000);
    CAM().sendMessage("Hope you got what you wanted!!");
            teleportToX = 3097;
            teleportToY = 3273;
    deleteItem(760, GetItemSlot(760), 1);
    }
    }
    break;
    this code tells it that when you use a key on the chest you get your prize and it will tele you back.

    so why isnt this working...im pretty sure ive fixed the methods to work with this source...any suggestions?

    any one who helps will be repped.

    also to make the question clear...i can get the man hole or the keys working
    Reply With Quote  
     

  2. #2  
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    Code:
    public void tele(int X, int Y){
    teleportToX = X;
    teleportToY = Y;
    }
    case 881:
    int Tele = misc.random(6);
    int Boss;
    if (Tele == 1){
    tele(3014, 3194);
    Boss = 2030;
    else if (Tele == 2)
    tele(3014, 3191);
    Boss = 2025;
    else if (Tele == 3)
    tele(3014, 3188);
    Boss = 2026;
    else if (Tele == 4)
    tele(3018, 3188);
    Boss = 2027;
    else if (Tele == 5)
    tele(3019, 3180);
    Boss = 2028;
    else if (Tele == 6)
    tele(3014, 3181);
    Boss = 2029;
    }
    CAM().sendMessage("You telle to "+GetNpcName(Boss)+". Good luck!!"); 
    break;
    ILY Stewie.
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jul 2009
    Posts
    915
    Thanks given
    1
    Thanks received
    10
    Rep Power
    0
    Quote Originally Posted by \-Deemed-/ View Post
    Code:
    public void tele(int X, int Y){
    teleportToX = X;
    teleportToY = Y;
    }
    case 881:
    int Tele = misc.random(6);
    int Boss;
    if (Tele == 1){
    tele(3014, 3194);
    Boss = 2030;
    else if (Tele == 2)
    tele(3014, 3191);
    Boss = 2025;
    else if (Tele == 3)
    tele(3014, 3188);
    Boss = 2026;
    else if (Tele == 4)
    tele(3018, 3188);
    Boss = 2027;
    else if (Tele == 5)
    tele(3019, 3180);
    Boss = 2028;
    else if (Tele == 6)
    tele(3014, 3181);
    Boss = 2029;
    }
    CAM().sendMessage("You telle to "+GetNpcName(Boss)+". Good luck!!"); 
    break;
    i replace that with the first code? or the second? and whats the thing above the manhole code?
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jul 2009
    Posts
    915
    Thanks given
    1
    Thanks received
    10
    Rep Power
    0
    also...what do i add in here??


    Code:
    public void tele(int X, int Y){
    teleportToX = X;
    teleportToY = Y;
    }
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jul 2009
    Posts
    915
    Thanks given
    1
    Thanks received
    10
    Rep Power
    0
    fuck...nvm haha didnt read the code...ok now im getting this error....


    Code:
    .\server\players\client.java:960: illegal start of expression
    public void tele(int X, int Y){
    ^
    .\server\players\client.java:960: illegal start of expression
    public void tele(int X, int Y){
           ^
    .\server\players\client.java:960: ';' expected
    public void tele(int X, int Y){
                    ^
    .\server\players\client.java:960: <identifier> expected
    public void tele(int X, int Y){
                           ^
    .\server\players\client.java:960: not a statement
    public void tele(int X, int Y){
                                ^
    .\server\players\client.java:960: ';' expected
    public void tele(int X, int Y){
                                 ^
    .\server\players\client.java:970: 'else' without 'if'
    else if (Tele == 2)
    ^
    .\server\players\client.java:973: 'else' without 'if'
    else if (Tele == 3)
    ^
    .\server\players\client.java:976: 'else' without 'if'
    else if (Tele == 4)
    ^
    .\server\players\client.java:979: 'else' without 'if'
    else if (Tele == 5)
    ^
    .\server\players\client.java:982: 'else' without 'if'
    else if (Tele == 6)
    ^
    .\server\players\client.java:962: cannot find symbol
    symbol  : variable Y
    location: class server.players.client
    teleportToY = Y;
                  ^
    .\server\players\client.java:968: cannot find symbol
    symbol  : method tele(int,int)
    location: class server.players.client
    tele(3014, 3194);
    ^
    .\server\players\client.java:971: cannot find symbol
    symbol  : method tele(int,int)
    location: class server.players.client
    tele(3014, 3191);
    ^
    .\server\players\client.java:974: cannot find symbol
    symbol  : method tele(int,int)
    location: class server.players.client
    tele(3014, 3188);
    ^
    .\server\players\client.java:977: cannot find symbol
    symbol  : method tele(int,int)
    location: class server.players.client
    tele(3018, 3188);
    ^
    .\server\players\client.java:980: cannot find symbol
    symbol  : method tele(int,int)
    location: class server.players.client
    tele(3019, 3180);
    ^
    .\server\players\client.java:983: cannot find symbol
    symbol  : method tele(int,int)
    location: class server.players.client
    tele(3014, 3181);
    ^
    Note: .\server\server.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    18 errors
    Press any key to continue . . .
    Reply With Quote  
     

  6. #6  
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    add the void with other voids. not in the clickingmost or case 185
    ILY Stewie.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jul 2009
    Posts
    915
    Thanks given
    1
    Thanks received
    10
    Rep Power
    0
    sweet...some progress i guess

    now i get this error

    Code:
    .\server\players\client.java:979: 'else' without 'if'
    else if (Tele == 2)
    ^
    .\server\players\client.java:982: 'else' without 'if'
    else if (Tele == 3)
    ^
    .\server\players\client.java:985: 'else' without 'if'
    else if (Tele == 4)
    ^
    .\server\players\client.java:988: 'else' without 'if'
    else if (Tele == 5)
    ^
    .\server\players\client.java:991: 'else' without 'if'
    else if (Tele == 6)
    ^
    Note: .\server\server.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    5 errors
    Press any key to continue . . .
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    May 2008
    Posts
    140
    Thanks given
    39
    Thanks received
    13
    Rep Power
    176
    Lol.
    Reply With Quote  
     

  9. #9  
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    Code:
    if (Tele == 1){
    tele(3014, 3194);
    Boss = 2030;
    }
    else if (Tele == 2){
    tele(3014, 3191);
    Boss = 2025;
    }
    else if (Tele == 3){
    tele(3014, 3188);
    Boss = 2026;
    }
    else if (Tele == 4){
    tele(3018, 3188);
    Boss = 2027;
    }
    else if (Tele == 5){
    tele(3019, 3180);
    Boss = 2028;
    }
    else if (Tele == 6){
    tele(3014, 3181);
    Boss = 2029;
    }
    ILY Stewie.
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Jul 2009
    Posts
    915
    Thanks given
    1
    Thanks received
    10
    Rep Power
    0
    sweet thanks...last error


    Code:
    .\server\players\client.java:1000: variable Boss might not have been initialized
    
    CAM().sendMessage("You telle to "+GetNpcName(Boss)+". Good luck!!");
                                                 ^
    Note: .\server\server.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

Page 1 of 3 123 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
  •