- script itemlink#ci -1,{
OnInit:
if( checkre(0) ){
if( PACKETVER >= 20200724 ){
// Change of separators and add grade
.@expected$ = "0000213v0%0g&00'00)18X)1ck)00)00+2R,00-00";
}else if( PACKETVER >= 20161116 ){
// Change of separators and add equip preview
.@expected$ = "0000213v0%0g&00(18X(1ck(00(00*2R+00,00";
}else if( PACKETVER >= 20160113 ){
// Change from - to
.@expected$ = "0000213v0%0g'18X'1ck'00'00)2R*00+00";
}else if( PACKETVER >= 20151104 ){
// Initial version
.@expected$ = "
- 0000213v0%0g'18X'1ck'00'00)2R*00+00
";
}else{
// Item Link does not exist (clientside) yet
.@expected$ = "Crimson Saber";
}
setarray .@opt_ids,RDMOPT_WEAPON_ATTR_GROUND;
.@actual$ = itemlink(13454,16,4399,4608,0,0,0,.@opt_ids,.@opt_dummy,.@opt_dummy);
AssertEquals(.@expected$, .@actual$, "Generated itemlink for +16 Earth Crimson Saber");
}else{
if( PACKETVER >= 20200724 ){
// Change of separators and add grade (not used in pre-renewal)
.@expected$ = "000021hS%0a&00'00)18X)00)00)00";
}else if( PACKETVER >= 20161116 ){
// Change of separators and add equip preview
.@expected$ = "000021hS%0a&00(18X(00(00(00";
}else if( PACKETVER >= 20160113 ){
// Change from - to
.@expected$ = "000021hS%0a'18X'00'00'00";
}else if( PACKETVER >= 20151104 ){
// Initial version
.@expected$ = "
- 000021hS%0a'18X'00'00'00
";
}else{
// Item Link does not exist (clientside) yet
.@expected$ = "Blade";
}
// No Random Options in Pre-Renewal
.@actual$ = itemlink(1108,10,4399);
AssertEquals(.@expected$, .@actual$, "Generated itemlink for +10 Blade[4]");
}
}