Nice worki don't need but +rep
Nice worki don't need but +rep
thanks
Working on my next script right nowNo info leakz, its private til I release
be sure to anticipate
lolz
Lunar Gaming - Reaching For The Stars
alliance flag (Taken by horde) Silverwing Flag - Thottbot: World of Warcraft
Horde flag (Taken by alliance) Warsong Flag - Thottbot: World of Warcraft
Okay I updated the script
It now tracks the score and must be started by a GM
@thebigman
I'm workin on the flag spells, +Rep x4
-- Edit ---
Sorry thebigman gotta spread
-- Edit --
Got the spells working
Last edited by mager1794; 12-13-2009 at 01:17 PM.
Lunar Gaming - Reaching For The Stars
Very nice +Rep and Nominated!
Nice, reminds me of the old CTF script I made way back![]()
Thanks guys, I'm really glad you like it
@spidey
Is that a good thing or bad loljudging by the smiley I'm assuming good
Lunar Gaming - Reaching For The Stars
Hey,
nice script
I found a crashfix:
You should add "if (plr)" here, otherwise the server will crash if there is no player in range.Code:void AIUpdate() { Player * plr = _gameobject->GetMapMgr()->GetInterface()->GetPlayerNearestCoords(_gameobject->GetPositionX(), _gameobject->GetPositionY(), _gameobject->GetPositionZ()); if(_gameobject->CalcDistance( _gameobject, plr ) <= 2.0f) // You need to standing 2 meters from the actual center of the pink ring {
And so on, you know what I meanCode:void AIUpdate() { Player * plr = _gameobject->GetMapMgr()->GetInterface()->GetPlayerNearestCoords(_gameobject->GetPositionX(), _gameobject->GetPositionY(), _gameobject->GetPositionZ()); if (plr) { if(_gameobject->CalcDistance( _gameobject, plr ) <= 2.0f) // You need to standing 2 meters from the actual center of the pink ring {![]()
oh crap, forgot about thatthanks +Rep x4
Lunar Gaming - Reaching For The Stars
i get error's when i compile:
1>------ Build started: Project: ExtraScripts, Configuration: Release Win32 ------
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>CTF.cpp
1>..\src\ExtraScripts\CTF.cpp(62) : error C2039: 'AddAuraVisual' : is not a member of 'Player'
1> c:\users\owner\desktop\arc\trunk\src\arcemu-world\Player.h(911) : see declaration of 'Player'
1>..\src\ExtraScripts\CTF.cpp(114) : error C2039: 'RemoveAuraVisual' : is not a member of 'Player'
1> c:\users\owner\desktop\arc\trunk\src\arcemu-world\Player.h(911) : see declaration of 'Player'
1>..\src\ExtraScripts\CTF.cpp(160) : error C2039: 'RemoveAuraVisual' : is not a member of 'Player'
1> c:\users\owner\desktop\arc\trunk\src\arcemu-world\Player.h(911) : see declaration of 'Player'
1>Build log was saved at "file://c:\Users\Owner\Desktop\Arc\trunk\src\scripts\projects\2003_int_release\BuildLog. htm"
1>ExtraScripts - 3 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
nice work ;D
hmmmmm, ill have to take a look at it when i get home, im on my phone right now
Lunar Gaming - Reaching For The Stars
hmmmmm, ill have to take a look at it when i get home, im on my phone right now
Lunar Gaming - Reaching For The Stars
thanks alot, add me on MSN: [email protected]
How about:
Check if plr is alive and keep it in 1 lineCode:Player * plr = _gameobject->GetMapMgr()->GetInterface()->GetPlayerNearestCoords(_gameobject->GetPositionX(), _gameobject->GetPositionY(), _gameobject->GetPositionZ()); if (plr && plr->IsAlive() && _gameobject->CalcDistance( _gameobject, plr ) <= 2.0f)
![]()
Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!