You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
- script itemlink#ci -1,{
|
|
OnInit:
|
|
if( checkre(0) ){
|
|
if( PACKETVER >= 20200724 ){
|
|
// Change of separators and add grade
|
|
.@expected$ = "<ITEML>0000213v0%0g&00'00)18X)1ck)00)00+2R,00-00</ITEML>";
|
|
}else if( PACKETVER >= 20161116 ){
|
|
// Change of separators and add equip preview
|
|
.@expected$ = "<ITEML>0000213v0%0g&00(18X(1ck(00(00*2R+00,00</ITEML>";
|
|
}else if( PACKETVER >= 20160113 ){
|
|
// Change from <ITEM> to <ITEML>
|
|
.@expected$ = "<ITEML>0000213v0%0g'18X'1ck'00'00)2R*00+00</ITEML>";
|
|
}else if( PACKETVER >= 20151104 ){
|
|
// Initial version
|
|
.@expected$ = "<ITEM>0000213v0%0g'18X'1ck'00'00)2R*00+00</ITEM>";
|
|
}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$ = "<ITEML>000021hS%0a&00'00)18X)00)00)00</ITEML>";
|
|
}else if( PACKETVER >= 20161116 ){
|
|
// Change of separators and add equip preview
|
|
.@expected$ = "<ITEML>000021hS%0a&00(18X(00(00(00</ITEML>";
|
|
}else if( PACKETVER >= 20160113 ){
|
|
// Change from <ITEM> to <ITEML>
|
|
.@expected$ = "<ITEML>000021hS%0a'18X'00'00'00</ITEML>";
|
|
}else if( PACKETVER >= 20151104 ){
|
|
// Initial version
|
|
.@expected$ = "<ITEM>000021hS%0a'18X'00'00'00</ITEM>";
|
|
}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]");
|
|
}
|
|
}
|