• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Almost finished my script.Just need a little bit more help

Status
Not open for further replies.

brh11

Respected Member
okay,the other thread seemed to be dead.And to help increase traffic(my username is a sub menu in Google ^^.Okay here is a revised and almost complete version of my script http://pastebin.com/MDgYDQAe and here are the really frustrating and painstaking errors http://pastebin.com/d1XjcJ47.This is the best forum I have ever been to just to put that out there.Im happy to get involved with the people and see the community grow.Thanks so much again.Emudevs <3!:proud:
 

Jameyboor

Retired Staff
You're missing a closing bracket } somewhere at the end.

at line 347, you're using SetAuraStack, but the function takes different arguments then the ones you have now.

same for the CastSpell function, check your arguments.

at lines 116 and 426 you probably have something like ->isDead, you should add the argument braces, even thought they're empty, like this ->isDead()
 

brh11

Respected Member
Thank you! I figured out some of the errors on my own but you helped so much :)just while I'm looking around to try and fix this.I have this right now

Code:
Error	1	error C2143: syntax error : missing ';' before '}'	C:\Users\Brendans\Documents\GitHub\TrinityCore\src\server\scripts\OutdoorPvP\OutdoorPvPCA.cpp	781
Error	2	error C3867: 'npc_escortAI::UpdateEscortAI': function call missing argument list; use '&npc_escortAI::UpdateEscortAI' to create a pointer to member	C:\Users\Brendans\Documents\GitHub\TrinityCore\src\server\scripts\OutdoorPvP\OutdoorPvPCA.cpp	781

I know it has something to do with the updating Ai function.I just want to figure out if I should remove the update ai and put only the esscortai.Thanks again and heres the part of the code.

Code:
void UpdateAI(uint32 diff)
            {
               npc_escortAI::UpdateEscortAI
            }
 

Tommy

Founder
Thank you! I figured out some of the errors on my own but you helped so much :)just while I'm looking around to try and fix this.I have this right now

Code:
Error    1    error C2143: syntax error : missing ';' before '}'    C:\Users\Brendans\Documents\GitHub\TrinityCore\src\server\scripts\OutdoorPvP\OutdoorPvPCA.cpp    781
Error    2    error C3867: 'npc_escortAI::UpdateEscortAI': function call missing argument list; use '&npc_escortAI::UpdateEscortAI' to create a pointer to member    C:\Users\Brendans\Documents\GitHub\TrinityCore\src\server\scripts\OutdoorPvP\OutdoorPvPCA.cpp    781

I know it has something to do with the updating Ai function.I just want to figure out if I should remove the update ai and put only the esscortai.Thanks again and heres the part of the code.

Code:
void UpdateAI(uint32 diff)
            {
               npc_escortAI::UpdateEscortAI
            }

Why are you calling UpdateEscortAI in UpdateAI? The UpdateEscortAI function:

Code:
void UpdateEscortAI(const uint32 diff)
{
}

Is exactly like UpdateAI if you're inheriting the 'npc_escortAI' class. So there is no need for you using the UpdateAI function when you can use the UpdateEscortAI that is for npc_escortAI.
 
Status
Not open for further replies.
Top