[HELP]NPC level in quest

04/29/2011 15:19 Dupl3xx#1
.
04/29/2011 19:42 .$Terra$.#2
pc.level < npc.get_level

I think it doesn´t work because of the script.

npc.get_level

=

when npc get level up!?

I think thats the problem ...
04/29/2011 20:24 .Delta#3
try it like this
PHP Code:
when kill begin
if npc.is_pc() and npc.empire != pc.empire and pc.get_level() < npc.get_level() then
local count 
pc.getqf("state") - 1
if count <= 100 then
pc
.setqf("state"count)
q.set_counter("Zbývá "count)
end
end 
i hope that is only an excerpt out of your whole quest ;)
04/29/2011 20:33 √π.#4
npc.get_level ist keine Funktion, von daher wirds nicht gehen.
npc.get_level isn't a function, so it will not work.
04/29/2011 20:44 √π.#5
I had this problem too and didn't find an solution. Probably the condition save the name or whatever from the traget and you could find out his level with pc.get_level(kill) or something. But this is just an exception!
04/29/2011 21:06 √π.#6
Yes, there must be an declaration for m_level like
PHP Code:
local m_level=find_pc_by_name(eingabe
But the condition
PHP Code:
when kill begin 
didn't save the name from the target so you can't find out his level.
04/30/2011 15:54 √π.#7
No, there isn't an solution