
Co-authored-by: Akkarinage <mike.langford@industrial-illusions.net> Co-authored-by: Aleos <aleos89@users.noreply.github.com> Co-authored-by: Atemo <Atemo@users.noreply.github.com> Co-authored-by: cydh<cydh@users.noreply.github.com> Co-authored-by: Lemongrass3110 <lemongrass@kstp.at> Co-authored-by: secretdataz<secretdataz@users.noreply.github.com>
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
- script itemlink#ci -1,{
|
|
OnInit:
|
|
if( checkre(0) ){
|
|
if( PACKETVER >= 20200916 ){
|
|
.@expected$ = "<ITEML>0000213v0%0g&00'00)18X)1ck)00)00+2R,00-00</ITEML>";
|
|
}else if( PACKETVER >= 20150225 ){
|
|
// Grade does not exist (clientside) yet
|
|
.@expected$ = "<ITEMLINK>0000213v0%0g&00(18X(1ck(00(00*2R+00,00</ITEMLINK>";
|
|
}else if( PACKETVER >= 20100000 ){
|
|
// Random Options do not exist (clientside) yet
|
|
.@expected$ = "<ITEMLINK>0000213v0%0g&00(18X(1ck(00(00</ITEMLINK>";
|
|
}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 >= 20200916 ){
|
|
.@expected$ = "<ITEML>000021hS%0a&00'00)18X)00)00)00</ITEML>";
|
|
}else if( PACKETVER >= 20100000 ){
|
|
// Grade does not exist (clientside) yet// Grade does not exist (clientside) yet
|
|
.@expected$ = "<ITEMLINK>000021hS%0a&00(18X(00(00(00</ITEMLINK>";
|
|
}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]");
|
|
}
|
|
}
|