test
This commit is contained in:
parent
aa5ac1b29e
commit
d67dcee31d
74
items.go
74
items.go
@ -5,11 +5,15 @@ import (
|
||||
)
|
||||
|
||||
func reloadObjItem(code string, name string, itemTypeID64 int64, weight int) {
|
||||
id := silentGetObjItemID(code, name)
|
||||
if id == 0 {
|
||||
_, err := addObjItem(code, name, itemTypeID64, weight)
|
||||
objID64 int64
|
||||
objID64 = silentGetObjItemID(code, ``)
|
||||
if objID64 == 0 {
|
||||
objID64, err := addObjItem(code, name, itemTypeID64, weight)
|
||||
logOnError(err, "reloadObjItem : addObjItem")
|
||||
}
|
||||
if silentGetObjItemID(``, name) == 0 {
|
||||
objAddName(objID64, name)
|
||||
}
|
||||
}
|
||||
|
||||
func resetObjItem() {
|
||||
@ -106,137 +110,73 @@ func resetObjItem() {
|
||||
reloadObjItem(`624`, `🎟Gift Coupon 'Spider'`, objSubTypeItemMisc, 1)
|
||||
reloadObjItem(`625`, `🎟Gift Coupon 'Haunted'`, objSubTypeItemMisc, 1)
|
||||
reloadObjItem(`626`, `🎟Gift Coupon 'Camel'`, objSubTypeItemMisc, 1)
|
||||
reloadObjItem(`a01`, `Cloth jacket`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a01`, `Cloth Jacket`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a02`, `Leather shirt`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a02`, `Leather Shirt`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a03`, `Chain mail`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a03`, `Chain Mail`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a04`, `Silver cuirass`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a04`, `Silver Cuirass`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a05`, `Mithril armor`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a05`, `Mithril Armor`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a06`, `Hat`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a07`, `Leather hood`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a07`, `Leather Hood`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a08`, `Steel helmet`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a08`, `Steel Helmet`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a09`, `Silver helmet`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a09`, `Silver Helmet`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a10`, `Mithril helmet`, objSubTypeItemOther, 190) // PROPAGATE TO WIKI
|
||||
reloadObjItem(`a10`, `Mithril Helmet`, objSubTypeItemOther, 190) // PROPAGATE TO WIKI
|
||||
reloadObjItem(`a11`, `Sandals`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a12`, `Leather shoes`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a12`, `Leather Shoes`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a13`, `Steel boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a13`, `Steel Boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a14`, `Silver boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a14`, `Silver Boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a15`, `Mithril boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a15`, `Mithril Boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a16`, `Gloves`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a17`, `Leather gloves`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a17`, `Leather Gloves`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a18`, `Steel gauntlets`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a18`, `Steel Gauntlets`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a19`, `Silver gauntlets`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a19`, `Silver Gauntlets`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a20`, `Mithril gauntlets`, objSubTypeItemOther, 125) // PROPAGATE TO WIKI
|
||||
reloadObjItem(`a20`, `Mithril Gauntlets`, objSubTypeItemOther, 125) // PROPAGATE TO WIKI
|
||||
reloadObjItem(`a21`, `Wooden shield`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a21`, `Wooden Shield`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a22`, `Skeleton buckler`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a22`, `Skeleton Buckler`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a23`, `Bronze shield`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a23`, `Bronze Shield`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a24`, `Silver shield`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a24`, `Silver Shield`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a25`, `Mithril shield`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a25`, `Mithril Shield`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a26`, `Royal guard cape`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a26`, `Royal Guard Cape`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a27`, `Order armor`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a27`, `Order Armor`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a28`, `Order helmet`, objSubTypeItemOther, 190)
|
||||
reloadObjItem(`a28`, `Order Helmet`, objSubTypeItemOther, 190)
|
||||
reloadObjItem(`a29`, `Order boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a29`, `Order Boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a30`, `Order gauntlets`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a30`, `Order Gauntlets`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a31`, `Order shield`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a31`, `Order Shield`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a32`, `Hunter armor`, objSubTypeItemOther, 450)
|
||||
reloadObjItem(`a32`, `Hunter Armor`, objSubTypeItemOther, 450)
|
||||
reloadObjItem(`a33`, `Hunter helmet`, objSubTypeItemOther, 190)
|
||||
reloadObjItem(`a33`, `Hunter Helmet`, objSubTypeItemOther, 190)
|
||||
reloadObjItem(`a34`, `Hunter boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a34`, `Hunter Boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a35`, `Hunter gloves`, objSubTypeItemOther, 125) // PROPAGATE TO WIKI
|
||||
reloadObjItem(`a35`, `Hunter Gloves`, objSubTypeItemOther, 125) // PROPAGATE TO WIKI
|
||||
reloadObjItem(`a36`, `Clarity robe`, objSubTypeItemOther, 450)
|
||||
reloadObjItem(`a36`, `Clarity Robe`, objSubTypeItemOther, 450)
|
||||
reloadObjItem(`a37`, `Clarity circlet`, objSubTypeItemOther, 190)
|
||||
reloadObjItem(`a37`, `Clarity Circlet`, objSubTypeItemOther, 190)
|
||||
reloadObjItem(`a38`, `Clarity shoes`, objSubTypeItemOther, 125)
|
||||
reloadObjItem(`a38`, `Clarity Shoes`, objSubTypeItemOther, 125)
|
||||
reloadObjItem(`a39`, `Clarity bracers`, objSubTypeItemOther, 125)
|
||||
reloadObjItem(`a39`, `Clarity Bracers`, objSubTypeItemOther, 125)
|
||||
reloadObjItem(`a40`, `Pencil of Truth`, objSubTypeItemOther, 10)
|
||||
reloadObjItem(`a41`, `Bard's cape`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a41`, `Bard's Cape`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a45`, `Crusader armor`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a45`, `Crusader Armor`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a46`, `Crusader helmet`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a46`, `Crusader Helmet`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a47`, `Crusader boots`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a47`, `Crusader Boots`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a48`, `Crusader gauntlets`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a48`, `Crusader Gauntlets`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a49`, `Crusader shield`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a49`, `Crusader Shield`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a50`, `Royal armor`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a50`, `Royal Armor`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a51`, `Royal helmet`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a51`, `Royal Helmet`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a52`, `Royal boots`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a52`, `Royal Boots`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a53`, `Royal gauntlets`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a53`, `Royal Gauntlets`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a54`, `Royal shield`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a54`, `Royal Shield`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a55`, `Ghost armor`, objSubTypeItemOther, 480)
|
||||
reloadObjItem(`a55`, `Ghost Armor`, objSubTypeItemOther, 480)
|
||||
reloadObjItem(`a56`, `Ghost helmet`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a56`, `Ghost Helmet`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a57`, `Ghost boots`, objSubTypeItemOther, 90)
|
||||
reloadObjItem(`a57`, `Ghost Boots`, objSubTypeItemOther, 90)
|
||||
reloadObjItem(`a58`, `Ghost gloves`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a58`, `Ghost Gloves`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a59`, `Lion armor`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a59`, `Lion Armor`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a60`, `Lion helmet`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a60`, `Lion Helmet`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a61`, `Lion boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a61`, `Lion Boots`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a62`, `Lion gloves`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a62`, `Lion Gloves`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a63`, `Demon robe`, objSubTypeItemOther, 480)
|
||||
reloadObjItem(`a63`, `Demon Robe`, objSubTypeItemOther, 480)
|
||||
reloadObjItem(`a64`, `Demon circlet`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a64`, `Demon Circlet`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a65`, `Demon shoes`, objSubTypeItemOther, 140)
|
||||
reloadObjItem(`a65`, `Demon Shoes`, objSubTypeItemOther, 140)
|
||||
reloadObjItem(`a66`, `Demon bracers`, objSubTypeItemOther, 140)
|
||||
reloadObjItem(`a66`, `Demon Bracers`, objSubTypeItemOther, 140)
|
||||
reloadObjItem(`a67`, `Divine robe`, objSubTypeItemOther, 480)
|
||||
reloadObjItem(`a67`, `Divine Robe`, objSubTypeItemOther, 480)
|
||||
reloadObjItem(`a68`, `Divine circlet`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a68`, `Divine Circlet`, objSubTypeItemOther, 200)
|
||||
reloadObjItem(`a69`, `Divine shoes`, objSubTypeItemOther, 140)
|
||||
reloadObjItem(`a69`, `Divine Shoes`, objSubTypeItemOther, 140)
|
||||
reloadObjItem(`a70`, `Divine bracers`, objSubTypeItemOther, 140)
|
||||
reloadObjItem(`a70`, `Divine Bracers`, objSubTypeItemOther, 140)
|
||||
reloadObjItem(`a71`, `Storm cloak`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a71`, `Storm Cloak`, objSubTypeItemOther, -1)
|
||||
reloadObjItem(`a72`, `Durable Cloak`, objSubTypeItemOther, 30) // PROPAGATE TO WIKI
|
||||
reloadObjItem(`a73`, `Blessed Cloak`, objSubTypeItemOther, 30)
|
||||
|
Loading…
Reference in New Issue
Block a user