Page 1 of 1

Custom Equipment

Posted: Fri Jul 20, 2012 3:40 am
by grayswandir
Is there a way to implement custom equipment without overloading files?

To my understanding, each zone specifies which files to load, and I couldn't find a hook or anything that could intercept this. Is there a right way to add in equipment, or will I have to stick with overloading files?

Re: Custom Equipment

Posted: Fri Jul 20, 2012 4:32 am
by lukep
Sort of. I assume that you are talking about your more exotic weapons addon, and want to add those items into normal places in the game.

I made a similar addon to yours, but never finished it well enough for release, and I used hooks to load the equipment whenever another specified file was loaded. You can take a look at the example addon for how to do this, or at my attached (unbalanced, though bug-free and fully functional) addon. I would recommend replacing "quest artifacts" with "swords" or something like that though.

Re: Custom Equipment

Posted: Fri Jul 20, 2012 8:52 am
by darkgod
Yeah like lukep does; but why bind i on quest arts ? just bind it on objects.lua; sound logical :)
Or if you want it only in one zoe bind it on hat zone's objects.lua

Re: Custom Equipment

Posted: Sat Jul 21, 2012 1:27 am
by grayswandir
Thanks, that really helped out.

Re: Custom Equipment

Posted: Wed Jul 25, 2012 5:22 am
by lukep