generated from Jaysyn/ModuleTemplate
72 lines
2.2 KiB
Plaintext
72 lines
2.2 KiB
Plaintext
string sDeny;
|
|
|
|
//Goes OnPerceived of a creature
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetLastPerceived();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (!GetLastPerceptionSeen()) return;
|
|
if (GetItemPossessedBy(oPC, "wsm_it_peep")== OBJECT_INVALID)
|
|
{
|
|
sDeny="Hey!! Nothing is for free!!";
|
|
|
|
SendMessageToPC(oPC, sDeny);
|
|
|
|
return;
|
|
}
|
|
|
|
object oTarget;
|
|
oTarget = GetObjectByTag("wsm_it_peep");
|
|
|
|
DestroyObject(oTarget, 0.0);
|
|
|
|
ActionSpeakString("Sit back and enjoy the show!");
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_TAUNT,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_BOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY2,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_BOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_WORSHIP,1.0);
|
|
|
|
string sMyCloths4 = "MyCloths4";
|
|
object oMyCloths4 = GetObjectByTag(sMyCloths4);
|
|
ActionEquipItem(oMyCloths4, INVENTORY_SLOT_CHEST);
|
|
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_TAUNT,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_BOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY2,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_BOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_WORSHIP,1.0);
|
|
|
|
string sMyCloths5 = "MyCloths5";
|
|
object oMyCloths5 = GetObjectByTag(sMyCloths5);
|
|
ActionEquipItem(oMyCloths5, INVENTORY_SLOT_CHEST);
|
|
|
|
ActionPlayAnimation(ANIMATION_LOOPING_WORSHIP,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY2,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_GET_MID,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_TALK_FORCEFUL,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_BOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_TALK_PLEADING,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_TAUNT,1.0);
|
|
ActionPlayAnimation(ANIMATION_LOOPING_WORSHIP,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY2,1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_BOW,1.0);
|
|
|
|
string sMyCloths3 = "MyCloths3";
|
|
object oMyCloths3 = GetObjectByTag(sMyCloths3);
|
|
ActionEquipItem(oMyCloths3, INVENTORY_SLOT_CHEST);
|
|
|
|
ActionSpeakString("Hope you got your moneys worth!");
|
|
|
|
}
|
|
|