GuildWiki has been locked down: anonymous editing and account creation are disabled. Current registered users are unaffected. Leave any comments on the Community Portal.

Skill template format

From GuildWiki
Jump to: navigation, search

Overall Format[edit | edit source]

The skill template is a single line that is a based on base64 encoded bit stream as defined in rfc3548. The difference between Base64 and the Skill template format is the use of + and / as the 62nd and 63rd characters respectively, and all binary codes should be used and interpreted in the lowest-bit-first order.

Numbers of varying number of bits are placed into the bitstream, in the following sequence:

If generated before 4/5/2007 update:

  • 4 bits - always 0, Version number of the Skill Template.


If generated after 4/5/2007 update:

  • 4 bits - always 14, Indicates that this is a Skill Template
  • 4 bits - always 0, Version number of the skill Template


The rest is the same before and after the update:

Profession information

  • 2 bits - Code to calculate the number of encoded bits per profession code ('p'). To calculate p, double it and add 4 (p=code*2+4).
  • p bits - Primary profession (see table below)
  • p bits - Secondary profession (see table below)

Attributes information

  • 4 bits - The number of attributes specified in the template
  • 4 bits - Code to calculate the number of encoded bits of the attribute codes ('a'). All attribute codes are the same size, and the size (in bits) is equal to 4 plus this number (a=code+4).
  • Per attribute:
    • a bits - attribute code (see table below)
    • 4 bits - value of attribute, this is 1 - 12, and does not take into account runes, headgear, etc.

Skill information

  • 4 bits - Code to calculate then number of encoded bits of the skill codes ('s). All skill codes are the same size, and the size (in bits) is equal to 8 plus this number (s=code+8).
  • Per skill (eight times):
    • s bits - skill code (see table below)

Base 64 Code Table[edit | edit source]

Windows Calculator can convert base 10 to octal (base 8) while in scientific calculator mode, and pairs of octal digits can be easily converted to base 64 digits with lowest-bit-first using this table.

Dec Oct Char Dec Oct Char Dec Oct Char Dec Oct Char Dec Oct Char Dec Oct Char Dec Oct Char Dec Oct Char
00 00 A 08 10 I 16 20 Q 24 30 Y 32 40 g 40 50 o 48 60 w 56 70 4
01 01 B 09 11 J 17 21 R 25 31 Z 33 41 h 41 51 p 49 61 x 57 71 5
02 02 C 10 12 K 18 22 S 26 32 a 34 42 i 42 52 q 50 62 y 58 72 6
03 03 D 11 13 L 19 23 T 27 33 b 35 43 j 43 53 r 51 63 z 59 73 7
04 04 E 12 14 M 20 24 U 28 34 c 36 44 k 44 54 s 52 64 0 60 74 8
05 05 F 13 15 N 21 25 V 29 35 d 37 45 l 45 55 t 53 65 1 61 75 9
06 06 G 14 16 O 22 26 W 30 36 e 38 46 m 46 56 u 54 66 2 62 76 +
07 07 H 15 17 P 23 27 X 31 37 f 39 47 n 47 57 v 55 67 3 63 77 /

Example[edit | edit source]

The following example shows how to decypher the skill template OwpiMypMBg1cxcBAMBdmtIKAA which is a Assassin/Dervish build:


Base64 code O w p i M y etc.
Decimal 14 48 41 34 12 50 etc.
Binary 1 2 4 8 16 32 1 2 4 8 16 32 1 2 4 8 16 32 1 2 4 8 16 32 1 2 4 8 16 32 1 2 4 8 16 32 etc.
0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 1 0 1 0 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 etc.
Content Type Version Profession
bit length
Primary
Profession
Secondary
Profession
No. of
attributes
Attribute
bit length
Attribute 1 Attribute 1
rank
etc.
Binary 1 2 4 8 1 2 4 8 1 2 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 16 32 1 2 4 8 etc.
Decimal 14 0 0 7 10 2 2 35 12 etc.
Meaning Skill
Template
0 0*2+4=4 bits Assassin Dervish 2 attributes 2 + 4 = 6 bit Critical
Strikes
12 etc.

Codes[edit | edit source]

Profession Codes[edit | edit source]

Attribute Codes[edit | edit source]

Skill codes[edit | edit source]

Note:

Locked Skills cannot be found in game without making special templates.

Invalid skills can be found in game, nevertheless, like Locked Skills, you cannot equip them (In most cases, they are monsters skills or skills left over from the prophecies alpha/beta versions of the game).

Related articles[edit | edit source]