You showed corrections around "thank" while retaining "iksar,
Take a look at quests/plugins/global.pl for the hasItems and takeItems functions.
They take hashes for args, so hasItems(itemid1 => qtyrequired1, itemid2 => qtyrequired2), etc.
They work the same way except one removes the necessary items and the other doesn't.
Finish with returnUnusedItems(); to give anything left in the items array back to the client.
|