Thread: Declaring playerHasItem?

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Declaring playerHasItem? 
    Blue Slide Park [Mac Miller]
    Diverse Reality's Avatar
    Join Date
    Jun 2010
    Posts
    3,089
    Thanks given
    186
    Thanks received
    182
    Rep Power
    94
    Hey guys, i have a sub class for my item on item method and object and i'm doing smithing atm but idk how to declare playerHasItem or get it to read into client.java for itemon.java

    Error:


    Will rep + thank!

    :/

    Reply With Quote  
     

  2. #2  
    Member Declaring playerHasItem? Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    in the method have a client parameter, then use c.playerHasItem(ItemId)
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jan 2009
    Age
    34
    Posts
    3,143
    Thanks given
    27
    Thanks received
    92
    Rep Power
    0
    c.playerHasItem
    Reply With Quote  
     

  4. #4  
    Registered Member Mayday Parade's Avatar
    Join Date
    Apr 2009
    Age
    27
    Posts
    495
    Thanks given
    20
    Thanks received
    17
    Rep Power
    8
    Quote Originally Posted by Luke132 View Post
    in the method have a client parameter, then use c.playerHasItem(ItemId)
    Exactly what he said.

    Spoiler for LoL:
    Quote Originally Posted by Imbued View Post
    Quote Originally Posted by pasta186 View Post
    That tutorial doesnt walk.
    That's because it got no legs..
    Best report I've sent? "Mass spam? Also in wrong sexual"
    LOL
    Reply With Quote  
     

  5. #5  
    Blue Slide Park [Mac Miller]
    Diverse Reality's Avatar
    Join Date
    Jun 2010
    Posts
    3,089
    Thanks given
    186
    Thanks received
    182
    Rep Power
    94
    Parameter? sorry

    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jan 2009
    Age
    34
    Posts
    3,143
    Thanks given
    27
    Thanks received
    92
    Rep Power
    0
    Quote Originally Posted by ZgsPK View Post
    Parameter? sorry
    Like public Client c;
    Reply With Quote  
     

  7. #7  
    Blue Slide Park [Mac Miller]
    Diverse Reality's Avatar
    Join Date
    Jun 2010
    Posts
    3,089
    Thanks given
    186
    Thanks received
    182
    Rep Power
    94
    Quote Originally Posted by Shemhamforash View Post
    Like public Client c;
    public void anvilSmithData(int UsedOnObjectID, int ItemID, int c.playerHasItem) {

    Thanks, i did this though and i already tried doing "c.playerHasItem" but i get this error:


    Reply With Quote  
     

  8. #8  
    Blue Slide Park [Mac Miller]
    Diverse Reality's Avatar
    Join Date
    Jun 2010
    Posts
    3,089
    Thanks given
    186
    Thanks received
    182
    Rep Power
    94
    ? anyone help pl0x? :C

    Reply With Quote  
     

  9. #9  
    RuneFatality

    Join Date
    May 2009
    Age
    27
    Posts
    2,350
    Thanks given
    1,099
    Thanks received
    388
    Rep Power
    531
    client c = (client) server.playerHandler.players[a];

    out of clickingmost.java in deltaskepz. dont know whether it'll work or not...
    Reply With Quote  
     

  10. #10  
    Blue Slide Park [Mac Miller]
    Diverse Reality's Avatar
    Join Date
    Jun 2010
    Posts
    3,089
    Thanks given
    186
    Thanks received
    182
    Rep Power
    94
    Quote Originally Posted by MrFaranCool View Post
    client c = (client) server.playerHandler.players[a];

    out of clickingmost.java in deltaskepz. dont know whether it'll work or not...
    What about "client c = (client) server.playerHandler" ?

    Reply With Quote  
     

Page 1 of 2 12 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
  •