aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Examples
diff options
context:
space:
mode:
authorMalcrom <malcromdev@gmail.com>2013-06-11 19:54:27 -0230
committerMalcrom <malcromdev@gmail.com>2013-06-11 19:54:27 -0230
commit66978cfc3b672309ed79da917695bc59427974aa (patch)
treede60f66490b11865b4f652bd7ec580da0e809ff3 /src/server/scripts/Examples
parent46374bf533987b492abd590d7cd2ae182b35bd39 (diff)
Core: Some function renaming.
Diffstat (limited to 'src/server/scripts/Examples')
-rw-r--r--src/server/scripts/Examples/example_creature.cpp16
-rw-r--r--src/server/scripts/Examples/example_escort.cpp4
2 files changed, 10 insertions, 10 deletions
diff --git a/src/server/scripts/Examples/example_creature.cpp b/src/server/scripts/Examples/example_creature.cpp
index d4e1b8d8ce2..6a6c348bfcf 100644
--- a/src/server/scripts/Examples/example_creature.cpp
+++ b/src/server/scripts/Examples/example_creature.cpp
@@ -168,7 +168,7 @@ class example_creature : public CreatureScript
void UpdateAI(uint32 uiDiff)
{
//Out of combat timers
- if (!me->getVictim())
+ if (!me->GetVictim())
{
//Random Say timer
if (m_uiSayTimer <= uiDiff)
@@ -200,9 +200,9 @@ class example_creature : public CreatureScript
{
//Cast spell one on our current target.
if (rand()%50 > 10)
- DoCast(me->getVictim(), SPELL_ONE_ALT);
- else if (me->IsWithinDist(me->getVictim(), 25.0f))
- DoCast(me->getVictim(), SPELL_ONE);
+ DoCast(me->GetVictim(), SPELL_ONE_ALT);
+ else if (me->IsWithinDist(me->GetVictim(), 25.0f))
+ DoCast(me->GetVictim(), SPELL_ONE);
m_uiSpell1Timer = 5000;
}
@@ -213,7 +213,7 @@ class example_creature : public CreatureScript
if (m_uiSpell2Timer <= uiDiff)
{
//Cast spell two on our current target.
- DoCast(me->getVictim(), SPELL_TWO);
+ DoCast(me->GetVictim(), SPELL_TWO);
m_uiSpell2Timer = 37000;
}
else
@@ -226,7 +226,7 @@ class example_creature : public CreatureScript
if (m_uiSpell3Timer <= uiDiff)
{
//Cast spell one on our current target.
- DoCast(me->getVictim(), SPELL_THREE);
+ DoCast(me->GetVictim(), SPELL_THREE);
m_uiSpell3Timer = 19000;
}
@@ -236,8 +236,8 @@ class example_creature : public CreatureScript
if (m_uiBeserkTimer <= uiDiff)
{
//Say our line then cast uber death spell
- Talk(SAY_BERSERK, me->getVictim() ? me->getVictim()->GetGUID() : 0);
- DoCast(me->getVictim(), SPELL_BERSERK);
+ Talk(SAY_BERSERK, me->GetVictim() ? me->GetVictim()->GetGUID() : 0);
+ DoCast(me->GetVictim(), SPELL_BERSERK);
//Cast our beserk spell agian in 12 seconds if we didn't kill everyone
m_uiBeserkTimer = 12000;
diff --git a/src/server/scripts/Examples/example_escort.cpp b/src/server/scripts/Examples/example_escort.cpp
index e911736036c..bf3daa1443f 100644
--- a/src/server/scripts/Examples/example_escort.cpp
+++ b/src/server/scripts/Examples/example_escort.cpp
@@ -142,12 +142,12 @@ class example_escort : public CreatureScript
npc_escortAI::UpdateAI(uiDiff);
//Combat check
- if (me->getVictim())
+ if (me->GetVictim())
{
if (m_uiDeathCoilTimer <= uiDiff)
{
Talk(SAY_SPELL);
- DoCast(me->getVictim(), SPELL_DEATH_COIL, false);
+ DoCast(me->GetVictim(), SPELL_DEATH_COIL, false);
m_uiDeathCoilTimer = 4000;
}
else