Adauga o functie pt quest-uri de npc.is_stone & npc.is_boss pentru a verifica direct din quest aceste lucruri.
Exemplu folosire:
Code:
when kill with not npc.is_pc() begin
if npc.is_boss() then
mysql_direct_query("INSERT INTO log.boss_kill_log (player_id, boss_id, map_index, player_x, player_y, player_level, time) VALUES ("..pc.get_player_id()..", "..npc.get_race()..", "..pc.get_map_index()..", "..pc.get_local_x()..", "..pc.get_local_y()..", "..pc.get_level()..", NOW())")
end
if npc.is_stone() then
mysql_direct_query("INSERT INTO log.stone_kill_log (player_id, boss_id, map_index, player_x, player_y, player_level, time) VALUES ("..pc.get_player_id()..", "..npc.get_race()..", "..pc.get_map_index()..", "..pc.get_local_x()..", "..pc.get_local_y()..", "..pc.get_level()..", NOW())")
endIn questlua_quest.cpp adaugam:
Compilam si adaugam in quest_functions din serverul nostru:
Code:
npc.is_stone
npc.is_boss

la acest mesaj și conținutul se va afișa automat.

