Jump to content
TrinityCore

Leaderboard

Popular Content

Showing content with the highest reputation on 10/26/17 in all areas

  1. * hacks / exploits: check out the patches, truly your going to need to do that anyways (or google the topic, plenty of people are discussing or have discussed limiting people from movement hacks and dealing with false positives. * Well, think about it a moment ... what quest id is that (first of the day?) ... perhaps it's id 24788 and if you look that quest rewards item id 49426 (select * from quest_template where id = '24788') * On changing the quests and the DungeonFinding quests, you are going to have to look a bit further. The quests, instances and the manager are very related. https://github.com/TrinityCore/TrinityCore/tree/master/src/server/game/DungeonFinding
    1 point
  2. Not to bump this, but figured out how to set the timer. Now I need to set it to cast a spell if the timer runs out. During testing, however, the timer counted down to 4 seconds, then the spell vanished...
    -1 points
  3. Adding this to Unit.h/Unit.cpp will do the Job... void CastWithDelay(uint32 delay, Unit* victim, uint32 spellId, bool triggered, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void Unit::CastWithDelay(uint32 delay, Unit* victim, uint32 spellId, bool triggered, Item* castItem, AuraEffect const* triggeredByAura, ObjectGuid originalCaster) { class DelayCastEvent : public BasicEvent { public: DelayCastEvent(Unit *caster, Unit* victim, uint32 spellId, bool triggered, Item* castItem, AuraEffect const* triggeredByAura, ObjectGuid originalCaster) : BasicEvent(), _caster(caster), _victim(victim), _spellId(spellId), _triggered(triggered), _castItem(castItem), _triggeredByAura(triggeredByAura), _originalCaster(originalCaster) { ; } bool Execute(uint64, uint32) { _caster->CastSpell(_victim, _spellId, _triggered ? TRIGGERED_FULL_MASK : TRIGGERED_NONE, _castItem, _triggeredByAura, _originalCaster); return true; } private: Unit *_caster; Unit *_victim; uint32 _spellId; bool _triggered; Item *_castItem; AuraEffect const* _triggeredByAura; ObjectGuid _originalCaster; }; m_Events.AddEvent(new DelayCastEvent(this, victim, spellId, triggered, castItem, triggeredByAura, originalCaster), m_Events.CalculateTime(delay)); }
    -1 points
  4. Thanks for this information. I will play around with this, and see if my master plan to dominate the world will come to pass....
    -2 points
  5. You can get bots easily. http://git.realmsofwarcraft.com I know, I charge for access, but it's a one time fee of $10 because the server it runs on is a dedicated server and it costs me to rent it. But it is lifetime access. @gerripeach I could not get that code to work. item not declared, auraeffect not declared. Guess not placing it properly, but I fixed my issue with the spell not counting all the way down to 0. Still am unable to get another spell cast when duration ends. Worst part is, this is the easy part. the rest of what I am attempting is going to be much harder...
    -2 points
×
×
  • Create New...