generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
43
_module/nss/d_dam.nss
Normal file
43
_module/nss/d_dam.nss
Normal file
@@ -0,0 +1,43 @@
|
||||
void DeathStats2 (object oPC)
|
||||
{
|
||||
object oMod = GetModule();
|
||||
int oDam = GetTotalDamageDealt();
|
||||
|
||||
int oHWhit = GetLocalInt(oPC, "pc_HWhit");
|
||||
int oHit = GetLocalInt(oPC, "pc_hit");
|
||||
int oPCdam = GetLocalInt(oPC, "player_dd");
|
||||
int oHWdam = GetLocalInt(oPC, "pc_HWdam");
|
||||
int iCHhit = GetLocalInt(oPC, "pc_CHhit");
|
||||
int iCHdam = GetLocalInt(oPC, "pc_CHdam");
|
||||
int iSFhit = GetLocalInt(oPC, "pc_SFhit");
|
||||
int iSFdam = GetLocalInt(oPC, "pc_SFdam");
|
||||
int iFBhit = GetLocalInt(oPC, "pc_FBhit");
|
||||
int iFBdam = GetLocalInt(oPC, "pc_FBdam");
|
||||
int iArenaChall = GetLocalInt(oMod, "challenge");
|
||||
int iSFDuel = GetLocalInt(oMod, "duel_on");
|
||||
int iFinalBattle = GetLocalInt(oPC, "final_on");
|
||||
|
||||
SetLocalInt(oPC, "pc_HWhit", ++oHWhit);
|
||||
SetLocalInt(oPC, "pc_hit", ++oHit);
|
||||
SetLocalInt(oPC, "player_dd", oPCdam+oDam);
|
||||
SetLocalInt(oPC, "pc_HWdam", oHWdam+oDam);
|
||||
|
||||
if (iArenaChall==1)
|
||||
{
|
||||
SetLocalInt(oPC, "pc_CHhit", ++iCHhit);
|
||||
SetLocalInt(oPC, "pc_CHdam", iCHdam+oDam);
|
||||
}
|
||||
if (iSFDuel==1)
|
||||
{
|
||||
SetLocalInt(oPC, "pc_SFhit", ++iSFhit);
|
||||
SetLocalInt(oPC, "pc_SFdam", iSFdam+oDam);
|
||||
|
||||
}
|
||||
if (iFinalBattle==1)
|
||||
{
|
||||
SetLocalInt(oPC, "pc_FBhit", ++iFBhit);
|
||||
SetLocalInt(oPC, "pc_FBdam", iFBdam+oDam);
|
||||
}
|
||||
}
|
||||
|
||||
//void main(){}
|
||||
Reference in New Issue
Block a user