generated from Jaysyn/ModuleTemplate
110 lines
2.3 KiB
Plaintext
110 lines
2.3 KiB
Plaintext
//
|
|
//
|
|
//
|
|
#include "zep_inc_phenos"
|
|
void main()
|
|
{
|
|
object oItem = GetItemActivated();
|
|
object oActivator = GetItemActivator();
|
|
location lActivator = GetLocation(oActivator);
|
|
string sItemTag = GetTag(oItem);
|
|
location lTarget = GetItemActivatedTargetLocation();
|
|
|
|
|
|
|
|
if (sItemTag == "SummonHorse")
|
|
{
|
|
ExecuteScript("hench_pony", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "SummonHorse2")
|
|
{
|
|
ExecuteScript("hench_pony2", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "SummonHorse3")
|
|
{
|
|
ExecuteScript("hench_pony3", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "SummonHorse4")
|
|
{
|
|
ExecuteScript("hench_pony4", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "SummonHorse5")
|
|
{
|
|
ExecuteScript("hench_pony5", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "SummonHorse6")
|
|
{
|
|
ExecuteScript("hench_pony6", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "SummonHorse7")
|
|
{
|
|
ExecuteScript("hench_pony7", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "SummonHorse8")
|
|
{
|
|
ExecuteScript("hench_pony8", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "horse_dismt")
|
|
{
|
|
object oPC = GetItemActivator();
|
|
if (GetTag (GetItemActivated ()) == "horse_dismt") {zep_Dismount (oPC, "horse_dismt");}
|
|
return;
|
|
}
|
|
|
|
if (GetTag(oItem) == "Horse_Management")
|
|
{
|
|
AssignCommand(oActivator, ActionStartConversation(oActivator, "horse_magmt", TRUE));
|
|
return;
|
|
}
|
|
|
|
if (GetTag(oItem) == "fly_widget")
|
|
{
|
|
AssignCommand(oActivator, ActionStartConversation(oActivator, "fly_control", TRUE));
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "SummonCamel")
|
|
{
|
|
ExecuteScript("hench_pack1", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "SummonpkHorse")
|
|
{
|
|
ExecuteScript("hench_pack2", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "SummonpkOx")
|
|
{
|
|
ExecuteScript("hench_pack3", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
if (sItemTag == "Summonpkpony")
|
|
{
|
|
ExecuteScript("hench_pack4", OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
|
|
ExecuteScript(sItemTag, OBJECT_SELF);
|
|
}
|
|
|