EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   Random Stat on Item (https://www.eqemulator.org/forums/showthread.php?t=43115)

Bytebait 11-24-2020 12:58 PM

Random Stat on Item
 
Is there a way to add a random stats on an item on a corpse before it's looted? For example:

Player kills a "the ghoul lord" , and a Skull-shaped Barbute has random +10 to +100 Health instead of a flat Health +30.

ChaosSlayerZ 11-25-2020 06:13 PM

Quote:

Originally Posted by Bytebait (Post 265757)
Is there a way to add a random stats on an item on a corpse before it's looted? For example:

Player kills a "the ghoul lord" , and a Skull-shaped Barbute has random +10 to +100 Health instead of a flat Health +30.

As far as I know - NO. This because unlike say EQ2, Diablo or WoW, item in EQ is "a projection" of a single base item, rather than individual item of its own. In other words it is always an exact copy of what is entered in DB and cannot have its own individual properties - like durability.

Your best bet is to go with pre-inserted augment that cannot be removed which will be selected by script from a list of available variations...

Uleat 11-25-2020 08:29 PM

In earlier expansions, this might have been possible as each instance of an item had its own base data definition (this is how scaled items used to work on EQEmu.)

Newer clients, however, use a singular reference for any base item data and all instances point back to that reference.

demonstar55 11-26-2020 12:35 AM

Theoretically you could hack up a system that could do this ... but you need to reserve a bunch of item IDs for it and shit. Stock EQEmu will never support it given how hacky it is.

Bytebait 11-26-2020 03:23 AM

Quote:

Originally Posted by ChaosSlayerZ (Post 265761)
As far as I know - NO. This because unlike say EQ2, Diablo or WoW, item in EQ is "a projection" of a single base item, rather than individual item of its own. In other words it is always an exact copy of what is entered in DB and cannot have its own individual properties - like durability.

Your best bet is to go with pre-inserted augment that cannot be removed which will be selected by script from a list of available variations...

That's a clever idea! :)

Bytebait 11-26-2020 03:29 AM

Quote:

Originally Posted by demonstar55 (Post 265765)
Theoretically you could hack up a system that could do this ... but you need to reserve a bunch of item IDs for it and shit. Stock EQEmu will never support it given how hacky it is.

Yeah. I wasn't sure if I could randomly create an item in the DB on the NPC's death with the ID of a certain range. then maybe once a night run an outside script that removes all items in that range that aren't equipped, banked, bagged from the database.

Randymarsh9 12-01-2020 10:08 PM

I'd go with the hidden augment approach. You can make the aug slot invisible, so to a user, it will appear like the item just has random stats added.


All times are GMT -4. The time now is 01:24 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.