Allowing items to be equipped for raceid 12+
Hello, Im running into a problem. Say I have a player set to a permarace of 33 (ghoul) even with an item set for ALL races it does not allow me to equip the item.
Is there a race code or a way to do this to allow me to equip the item? |
https://github.com/EQEmu/Server/blob..._data.cpp#L172
Code:
bool EQEmu::ItemData::IsEquipable(uint16 race_id, uint16 class_id) const You can try playing with the section above, or adding other races as allowed in GetPlayerRaceBit but I have no idea what effect that will have on the client, if any. |
Got it!
Code:
bool EQEmu::ItemData::IsEquipable(uint16 race_id, uint16 class_id) const This makes it so you can't have race restrictions on items. But it let me equip the item onto a ghoul race character. |
Code:
race usable? |
I was hoping this change, and the base melee damage would take us one step closer to implementing some type of Project M - where PCs could play as npc characters and have matching stats.
For project M, what you would have to do is when activated, a code pulls from the database a selected value of npcs and then sets the stats, class, race, spells, and items to the player. Because the melee damage is scaled exactly like an npc. It would be almost identical to project M |
Quote:
|
I think it should still allow class restrictions at least
|
The easiest way to disable code (without removing it) is to just remark it out:
Code:
bool EQEmu::ItemData::IsEquipable(uint16 race_id, uint16 class_id) const Also, TortoiseGit is a great menu-driven git tool that saves a lot of headaches. |
Quote:
If Race is NOT in player races, return true we can wear it. The code block ends right there and does not check the class restrictions because you have told it to return. If Race IS in player races, then check classes. If the class cannot wear it, return false. Otherwise, return true we can wear the item. As Uleat said above, if you don't want it to restrict race at all; comment out the race check but don't force an early return. If you still want the race check to work, but you just want certain extra races allowed then you will need to modify GetPlayerRaceBit and add your new race(s). Probably in a few other places as well. |
Ahh I see! Good point, I'll try to comment it out. Thank you guys
|
All times are GMT -4. The time now is 11:18 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.