View Full Version : Request for certain API?

08-01-2014, 07:04 PM
While I haven't updated my server lately, I checked the Git for Eluna and not much was added.

I was curious if there will ever be a :UnEquip(id, slot), or anything to deal with Mail?

I have a script for a Alignment system and you can put Alignment Requirements on Item. I cannot forcibly unequip items on players though.
My current work around is breaking the item, and have it check on combat/zoning to re-break the Item if a Player wants to Jeeves they're way out of the problem. I could also remove and add the item back, but that removes the gems/enchants as far as I'm aware. (Adding Items also seems to crash the World Server but probably something more on updating both TC & Eluna)

I was curious is there a reason a :Unequip isn't around? I was also wondering when Mail would be added next, so I can set up the system to unequip items and if the bags are full just send it through the Mail.

Anyhow, just wanted to ask a question and this seemed like the best place to ask.

08-01-2014, 08:30 PM
I checked the Git for Eluna and not much was added.

How long did you wait to update? Assuming you're referring, "not much was added" to methods in general? A lot has been done to Eluna, but we aren't going to add new methods unless we see that a certain method hasn't been added or if someone requests it. That will pretty much answer your questions about any method(s) - unless of course some specific methods were disabled and haven't been enabled/added yet.

I'm pretty certain 'Unequipped' hasn't been added because it hasn't been requested or needed for that matter. Since you brought it up, it will most likely get added or someone can come up with a different way in unequipping items without the need for a new method.

Have you actually reviewed the LuaFunctions.cpp (https://github.com/ElunaLuaEngine/Eluna/blob/master/LuaFunctions.cpp) at all lately? If not, I would suggest doing so.

I was also wondering when Mail would be added next

Sending mail? It was added a long time ago.

SendMail(subject, text, receiverLowGUID[, senderLowGUID, stationary, delay, itemEntry, itemAmount, itemEntry2, itemAmount2...]) (https://github.com/ElunaLuaEngine/Eluna/blob/master/LuaFunctions.cpp#L107)

Are you sure you're looking at the correct repo? Should be: https://github.com/ElunaLuaEngine/Eluna and you can search (Ctrl + F) through " https://github.com/ElunaLuaEngine/Eluna/blob/master/LuaFunctions.cpp " to find a method you're looking for. If the method isn't there, you can easily request it.

08-02-2014, 02:30 AM
It's been about 2(?)ish months since I've last updated. I was referring to the methods. I compared the Git to my Own Local copy and didn't see anything really looking like it was going to fix my problem. As for the Mail, that's entirely my fault I didn't search hard enough. I'd figure it'd be under player related methods and not server.

And I understand for the new method thing, I would greatly appreciate if a Unequip method was added. I think it would help myself and any others (thinking VIP system with Items.)

I plan to update my TrinityCore and Eluna tonight, was reluctant as I have some Custom Code (Class/Race) and I didn't want to have to deal with updating it.
Thanks for the Hasty Reply!

08-03-2014, 08:46 AM
Im not exactly sure what you mean with the unequip mail stuff..
But it is true that at the moment it is only possible to equip an item.
You can not unequip or move items around. This is on todo list.
Only way to unequip atm is to remove the item and re add it to player, which isnt good in some cases when bag space is limited xd