$npc->AddItem IF 'reqlevel' is....
I'm using a modified version of a perl script for random loot drops in some zones (posted by Trubles).
I was wondering if it is possible to expand on this to only 'AddItem' if the random itemid was an item that had a 'reqlevel' of <= 65. Thanks! |
Try this:
Code:
if ($npc->GetItemStat(ID, "reqlevel") >= 65) { |
Quote:
Thanks Kingly, I will do so as soon as I get out of work. :-D |
Quote:
*pokes the Krab. :) |
Quote:
|
My bad, I was doing some other stuff and I thought I could help, so I wrote that. :P
|
Quote:
Quote:
|
Quote:
|
That did the trick, thanks again Kingly!
|
Quote:
|
Quote:
I have lots to learn, but am having a blast so far. |
All times are GMT -4. The time now is 01:22 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.