Adding random loot to specific NPCs
Ok - I had this working this morning...Then fried my brain on another project and must be missing something now.
Basically just adds random loot to chest spawns that come up after mobs are killed. Chests are spawning fine. Just no loot. Code:
sub EVENT_SPAWN { |
Why are you checking npc id? Also, you should fix your rand() function.
|
Use the add loot plugin, simple and works great. You are creating steps that are not needed with what you have there.
Look it up on the wiki, akkadius has instructions there for it. |
Tunnel vision...Didn't even think about using AddLoot. :p
Thanks fellas |
All times are GMT -4. The time now is 11:13 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.