Initial commit
Initial commit.
This commit is contained in:
20
_module/nss/use_dummy.nss
Normal file
20
_module/nss/use_dummy.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user