Lua work - loading works, I think checking for sub works. Calling subs is in the beginning stages and binding is starting

This commit is contained in:
KimLS
2013-05-10 20:13:35 -07:00
parent 43d0350870
commit dc045591e4
18 changed files with 5917 additions and 63 deletions
+4 -2
View File
@@ -1425,6 +1425,10 @@ void Client::Death(Mob* killerMob, int32 damage, uint16 spell, SkillType attack_
if(dead)
return; //cant die more than once...
if(parse->EventPlayer(EVENT_DEATH, this, "", 0) <= 0.0) {
return;
}
int exploss;
mlog(COMBAT__HITS, "Fatal blow dealt by %s with %d damage, spell %d, skill %d", killerMob ? killerMob->GetName() : "Unknown", damage, spell, attack_skill);
@@ -1472,8 +1476,6 @@ void Client::Death(Mob* killerMob, int32 damage, uint16 spell, SkillType attack_
GetMerc()->Suspend();
}
parse->EventPlayer(EVENT_DEATH, this, "", 0);
if (killerMob != nullptr)
{
if (killerMob->IsNPC()) {