Skip to content

Instantly share code, notes, and snippets.

@DingWeizhe
Created June 5, 2015 10:03
Show Gist options
  • Save DingWeizhe/b0fe46c76c4e81a5ba17 to your computer and use it in GitHub Desktop.
Save DingWeizhe/b0fe46c76c4e81a5ba17 to your computer and use it in GitHub Desktop.
ITEM_DROP = {}
require("System\\drop")
A = function(id, name, resource, description, slotCount, ClassNum)
if not ITEM_DROP[id] then
description = {ITEM_DROP[id]}
--table.insert(description, ITEM_DROP[id])
end
result, msg = AddItem(id, name, resource, name, resource, slotCount, ClassNum)
for k, v in pairs(description) do
result, msg = AddItemUnidentifiedDesc(id, v)
result, msg = AddItemIdentifiedDesc(id, v)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment