生成脚本项目
作者:菜菜
教学下载
http://www.pcsay.cn/99game/AS教学三.CHM
第一步: 打开G:\as\ascent\src\scripts\scripts2005
择release 程序
后点生成
出错解决方案,听说用VS2003不会出错。VS2005好象真的出错了。
未声明的标识符~
错误显示:..\Raid_ZulGurub.cpp(325) : error C2065: “
CN_VENOXIS” : 未声明的标识符
error C2653: “VenoxisAI” : 不是类或命名空间名称
error C2065: “Create” : 未声明的标识符
代码是:
void SetupZulGurub(ScriptMgr * mgr)
{
mgr->
register_creature_script(CN_JEKLIK, &JeklikAI::Create);
mgr->
register_creature_script(
CN_VENOXIS, &VenoxisAI::Create);
}
解决方案:
/*
Mar'li has two main forms, like the other bosses in Zul'Gurub.
She starts off in her troll form where she can spawn adds and cast 30 yard AoE poison.
These spider adds quickly gain strength and size if not killed quickly.
When she transforms into her spider form she will web everyone standing near her in place and charge.
As soon as she webs everyone she will attack the person with the highest aggro that has not been webbed (usually a healer if they are out of range.)
?/
需要把第169行的问号改为星号
或把它注释掉
//
mgr->
register_creature_script(
CN_VENOXIS, &VenoxisAI::Create);
最后生成的程序