7291.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. - script itemlink#ci -1,{
  2. OnInit:
  3. if( checkre(0) ){
  4. if( PACKETVER >= 20200724 ){
  5. // Change of separators and add grade
  6. .@expected$ = "<ITEML>0000213v0%0g&00'00)18X)1ck)00)00+2R,00-00</ITEML>";
  7. }else if( PACKETVER >= 20161116 ){
  8. // Change of separators and add equip preview
  9. .@expected$ = "<ITEML>0000213v0%0g&00(18X(1ck(00(00*2R+00,00</ITEML>";
  10. }else if( PACKETVER >= 20160113 ){
  11. // Change from <ITEM> to <ITEML>
  12. .@expected$ = "<ITEML>0000213v0%0g'18X'1ck'00'00)2R*00+00</ITEML>";
  13. }else if( PACKETVER >= 20151104 ){
  14. // Initial version
  15. .@expected$ = "<ITEM>0000213v0%0g'18X'1ck'00'00)2R*00+00</ITEM>";
  16. }else{
  17. // Item Link does not exist (clientside) yet
  18. .@expected$ = "Crimson Saber";
  19. }
  20. setarray .@opt_ids,RDMOPT_WEAPON_ATTR_GROUND;
  21. .@actual$ = itemlink(13454,16,4399,4608,0,0,0,.@opt_ids,.@opt_dummy,.@opt_dummy);
  22. AssertEquals(.@expected$, .@actual$, "Generated itemlink for +16 Earth Crimson Saber");
  23. }else{
  24. if( PACKETVER >= 20200724 ){
  25. // Change of separators and add grade (not used in pre-renewal)
  26. .@expected$ = "<ITEML>000021hS%0a&00'00)18X)00)00)00</ITEML>";
  27. }else if( PACKETVER >= 20161116 ){
  28. // Change of separators and add equip preview
  29. .@expected$ = "<ITEML>000021hS%0a&00(18X(00(00(00</ITEML>";
  30. }else if( PACKETVER >= 20160113 ){
  31. // Change from <ITEM> to <ITEML>
  32. .@expected$ = "<ITEML>000021hS%0a'18X'00'00'00</ITEML>";
  33. }else if( PACKETVER >= 20151104 ){
  34. // Initial version
  35. .@expected$ = "<ITEM>000021hS%0a'18X'00'00'00</ITEM>";
  36. }else{
  37. // Item Link does not exist (clientside) yet
  38. .@expected$ = "Blade";
  39. }
  40. // No Random Options in Pre-Renewal
  41. .@actual$ = itemlink(1108,10,4399);
  42. AssertEquals(.@expected$, .@actual$, "Generated itemlink for +10 Blade[4]");
  43. }
  44. }