mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
[Feature] Add Support for item textures higher than 65,535 (#3494)
* [Feature] Add Support for item textures higher than 65,535 # Notes - We were previously using `uint16` which has a max of `65,535`, but some of the new Live textures that are being used have values way beyond this. - Updates quest API, commands, and database tables that also used `uint16`. * Update version.h
This commit is contained in:
@@ -19,13 +19,14 @@ void command_wc(Client *c, const Seperator *sep)
|
||||
t = c->GetTarget();
|
||||
}
|
||||
|
||||
const auto slot_id = static_cast<uint8>(Strings::ToUnsignedInt(sep->arg[1]));
|
||||
const auto texture = static_cast<uint16>(Strings::ToUnsignedInt(sep->arg[2]));
|
||||
uint32 hero_forge_model = 0;
|
||||
uint32 elite_material = 0;
|
||||
const uint8 slot_id = Strings::ToUnsignedInt(sep->arg[1]);
|
||||
const uint32 texture = Strings::ToUnsignedInt(sep->arg[2]);
|
||||
uint32 hero_forge_model = 0;
|
||||
uint32 elite_material = 0;
|
||||
|
||||
if (arguments >= 3 && sep->IsNumber(3)) {
|
||||
hero_forge_model = Strings::ToUnsignedInt(sep->arg[3]);
|
||||
|
||||
if (EQ::ValueWithin(hero_forge_model, 1, 999)) { // Shorthand Hero Forge ID. Otherwise use the value the user entered.
|
||||
hero_forge_model = (hero_forge_model * 100) + slot_id;
|
||||
}
|
||||
@@ -35,7 +36,7 @@ void command_wc(Client *c, const Seperator *sep)
|
||||
elite_material = Strings::ToUnsignedInt(sep->arg[4]);
|
||||
}
|
||||
|
||||
c->GetTarget()->SendTextureWC(
|
||||
t->SendTextureWC(
|
||||
slot_id,
|
||||
texture,
|
||||
hero_forge_model,
|
||||
|
||||
Reference in New Issue
Block a user