Snippet Problem

Posted by Txzeenath on Tue 03 May 2005 03:55 PM — 4 posts, 16,913 views.

USA #0
I just coded weapon sheaths into my mud(no revelvance... just what lead to the finding).. and while I was looking over all the do_get and getobj code.. I found that the v5 of weapons is used to store the level at which the item can be taken when it has been disarmed during a PK battle.

The snippet that sets the v5 to be the weapons loading level(can be found I believe at rafermand.net) would be in conflict with this. I haven't checked any of the actual affects of this.. but depending on how you implement these values they could mess some things up in a rather annoying way.

Just wanted to bring this to attention incase anyone runs into problems regarding the v5 of items.

Amended on Tue 03 May 2005 04:15 PM by Txzeenath
USA #1
Yeah, but the item level variable does work. It is just reset to 0 somewhere, and I have yet to find it. (You'll notice if an object is dropped by a mob, it'll be at that mobs level and will stay at that level)
USA #2
*nods* with a basic implementation the "conflict" won't cause any problems.. but anyone who plans on using the v5 for the objects perminant level, or using the v5 on weapons for any other applications such as further expansion of the equipment system.
USA #3
Which is why if you're going to have something like a permanent level on objects you should just create a struct member for it and you won't have these issues :)