Thread: [PI] NPC forcechat conversion

Results 1 to 4 of 4
  1. #1 [PI] NPC forcechat conversion 
    Donator


    Join Date
    Mar 2007
    Posts
    959
    Thanks given
    64
    Thanks received
    40
    Rep Power
    704
    I'm trying to make npcs stay stuff above their head in client.java, but it won't let me -_-

    Code:
    Server.npcHandler.forceChat("IM ALIVE!");
    Code:
    src\server\model\players\Client.java:117: cannot find symbol
    symbol  : method forceChat(java.lang.String)
    location: class server.model.npcs.NPCHandler
    Server.npcHandler.forceChat("IM ALIVE!");
                     ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    What's the correct code? :3

    I'm 98% sure it's something obvious but I'm an idiot Will rep+
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,253
    Thanks given
    1,145
    Thanks received
    909
    Rep Power
    2081
    Code:
    Server.NPC.forceChat("IM ALIVE!");
    or.
    Code:
    NPC.forceChat("IM ALIVE!");
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Mar 2007
    Posts
    959
    Thanks given
    64
    Thanks received
    40
    Rep Power
    704
    Code:
    src\server\model\players\Client.java:119: cannot find symbol
    symbol  : variable NPC
    location: class server.Server
    Server.NPC.forceChat("IM ALIVE!");
          ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    and

    Code:
    src\server\model\players\Client.java:119: cannot find symbol
    symbol  : variable NPC
    location: class server.model.players.Client
    NPC.forceChat("IM ALIVE!");
    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,253
    Thanks given
    1,145
    Thanks received
    909
    Rep Power
    2081
    Code:
    import server.model.npcs.*;
    Wait.
    Remove
    Code:
    Server
    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

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