-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core/Scripts: Meathook and Salramm should patrol once they spawn. #942
Closed
Closed
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
516025d
Core/Scripts: Meathook and Salramm should patrol once they spawn.
FALL1N1 a762280
let's make gcc happy
FALL1N1 54d69d5
we won't need this
FALL1N1 1481eed
fix the build
FALL1N1 58d203c
fix compile #2, make travis happy
FALL1N1 eef9afd
now...?
FALL1N1 17375b9
Merge remote-tracking branch 'upstream/master' into pr/942
Kitzunu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Core/Scripts: Meathook and Salramm should patrol once they spawn.
- Loading branch information
commit 516025d689384933411bf019629f1983b2d5493f
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,14 +47,28 @@ class boss_salramm : public CreatureScript | |
|
||
CreatureAI* GetAI(Creature* creature) const | ||
{ | ||
return new boss_salrammAI (creature); | ||
return new boss_salrammAI(creature); | ||
} | ||
|
||
struct boss_salrammAI : public ScriptedAI | ||
struct boss_salrammAI : public npc_escortAI | ||
{ | ||
boss_salrammAI(Creature* c) : ScriptedAI(c), summons(me) | ||
boss_salrammAI(Creature* c) : npc_escortAI(c), summons(me) | ||
{ | ||
Talk(SAY_SPAWN); | ||
|
||
AddWaypoint(1, 2349.07f, 1181.84f, 130.416f, 0); | ||
AddWaypoint(2, 2240.9f, 1173.33f, 137.171f, 0); | ||
AddWaypoint(3, 2171.15f, 1251.85f, 135.168f, 0); | ||
AddWaypoint(4, 2180.95f, 1329.96f, 129.991f, 0); | ||
AddWaypoint(5, 2219.12f, 1331.17f, 128.11f, 0); | ||
AddWaypoint(6, 2139.14f, 1351.94f, 132.072f, 0); | ||
AddWaypoint(7, 2186.49f, 1335.78f, 130.049f, 0); | ||
AddWaypoint(8, 2170.9f, 1255.13f, 134.816f, 0); | ||
AddWaypoint(9, 2245.52f, 1169.46f, 137.59f, 0); | ||
AddWaypoint(10, 2325.94f, 1176.1f, 132.979f, 0); | ||
AddWaypoint(11, 2351.52f, 1197.95f, 130.444f, 0); | ||
|
||
Start(true, false, 0, NULL, false, true); | ||
} | ||
|
||
EventMap events; | ||
|
@@ -103,7 +117,9 @@ class boss_salramm : public CreatureScript | |
} | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +void WaypointReached(uint32 waypointId) { } There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix build |
||
void UpdateAI(uint32 diff) | ||
void WaypointReached(uint32 Point) { /* do something? idk.. */ } | ||
|
||
void UpdateEscortAI(uint32 diff) | ||
{ | ||
if (!UpdateVictim()) | ||
return; | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+void WaypointReached(uint32 waypointId) { }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix build