Code: Select all
void Spell::SetAAPacketInformation(PacketStruct* packet, AltAdvanceData* data, Client* client, bool display_tier) {
//////////Spell* spell2 = master_spell_list.GetSpell(spell->id, spell->tier + 1);
packet->setDataByName("current_id", spell->id);
packet->setDataByName("current_icon", spell->icon);
packet->setDataByName("current_icon2", spell->icon_heroic_op); // fix struct element name eventually
packet->setDataByName("current_icontype", spell->icon_backdrop); // fix struct element name eventuallyi have the need to access the next tier of the spell in this function as well, as seen here
Code: Select all
packet->setDataByName("next_id", spell2->id);
packet->setDataByName("next_icon", spell2->icon);
packet->setDataByName("next_icon2", spell2->icon_heroic_op); // fix struct element name eventually
packet->setDataByName("next_icontype", spell2->icon_backdrop); // fix struct element name eventuallyi am sure this is a simple were , where am i going wrong
i did try using spell2->spell.id but that says expression must have a class type