Quote:
Originally Posted by Mijago
If you have npc.get_vid():
Code:
when kill with npc.is_pc() begin
local me = pc.select(npc.get_vid())
do
-- do whatever you want to do
end
pc.select(me)
end
So you can check, whether he dies in pvp..
|
What you gave me is
almost what I need, but there is a major difference between your solution and my target.
Your code detects player which I kill, I need to write quest, wich tells me that I'm dead. Precisely say:
This triggers action when my character kills something (mob or player)
I'd like to do something like:
1. I'm on a quest to find spider leg, but npc gave me condition to complete quest
"Remember, you can't die in battle with any spider"
I aqquire spider leg and everyting is ok, but, when spider kills me, mission is failed.