Skip to content

Commit

Permalink
Allow Give and Take to have data values on items
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Sep 11, 2013
1 parent 6e3244f commit e0f9a85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -64,7 +64,7 @@ else if (!scriptEntry.hasObject("engrave")
else if (!scriptEntry.hasObject("items")
&& !scriptEntry.hasObject("type")
&& arg.matchesArgumentType(dItem.class))
scriptEntry.addObject("items", dList.valueOf(arg.getValue()).filter(dItem.class));
scriptEntry.addObject("items", dList.valueOf(arg.raw_value.replace("item:", "")).filter(dItem.class));

else if (!scriptEntry.hasObject("inventory")
&& arg.matchesPrefix("t, to")
Expand Down
Expand Up @@ -59,7 +59,7 @@ else if (!scriptEntry.hasObject("qty")
else if (!scriptEntry.hasObject("items")
&& !scriptEntry.hasObject("type")
&& arg.matchesArgumentList(dItem.class))
scriptEntry.addObject("items", dList.valueOf(arg.getValue()).filter(dItem.class));
scriptEntry.addObject("items", dList.valueOf(arg.raw_value.replace("item:", "")).filter(dItem.class));

else if (!scriptEntry.hasObject("inventory")
&& arg.matchesPrefix("f, from")
Expand Down

1 comment on commit e0f9a85

@mcmonkey4eva
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay for commit #2400

Please sign in to comment.