Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • FaTe_Of_GoDs: You guys have an offline client?
      Today at 03:25:13 AM
    • ASDss: where do u download source and clients now
      August 18, 2017, 10:39:31 PM
    • ASDss: yo
      August 18, 2017, 10:39:20 PM
    • dan v jad: click me 4 da fun ;)[link]
      August 18, 2017, 04:39:58 PM
    • stCky: Palidinho is your OpenGL (was it OpenGL?) stuff open source anywhere?
      August 16, 2017, 09:07:22 PM
    • Travas:BUILD THE WALL
      August 15, 2017, 09:28:49 PM
    • Travas: i have ass cancer
      August 15, 2017, 09:23:29 PM
    • stCky: what are the fudge are you tryna ask?
      August 15, 2017, 08:21:35 PM
    • bader: what are the rsps community alive ?
      August 15, 2017, 05:46:16 PM
    • bader: yo guys
      August 15, 2017, 05:46:08 PM
    • Spacehost:[link] Updated our thread :)
      August 15, 2017, 09:40:34 AM
    • Adaro: The client is in Download section at Homepage
      August 15, 2017, 01:09:20 AM
    • FaTe_Of_GoDs: where do i get the client?????????????
      August 14, 2017, 05:23:14 PM
    • stCky: can anyone help me? I cant login to the shoutbox
      August 13, 2017, 05:45:15 PM
    • drubrkletern: appeal denied
      August 13, 2017, 02:35:27 PM
    • King_Trout:[link]
      August 13, 2017, 11:17:12 AM
    • Cole1497: no sorry
      August 13, 2017, 10:27:14 AM
    • ayz: yo can anyone explain something to me
      August 13, 2017, 08:08:51 AM
    • coolking12: Hi
      August 13, 2017, 04:16:06 AM
    • stCky: n+1
      August 11, 2017, 06:09:24 PM

    Author Topic: [530] Client Script Constants  (Read 775 times)

    0 Members and 1 Guest are viewing this topic.

    OfflineDavidi2

    • Member
    • ****
    • *
    • Posts: 23,275
    • Thanks: +0/-0
      • View Profile
    [530] Client Script Constants
    « on: April 03, 2016, 05:47:49 PM »
    For those that don't understand what this is, the client scripts (if you've heard of a 'cs dumper', thats what I'm referring to) oftentimes refer to constants to get information. For example, you probably know that there are scripts to show the shop items on the shop interface, or scripts to show the skill level up interfaces, or the spell names for the spellbook (table 1527). Those shop item ids are not in code anywhere, so there is an opcode that grabs those constants from the cache for use in the script. Thats what this information is. Is this of use to anyone? Probably not. I used it to get the shop item ids to do server-sided verification. If you know what to look for, you might have other use of it for cache editing.

    Basic layout:

    Code: [Select]
    Table [table_id]: - [unknwn1] [unknwn2]
    STR: [string_value] INT: [int value]
    (if sub table exists:)
    ======TABLE======
    [key] - [value]
    I believe unkwn1 and 2 are the type of table, but im not 100% sure, didnt refactor enough.

    EXAMPLE (theiving level up table - 'people')
    Code: [Select]
    Table 1540 - 115 105
    STR:  INT: 0
    ======TABLE========
    0 - bearded Pollnivnian bandits
    1 - cave goblins
    2 - chests
    3 - elves
    4 - farmers
    5 - Fremenniks
    6 - gnomes
    7 - guards
    8 - H.A.M. members
    9 - heroes
    10 - knights
    11 - master farmers
    12 - men and women
    13 - paladins
    14 - rogues
    15 - stalls
    16 - warriors
    17 - watchmen
    18 - Pollnivnian bandits
    19 - desert bandits
    20 - Menaphite thugs

    So anyway, here it is:

    Script Constants Tables - Pastebin.com

    Offlinesini

    • Member
    • ****
    • *
    • *
    • Posts: 5,785
    • Thanks: +0/-0
      • View Profile
    Re: [530] Client Script Constants
    « Reply #1 on: April 03, 2016, 10:36:22 PM »
    Once upon a time I said a majority of UI handling server sided could be simplified with this
    Once upon a time no one listened
    No one


     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal