Quote:
Originally Posted by where_love2003
but what can i do if char not in academy ?
any help pleas
|
I think there is a stored procedure to create a training camp. So you could check a table which is a list of all the training camps on the server, see if the character's name is listed
pseduo-sql: declare @MyCounter int;
SELECT @MyCounter = COUNT(*)
FROM (SELECT CharName16 FROM ListofTrainingCampsTable where CharName16 LIKE @CharNameOfAcademyLeader)
IF @MyCounter =0 then exec _create_a_training_camp(@CharNameOfAcademyLeader)
update***
I got asked a question: "but what about @CharNameOfAcademyLeader ? "
answer:
i think this variable will be filled with a real character name as a result of the query to find the best unique killer on the server:
@CharNameOfAcademyLeader --> pseduo-sql: Select top 1 player of unique kills