Augmentor Quest
Are there currently any quest commands that would augment items for players? So let's say Player A gives an NPC item and an augment, the NPC would return the item with the augment socketed in?
|
You may use $client->SummonItem(), it has the following paramaters: item_id, charges, attune, aug1, aug2, aug3, aug4, aug5
I use this for some storage code I wrote that allows you to store items with augments and withdraw them. Here's an example. Although, you could just use $item1, $item2, $item3, and $item4 if you want them to be able to put anything in anything. Code:
sub EVENT_ITEM |
Quote:
|
I'd say $client->GetItemStat(), but it doesn't have augment slots according to this. Yeah, the code confirming it doesn't have augment slots is below.
Code:
uint32 Mob::GetItemStat(uint32 itemid, const char *identifier) |
I'm assuming that $client->SummonItem() calls the actual server code and is not script-defined elsewhere.
This is the server code: https://github.com/EQEmu/Server/blob...ntory.cpp#L203 I added the lore checks some time ago..but, have not incorporated any validity checks, as yet, into the existing code..so, for now, you'll have to manually check them in scripts. (I will add validation in the rework..probably with a status override as well.) Btw, thanks for bringing this up! I just found a memory leak that I created! :shock: </facepalm> EDIT: I took a closer look at the code..so, no memory leak. But, it could still use some tweaking. |
I have a working patch for Client::SummonItem() to check wear/restriction validity.
It needs to be tested more thoroughly before committing..but, it puts checks (with rules) in for augment validation. This is in the source code..so, nothing needs to be done to #summonitem or $client->SummonItem() - except maybe a handler for item creation failure (change from void to bool on the return type.) |
All times are GMT -4. The time now is 06:48 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.