Thread: sending server side packet to client?

Results 1 to 4 of 4
  1. #1 sending server side packet to client? 
    Registered Member yesimanub's Avatar
    Join Date
    Feb 2012
    Posts
    215
    Thanks given
    8
    Thanks received
    0
    Rep Power
    10
    how would I send the packet over to the client when I wear a certain item?
    for example
    Code:
    if(c.wearId == itemid) {
    			returnCode = 25;
    			}
    would I use returncode or what?
    Click here to visit my Latest Server Released Files !! (Great for newbies to start off with !!) : Varrockscape - 317 (Released source + Client)(Omg ty for 2.3k+ total dl !!)
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,253
    Thanks given
    1,145
    Thanks received
    909
    Rep Power
    2081
    Quote Originally Posted by yesimanub View Post
    how would I send the packet over to the client when I wear a certain item?
    for example
    Code:
    if(c.wearId == itemid) {
    			returnCode = 25;
    			}
    would I use returncode or what?
    What exactly are you trying to do? Wielding items is a client side packet iirc and thus you shouldn't have to return anything just read the data from the client.
    Reply With Quote  
     

  3. #3  
    Registered Member yesimanub's Avatar
    Join Date
    Feb 2012
    Posts
    215
    Thanks given
    8
    Thanks received
    0
    Rep Power
    10
    Quote Originally Posted by Fire Cape View Post
    What exactly are you trying to do? Wielding items is a client side packet iirc and thus you shouldn't have to return anything just read the data from the client.
    for example when you wear a special item like let's say donator's ring, it replaces one of the tab icons with a special one
    Click here to visit my Latest Server Released Files !! (Great for newbies to start off with !!) : Varrockscape - 317 (Released source + Client)(Omg ty for 2.3k+ total dl !!)
    Reply With Quote  
     

  4. #4  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    You'll want to look at the wieldItem packet then (it's client -> server).
    Then check if the new item is one of the special ones.
    If it is, send the special tab (there should be a couple of tabs sent when you login, so look over there if you don't know what method to use).
    But if the old item is a special item and the new one isn't, make sure you revert to the old tab.

    Upon login you should check if any special item is worn and send the special tab if so.
    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: 17
    Last Post: 04-11-2011, 08:49 PM
  2. Replies: 5
    Last Post: 03-14-2009, 05:33 PM
  3. Replies: 30
    Last Post: 02-17-2009, 02:04 AM
  4. clanchat server side for blurrs client?
    By West in forum Requests
    Replies: 5
    Last Post: 12-25-2008, 08:22 PM
  5. sigex - Server side packet 23
    By sigex in forum Tutorials
    Replies: 11
    Last Post: 06-11-2008, 02:06 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
  •