Thread: Error will rep ++ and thank

Results 1 to 7 of 7
  1. #1 Error will rep ++ and thank 
    Member Market Banned Market Banned

    Impervious's Avatar
    Join Date
    Apr 2011
    Posts
    550
    Thanks given
    97
    Thanks received
    38
    Rep Power
    129
    New problem (v)
    actionhandler
    Code:
    case 4507:
    if(c.isNpc == false) {
    npcId = 40;
    c.isNpc = true;
    c.updateRequired = true;
    c.appearanceUpdateRequired = true;
    c.sendMessage("Upset fish magically turn you into to a shark");
    } else {
    c.isNpc = false;
    c.updateRequired = true;
    c.appearanceUpdateRequired = true;
    c.sendMessage("The fish forgive you and turn you back.");
    }
    break;
    Code:
    src\server\model\players\ActionHandler.java:160: error: cannot find symbol
    c.npcId = 40;
     ^
    Will rep ++ and thank

    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Oct 2010
    Posts
    4
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    case 4507:
    if(c.isNpc == false) {
    c.npcId = 40;
    c.isNpc = true;
    c.updateRequired = true;
    c.appearanceUpdateRequired = true;
    c.sendMessage("Upset fish magically turn you into to a shark");
    } else {
    c.isNpc = false;
    c.updateRequired = true;
    c.appearanceUpdateRequired = true;
    c.sendMessage("The fish forgive you and turn you back.");
    }
    break;
    Reply With Quote  
     

  3. #3  
    Member Market Banned Market Banned

    Impervious's Avatar
    Join Date
    Apr 2011
    Posts
    550
    Thanks given
    97
    Thanks received
    38
    Rep Power
    129
    Code:
    src\server\model\players\ActionHandler.java:160: error: cannot find symbol
    c.npcId = 40;
     ^
    Do i have to declare npcId

    Reply With Quote  
     

  4. #4  
    GANGNAM STYLE!

    Ohad's Avatar
    Join Date
    Aug 2011
    Posts
    3,182
    Thanks given
    152
    Thanks received
    352
    Rep Power
    1671
    you do if you want it to know what npc it should go to...
    try
    Code:
    npcId = 40;
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Member Market Banned Market Banned

    Impervious's Avatar
    Join Date
    Apr 2011
    Posts
    550
    Thanks given
    97
    Thanks received
    38
    Rep Power
    129
    Im afraid that did not work

    Reply With Quote  
     

  6. #6  
    Registered Member
    Smokey's Avatar
    Join Date
    Apr 2011
    Posts
    292
    Thanks given
    123
    Thanks received
    73
    Rep Power
    351
    Try going to the client class and adding
    Code:
    public int npcId;
    btw i'm assuming that's what the c is
    Spoiler for signature:

    He is richest who is content with the least, for contentment is the wealth of nature. - Socrates
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Feb 2012
    Posts
    631
    Thanks given
    201
    Thanks received
    59
    Rep Power
    0
    It could be named wrong. Possibly try
    Code:
    npcID
    If that doesn't work send me your client class server sided.
    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: 1
    Last Post: 12-03-2011, 06:06 PM
  2. Replies: 11
    Last Post: 01-29-2011, 11:10 PM
  3. [pi] error rep+!!!
    By Lord Stark in forum Help
    Replies: 4
    Last Post: 10-26-2010, 04:32 AM
  4. Replies: 5
    Last Post: 08-28-2010, 05:45 AM
  5. T2 Error! + rep
    By jack24 in forum Help
    Replies: 13
    Last Post: 10-08-2009, 10:58 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •