Thread: [Shard] Don't look if you cannot code at all.

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 [Shard] Don't look if you cannot code at all. 
    TzTok

    Join Date
    Apr 2008
    Age
    33
    Posts
    1,870
    Thanks given
    20
    Thanks received
    21
    Rep Power
    432
    IF YOU ARE A 11 YEARS OLD "CODER" LEAVE THIS THREAD, NOW!

    ok, i couldn't help myself, this is like smoking seriously, I was gonna quit working with RSPS and after 30 minutes I downloaded a Shard source.

    I asked from some peeps if its possible to edit/make new packets, and I've been working on adding 'Operate' to a SHARD source. Once I finish, it will be released but I wont help ANYONE to convert it for Czar or Delta.

    here is my problem(the main reason why I cannot do this alone is that i've(ONCE AGAIN!) never ever before seen such error.)

    Code:
    src\com\rs\worldserver\model\player\packet\ItemOperate.java:36: non-static variable playerEquipment cannot be referenced from a static context
            if (itemSlot < 0 || itemSlot >= Player.playerEquipment.length || Player.playerEquipment[itemSlot] != itemId) {
                                                              ^
    src\com\rs\worldserver\model\player\packet\ItemOperate.java:36: non-static variable playerEquipment cannot be referenced from a static context
            if (itemSlot < 0 || itemSlot >= Player.playerEquipment.length || Player.playerEquipment[itemSlot] != itemId) {
                                                              ^
    2 errors
    Reply With Quote  
     

  2. #2  
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    Instead of Player.playerEquip... just use client.playerEquip...

    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    um i think its saying you need to make playerEquipment public in the player.java
    Reply With Quote  
     

  4. #4  
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    Quote Originally Posted by digistr View Post
    um i think its saying you need to make playerEquipment public in the player.java
    Noe... Its what I said...
    Reply With Quote  
     

  5. #5  
    TzTok

    Join Date
    Apr 2008
    Age
    33
    Posts
    1,870
    Thanks given
    20
    Thanks received
    21
    Rep Power
    432
    EDIT: worked, thanks. gotta keep this in mind
    Reply With Quote  
     

  6. #6  
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    Dude, what I am telling you is right. use client.blaa, the Client class extends the player class
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    lol reading the compile error helps little kid
    Reply With Quote  
     

  8. #8  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    [Shard] Don't use if you cannot code at all.

    Attached image

    Reply With Quote  
     

  9. #9  
    Officially Retired

    Huey's Avatar
    Join Date
    Jan 2008
    Age
    22
    Posts
    16,478
    Thanks given
    3,385
    Thanks received
    7,727
    Rep Power
    5000
    IF YOU ARE A 11 YEARS OLD "CODER" LEAVE THIS THREAD, NOW!

    Idiot.
    Attached image
    Listen children don't become this guy.
    Quote Originally Posted by Owner Spikey View Post
    Why can I attack lower level npc's in a matter of a mouse hover but for a higher level npc the only choice to attack is by right clicking option attack?

    Reply With Quote  
     

  10. #10  
    TzTok

    Join Date
    Apr 2008
    Age
    33
    Posts
    1,870
    Thanks given
    20
    Thanks received
    21
    Rep Power
    432
    lol soz, i thought my lil' bro would come and say shit here... hes 13 or so idk

    i have a small problem, just a small one. my server compiles fine, but i made it so
    Code:
    case 2621:
             sendMessage("fuckoffnoob");
             break;
    which SHOULD work like that, when i'm wearing a shield (ID 2621(gonna change this before i put my server to public, i just took the ints off renamed delta client so...)) and i operate, it should say some shitshizzle. idk why, but it wont.

    also, i know sendMessage doesnt work alone in Shard but i didnt feel like goin bak on my ubuntu and takin the whole code from there... >.>
    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
  •