mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Merge branch 'master' of https://github.com/EQEmu/Server
This commit is contained in:
+10
-9
@@ -3061,6 +3061,7 @@ void command_texture(Client *c, const Seperator *sep)
|
||||
{
|
||||
|
||||
uint16 texture;
|
||||
|
||||
if (sep->IsNumber(1) && atoi(sep->arg[1]) >= 0 && atoi(sep->arg[1]) <= 255) {
|
||||
texture = atoi(sep->arg[1]);
|
||||
uint8 helm = 0xFF;
|
||||
@@ -3072,9 +3073,9 @@ void command_texture(Client *c, const Seperator *sep)
|
||||
{
|
||||
c->SendTextureWC(i, texture);
|
||||
}
|
||||
else if ((c->GetTarget()->GetRace() > 0 && c->GetTarget()->GetRace() <= 12) ||
|
||||
c->GetTarget()->GetRace() == 128 || c->GetTarget()->GetRace() == 130 ||
|
||||
c->GetTarget()->GetRace() == 330 || c->GetTarget()->GetRace() == 522) {
|
||||
else if ((c->GetTarget()->GetModel() > 0 && c->GetTarget()->GetModel() <= 12) ||
|
||||
c->GetTarget()->GetModel() == 128 || c->GetTarget()->GetModel() == 130 ||
|
||||
c->GetTarget()->GetModel() == 330 || c->GetTarget()->GetModel() == 522) {
|
||||
for (i = EQEmu::textures::textureBegin; i <= EQEmu::textures::LastTintableTexture; i++)
|
||||
{
|
||||
c->GetTarget()->SendTextureWC(i, texture);
|
||||
@@ -3093,7 +3094,7 @@ void command_texture(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
if ((c->GetTarget()) && (c->Admin() >= commandTextureOthers))
|
||||
c->GetTarget()->SendIllusionPacket(c->GetTarget()->GetRace(), 0xFF, texture, helm);
|
||||
c->GetTarget()->SendIllusionPacket(c->GetTarget()->GetModel(), 0xFF, texture, helm);
|
||||
else
|
||||
c->SendIllusionPacket(c->GetRace(), 0xFF, texture, helm);
|
||||
}
|
||||
@@ -7430,11 +7431,11 @@ void command_roambox(Client *c, const Seperator *sep)
|
||||
delay = {}
|
||||
WHERE id = {}
|
||||
),
|
||||
box_size,
|
||||
npc->GetX() - 100,
|
||||
npc->GetX() + 100,
|
||||
npc->GetY() - 100,
|
||||
npc->GetY() + 100,
|
||||
(box_size / 2),
|
||||
npc->GetX() - (box_size / 2),
|
||||
npc->GetX() + (box_size / 2),
|
||||
npc->GetY() - (box_size / 2),
|
||||
npc->GetY() + (box_size / 2),
|
||||
delay,
|
||||
spawn_group_id
|
||||
);
|
||||
|
||||
+5
-1
@@ -1736,7 +1736,11 @@ void Mob::SendIllusionPacket(
|
||||
uint32 new_drakkin_tattoo;
|
||||
uint32 new_drakkin_details;
|
||||
|
||||
race = (in_race) ? in_race : GetBaseRace();
|
||||
race = in_race;
|
||||
if (race == 0)
|
||||
{
|
||||
race = (use_model) ? use_model : GetBaseRace();
|
||||
}
|
||||
|
||||
if (in_gender != 0xFF)
|
||||
{
|
||||
|
||||
@@ -449,6 +449,7 @@ public:
|
||||
virtual inline uint16 GetDeity() const { return deity; }
|
||||
virtual EQEmu::deity::DeityTypeBit GetDeityBit() { return EQEmu::deity::ConvertDeityTypeToDeityTypeBit((EQEmu::deity::DeityType)deity); }
|
||||
inline uint16 GetRace() const { return race; }
|
||||
inline uint16 GetModel() const { return (use_model == 0) ? race : use_model; }
|
||||
inline uint8 GetGender() const { return gender; }
|
||||
inline uint8 GetTexture() const { return texture; }
|
||||
inline uint8 GetHelmTexture() const { return helmtexture; }
|
||||
|
||||
+30
-6
@@ -973,10 +973,12 @@ bool Client::TradeskillExecute(DBTradeskillRecipe_Struct *spec) {
|
||||
chance = mod_tradeskill_chance(chance, spec);
|
||||
|
||||
if (((spec->tradeskill==75) || GetGM() || (chance > res)) || zone->random.Roll(aa_chance)) {
|
||||
|
||||
success_modifier = 1;
|
||||
|
||||
if(over_trivial < 0)
|
||||
if (over_trivial < 0) {
|
||||
CheckIncreaseTradeskill(bonusstat, stat_modifier, skillup_modifier, success_modifier, spec->tradeskill);
|
||||
}
|
||||
|
||||
MessageString(Chat::LightBlue, TRADESKILL_SUCCEED, spec->name.c_str());
|
||||
|
||||
@@ -984,21 +986,43 @@ bool Client::TradeskillExecute(DBTradeskillRecipe_Struct *spec) {
|
||||
|
||||
itr = spec->onsuccess.begin();
|
||||
while(itr != spec->onsuccess.end() && !spec->quest) {
|
||||
//should we check this crap?
|
||||
|
||||
SummonItem(itr->first, itr->second);
|
||||
item = database.GetItem(itr->first);
|
||||
if (this->GetGroup()) {
|
||||
entity_list.MessageGroup(this, true, Chat::Skills, "%s has successfully fashioned %s!", GetName(), item->Name);
|
||||
if (item) {
|
||||
if (GetGroup()) {
|
||||
entity_list.MessageGroup(this, true, Chat::Skills, "%s has successfully fashioned %s!", GetName(), item->Name);
|
||||
}
|
||||
}
|
||||
else {
|
||||
Log(
|
||||
Logs::General,
|
||||
Logs::Tradeskills,
|
||||
StringFormat(
|
||||
"Failure (null item pointer [id: %u, qty: %u]) :: recipe_id:%i tskillid:%i trivial:%i chance:%4.2f in zoneid:%i instid:%i",
|
||||
itr->first,
|
||||
itr->second,
|
||||
spec->recipe_id,
|
||||
spec->tradeskill,
|
||||
spec->trivial,
|
||||
chance,
|
||||
this->GetZoneID(),
|
||||
this->GetInstanceID()
|
||||
).c_str()
|
||||
);
|
||||
}
|
||||
|
||||
/* QS: Player_Log_Trade_Skill_Events */
|
||||
if (RuleB(QueryServ, PlayerLogTradeSkillEvents)){
|
||||
if (RuleB(QueryServ, PlayerLogTradeSkillEvents)) {
|
||||
|
||||
std::string event_desc = StringFormat("Success :: fashioned recipe_id:%i tskillid:%i trivial:%i chance:%4.2f in zoneid:%i instid:%i", spec->recipe_id, spec->tradeskill, spec->trivial, chance, this->GetZoneID(), this->GetInstanceID());
|
||||
QServ->PlayerLogEvent(Player_Log_Trade_Skill_Events, this->CharacterID(), event_desc);
|
||||
}
|
||||
|
||||
if(RuleB(TaskSystem, EnableTaskSystem))
|
||||
if (RuleB(TaskSystem, EnableTaskSystem)) {
|
||||
UpdateTasksForItem(ActivityTradeSkill, itr->first, itr->second);
|
||||
}
|
||||
|
||||
++itr;
|
||||
}
|
||||
return(true);
|
||||
|
||||
Reference in New Issue
Block a user