generated from Jaysyn/ModuleTemplate
72 lines
2.3 KiB
Plaintext
72 lines
2.3 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 sMyCloths9 = "MyCloths9";
|
|
object oMyCloths9 = GetObjectByTag(sMyCloths9);
|
|
ActionEquipItem(oMyCloths9, 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 sMyCloths10 = "MyCloths10";
|
|
object oMyCloths10 = GetObjectByTag(sMyCloths10);
|
|
ActionEquipItem(oMyCloths10, 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 sMyCloths11 = "MyCloths11";
|
|
object oMyCloths11 = GetObjectByTag(sMyCloths11);
|
|
ActionEquipItem(oMyCloths11, INVENTORY_SLOT_CHEST);
|
|
|
|
ActionSpeakString("Hope you got your moneys worth!");
|
|
|
|
}
|
|
|