#include "version.h" #ifdef _ANGEL_SUMMON #include #include #include #include // shan #include #include #include #include #include "common.h" #include "char_base.h" #include "char_data.h" #include "char.h" #include "lssproto_serv.h" #include "item.h" #include "item_event.h" #include "buf.h" #include "object.h" #include "map_deal.h" #include "saacproto_cli.h" #include "readmap.h" #include "handletime.h" #include "char_event.h" #include "npccreate.h" #include "addressbook.h" #include "item_event.h" #include "magic_base.h" #include "magic.h" #include "chatmagic.h" #include "configfile.h" #include "log.h" #include "anim_tbl.h" #include "encount.h" #include "battle.h" #include "pet_skill.h" #include "util.h" #include "enemy.h" #include "npcutil.h" #include "pet.h" #include "family.h" #include "defend.h" #include "npcserver.h" struct MissionInfo missionlist[MAXMISSION]; int mission_num =0; struct MissionTable missiontable[MAXMISSIONTABLE]; //#define ANGELITEM 2884 //20701 //使者的信物 道具编号 //#define HEROITEM 2885 //20702 //勇者的信物 道具编号 extern int AngelReady; char* getMissionNameInfo( int charaindex, char* nameinfo) { sprintf( nameinfo, "%s:%s", CHAR_getChar( charaindex, CHAR_CDKEY), CHAR_getChar( charaindex, CHAR_NAME) ); return nameinfo; } int checkIfAngel( int charaindex) { int i; char nameinfo[512]; //sprintf( nameinfo, "%s:%s", CHAR_getChar( charaindex, CHAR_CDKEY), CHAR_getChar( charaindex, CHAR_NAME) ); getMissionNameInfo( charaindex, nameinfo); for( i =0; i