28 lines
426 B
Plaintext
28 lines
426 B
Plaintext
#include "prc_inc_racial"
|
|
|
|
void main()
|
|
{
|
|
object oPC;
|
|
|
|
oPC = GetItemActivator();
|
|
|
|
int iIsDwarf = ( MyPRCGetRacialType( oPC ) == RACIAL_TYPE_DWARF );
|
|
|
|
object oTarget;
|
|
oTarget = GetItemActivatedTarget();
|
|
|
|
if ( ! iIsDwarf )
|
|
{
|
|
effect eEffect;
|
|
eEffect = EffectBlindness();
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 30.0f);
|
|
}
|
|
else
|
|
{
|
|
AssignCommand( oPC, ActionSpeakString( "*burp* aaaah!" ) );
|
|
}
|
|
|
|
}
|
|
|