MMD_PRC8/_module/nss/use_dummy.nss
Jaysyn904 adeff59f82 Initial commit
Initial commit.
2024-08-02 23:18:00 -04:00

21 lines
737 B
Plaintext

void main()
{
object oPC = GetLastDamager(OBJECT_SELF);
//object oWep = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND,oPC);
//int iType = GetBaseItemType(oWep);
//if (iType != BASE_ITEM_DART || BASE_ITEM_GRENADE || BASE_ITEM_HEAVYCROSSBOW || BASE_ITEM_LIGHTCROSSBOW
//|| BASE_ITEM_LONGBOW ||BASE_ITEM_SHORTBOW ||BASE_ITEM_SHURIKEN || BASE_ITEM_SLING || BASE_ITEM_THROWINGAXE)
//return;
int iDamage = GetDamageDealtByType(DAMAGE_TYPE_BASE_WEAPON);
GiveXPToCreature(oPC,iDamage);
string sDamage = IntToString(iDamage);
if (iDamage >= 15)
{
FloatingTextStringOnCreature("A solid hit. "+sDamage+" XP awarded. 50 XP bonus awarded.",oPC);
GiveXPToCreature(oPC,50);
}
else
FloatingTextStringOnCreature(sDamage+" XP awarded.",oPC);
}