private static string ItemToTag(SimpleItem args) { string ret = ((args.prefix != 0) ? "[i/p" + args.prefix : "[i"); ret = (args.stack != 1) ? ret + "/s" + args.stack : ret; ret = ret + ":" + args.netID + "]"; if (args.netID == 0) { return(""); } return(ret); }
public Goods(int a) { if (a == 1) { var i1 = new SimpleItem(2760); var i2 = new SimpleItem(2761); var i3 = new SimpleItem(2762); DisplayName = "ExampleNebula"; RequirePermission = "shop.buy"; Price = 500000; IncludeItems = new List <SimpleItem> { i1, i2, i3 }; } if (a == 2) { DisplayName = "Example2"; Price = 20; for (int i = 0; i < 10; i++) { IncludeItems.Add(new SimpleItem(i + 2702)); } } }