Skip to content

Commit

Permalink
Added sanity checking to hackWishAmount.
Browse files Browse the repository at this point in the history
  • Loading branch information
Putnam3145 committed Apr 16, 2014
1 parent 6a29f6c commit 9411e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/scripts/fantastic/hackWishMulti.lua
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function hackWish(posOrUnit)
local descriptionok
descriptionok,description=script.showInputPrompt('Slab','What should the slab say?',COLOR_WHITE)
end
repeat amountok,amount=script.showInputPrompt('Wish','How many do you want? (numbers only!)',COLOR_LIGHTGREEN) until tonumber(amount)
repeat amountok,amount=script.showInputPrompt('Wish','How many do you want? (numbers only!)',COLOR_LIGHTGREEN) until tonumber(amount) and tonumber(amount)<1000
if mattype and itemtype then
for i=1,tonumber(amount) do
createItem({mattype,matindex},{itemtype,itemsubtype},quality,pos,description)
Expand Down

0 comments on commit 9411e23

Please sign in to comment.