class ai_recom_class_cheker1 : default_npc {
parameter:
int knight_pack_10 = 15194;
int magic_pack_10 = 15195;
int warrior_pack_10 = 15196;
int rogue_pack_10 = 15197;
int kamael_pack_10 = 15198;
int orcf_pack_10 = 15199;
int orcm_pack_10 = 15200;
int erlk_pack_10 = 40359;
int erse_pack_10 = 40360;
int ticket_pack_10 = 15210;
handler:
EventHandler CREATED(i0, c0) {
c0 = GetCreatureFromID(myself.sm.summoner_id);
if (IsNullCreature(c0) == @FALSE) {
if (IsInCategory(@recom_knight_group, c0.occupation) == @TRUE) {
DeleteItem1(c0, ticket_pack_10, 1);
GiveItem1(c0, knight_pack_10, 1);
} else if (IsInCategory(@recom_magic_group, c0.occupation) == @TRUE) {
DeleteItem1(c0, ticket_pack_10, 1);
GiveItem1(c0, magic_pack_10, 1);
} else if (IsInCategory(@recom_warrior_group, c0.occupation) == @TRUE) {
DeleteItem1(c0, ticket_pack_10, 1);
GiveItem1(c0, warrior_pack_10, 1);
} else if (IsInCategory(@recom_rogue_group, c0.occupation) == @TRUE) {
DeleteItem1(c0, ticket_pack_10, 1);
GiveItem1(c0, rogue_pack_10, 1);
} else if (IsInCategory(@recom_kamael_group, c0.occupation) == @TRUE) {
DeleteItem1(c0, ticket_pack_10, 1);
GiveItem1(c0, kamael_pack_10, 1);
} else if (IsInCategory(@recom_orcf_group, c0.occupation) == @TRUE) {
DeleteItem1(c0, ticket_pack_10, 1);
GiveItem1(c0, orcf_pack_10, 1);
} else if (IsInCategory(@recom_orcm_group, c0.occupation) == @TRUE) {
DeleteItem1(c0, ticket_pack_10, 1);
GiveItem1(c0, orcm_pack_10, 1);
} else if (c0.occupation == @marauder || c0.occupation == @lenker || c0.occupation == @strato_lenker) {
DeleteItem1(c0, ticket_pack_10, 1);
GiveItem1(c0, erlk_pack_10, 1);
} else if (c0.occupation == @menace || c0.occupation == @storm_menace || c0.occupation == @sayhas_seer) {
DeleteItem1(c0, ticket_pack_10, 1);
GiveItem1(c0, erse_pack_10, 1);
}
}
AddTimerEx(2001, 30000);
}
EventHandler TIMER_FIRED_EX(timer_id, i0, c0) {
if (timer_id == 2001) {
Despawn();
}
}
}