Comments (11)
Author: nay
I see flag changes but no bitwise math. (Never use = for flags)
It's the core script that should add/remove the attackable/targeteable flags.
from trinitycore.
Author: androx
Replying to [comment:2 nay]:
I see flag changes but no bitwise math. (Never use = for flags)
It's the core script that should add/remove the attackable/targeteable flags.
Yup, I agree with you... I´ll check the core script...
from trinitycore.
Author: fuchs
pls fix this ;P
from trinitycore.
Author: androx
Replying to [comment:4 fuchs]:
pls fix this ;P
I'll try, I´m not a trinity dev, but I'm a C/C++ Dev and I can help =), currently I'm learning all project structure, mechanism, logic, etc, and later, I can contribute with fixes =),this is a large project in SLOC (1.9M lines of code aprox), currently I'm finding where the core set and unset the flags of bosses, I have some tips, for example:
src/server/scripts/EasternKingdoms/ScarletMonastery/boss_mograine_and_whitemane.cpp:88: me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.h:114: me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE|UNIT_FLAG_NOT_SELECTABLE);
src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp:169: pCreature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp:175: pCreature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
I see in other script this methods (RemoveFlags and SetFlags) and of course, this flags are in Unit.h, I'll get the last revision from Git, and set unitflag of Tyrranus to the original value from TDB_335.11.36_10818, I see some commits related with Scourge Tyrannus boss, I´ ll test this git commit...
from trinitycore.
Author: androx
With TrinityCore Rev: 10935+ Release Hash: 77af7ba+ , TDB : 335.11.36 and TDBAI 335.0.3 , the boss is an invalid target, if you update the unit_flags from 33554496 to 64 is the same result...
But, now the scene of Ick is much better =), Scourgelord Tyrannus now appear and kill Ick Boss (nice job =) )....
from trinitycore.
Author: androx
Ok I see the script of Scougelord Tyrannus at line number 482 the reasson why the script dont start, I'll set my gm account to normal and check the boss again... details :
{{{
bool OnTrigger(Player* player, const AreaTriggerEntry* /at/)
{
InstanceScript* instance = player->GetInstanceScript();
if (player->isGameMaster() || !instance)
return false;
if (instance->GetBossState(DATA_TYRANNUS) != IN_PROGRESS || instance->GetBossState(DATA_TYRANNUS) != DONE)
if (Creature* tyrannus = ObjectAccessor::GetCreature(*player, instance->GetData64(DATA_TYRANNUS)))
{
tyrannus->AI()->DoAction(ACTION_START_INTRO);
return true;
}
return false;
}}}
...
from trinitycore.
Author: stryker
have you applied
http://www.trinitycore.org/t/trinitycore/ticket/3 < ?
from trinitycore.
Author: androx
Replying to [comment:8 stryker]:
have you applied
Yup I applied this :
{{{
UPDATE creature_template
SET speed_run
=1.857143,speed_walk
=3.2,unit_flags
=0x00000040,faction_A
=14,faction_H
=14,baseattacktime
=2000,equipment_id
=1872 WHERE entry
IN (36658,36938); -- Scourgelord Tyrannus
}}}
The same result the boss Scourge Tyrannus is an invalid target, I killed Forgemaster and Ick too (Heroic and no heroic mode)...
TrinityCore Rev: 10941+ Release Hash: eac259f+
TDB 335.11.36
TDBAI 335.0.3
from trinitycore.
Author: androx
Now I applied the entire db fixed from : http://www.trinitycore.org/t/trinitycore/ticket/3 plus
{{{
UPDATE creature_template
SET speed_run
=1.857143,speed_walk
=3.2,unit_flags
=0x00000040,faction_A
=14,faction_H
=14,baseattacktime
=2000,equipment_id
=1872 WHERE entry
IN (36658,36938); -- Scourgelord Tyrannus
}}}
And only the Rimefang spawn, not the Scourgelord Tyrannus... , the same in Heroic o Normal...
Now is necesary the Quest Deliverance from pit to enter the Hall of Reflexion (nice job =) ) but is necesary complete the quest The path of citadel (only Forgemastes is killable, but free the slave is not possible, ticket : http://www.trinitycore.org/t/trinitycore/ticket/29
Complete quest set:
http://www.wowhead.com/quest=24712/deliverance-from-the-pit
TrinityCore Rev: 10941+ Release Hash: eac259f+
TDB 335.11.36
TDBAI 335.0.3
from trinitycore.
Author: zxbiohazardzx
if you wish to fix the unit then fix the script, and submit a new patch, this update is wrong
from trinitycore.
Author: androx
If this ticket is invalid and I applied only the suggest from this ticket: http://www.trinitycore.org/t/trinitycore/ticket/3 both ticket should be invalid, not only this.....
from trinitycore.
Related Issues (20)
- Crash in Unit::SetPhaseMask
- Boss Dark Shaman Koranthal's skill effects can't be displayed HOT 2
- DB/Ragefire Chasm: Spawn instance with new spawns for 5.0 version HOT 1
- Wish for additional SAI functions that are only available in C++. HOT 3
- Wish for additional SAI functions that are only available in C++ HOT 2
- Adarogg boss Cast Inferno Charge on Aggro have not effect HOT 4
- Creature formations point1 & point2
- GCC-C++ 14.0.1: Undefined reference to void Spell::SearchTargets HOT 4
- DB/Tele: Add teleport locations for The Wandering Isle
- [master] Mythic+ System
- Condition for enable phases just for WMO Area Ids HOT 2
- Crash after click on NPC with a gossip and much much queststarter options HOT 2
- Button for creating new character is gone HOT 8
- Spells Area - Allow restrict areas by Wmo Area ID HOT 1
- DB/Broken Isles: Start phases and some cosmetic for Legion tailoring quest chain
- Pet Battles HOT 1
- Combat-Skills increasing too fast on grey mobs due to integer underflow HOT 1
- Some visual spells are broken HOT 3
- DB: Orphaned updates on clean tdb HOT 4
- mobs arround "square" of east entrance of gundrak must rotate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trinitycore.