Editing
Textdata NN.dat
(section)
From Raynegard Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Confirmed column labels (field-consumer trace) == {| class="wikitable" ! Record !! Col / offset !! Meaning !! Evidence |- | Item (all types) || col7 = <code>0x3c</code> || buy price || <code>State_NpcShopBuy_Tick @ 00467fd0</code>: buy allowed only if <code>record->0x3c <= player.money</code>, then sends <code>0x35</code>. Ring col7=100000, weapon 9000, matches. |- | Item || col8 = <code>0x40</code> || sell price (inferred) || Not consumer-confirmed, but the buy/sell pair — ring col8=5000 vs buy 100000; weapon col8=900 vs buy 9000. |- | NPC/shop (type 0xB/0xC) || col7 = <code>0x3c</code> || shop-type code || <code>State_NpcShopBuy_Tick</code> case 0 switches on <code>npcRecord->0x3c</code>, accepts <code>0x44,0x47,0x4a,0x4d,0x50,0x53</code> = letters D G J M P S (shop kinds). |- | NPC/shop || cols 9–22 = <code>0x44</code>–<code>0x51</code> (14 bytes) || per-category "sells this" flags || same function loops <code>npcRecord[i + 0x44]</code>, <code>i = 0..13</code>; each nonzero byte adds item-category <code>i</code> to the shop's list (14 categories: Katana…MonsterItem). |- | Item / emblem || col6 = <code>0x38</code> || class/icon bitmap index || <code>cpt_panel_status_widget_Draw</code>: for the party-leader emblem (dat 9), <code>record->0x38</code> is passed to <code>File_Read_Bitmap_Archive</code> as the icon image id. |} '''Server relevance:''' col7 (buy price) is the value the shop's gold check uses; an equipped item's col9–14 bonuses (OFC/DEF/AGL/LUCK/LIFE/FOOD) are applied to the wearer's totals. The player's ''total'' stats (base + all equipped bonuses) are computed server-side and pushed via packets <code>0xC001</code>/<code>0xC002</code> — the client never re-derives totals from records.
Summary:
Please note that all contributions to Raynegard Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Raynegard Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Reddit Community
Discord Server
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Tools
What links here
Related changes
Page information