183 lines
5.0 KiB
Plaintext
183 lines
5.0 KiB
Plaintext
void ModNow(object oItem, object oPC)
|
|
{
|
|
object oMod = GetModule();
|
|
int oDaxe = BASE_ITEM_DWARVENWARAXE;
|
|
int oRapier = BASE_ITEM_RAPIER;
|
|
int oLongsword = BASE_ITEM_LONGSWORD;
|
|
int oBastardsword = BASE_ITEM_BASTARDSWORD;
|
|
int oBattleaxe = BASE_ITEM_BATTLEAXE;
|
|
int oKukri = BASE_ITEM_KUKRI;
|
|
int oWarhammer = BASE_ITEM_WARHAMMER;
|
|
int oShortsword = BASE_ITEM_SHORTSWORD;
|
|
int oKama = BASE_ITEM_KAMA;
|
|
int oGreatsword = BASE_ITEM_GREATSWORD;
|
|
int oHelm = BASE_ITEM_HELMET;
|
|
int oBoots = BASE_ITEM_BOOTS;
|
|
int oBelt = BASE_ITEM_BELT;
|
|
int oAmulet = BASE_ITEM_AMULET;
|
|
int oRing = BASE_ITEM_RING;
|
|
int oCloak = BASE_ITEM_CLOAK;
|
|
int oArmour = BASE_ITEM_ARMOR;
|
|
int oBracer = BASE_ITEM_BRACER;
|
|
int oShield = BASE_ITEM_TOWERSHIELD;
|
|
int oGloves = BASE_ITEM_GLOVES;
|
|
int oLbow = BASE_ITEM_LONGBOW;
|
|
int oHcrossbow = BASE_ITEM_HEAVYCROSSBOW;
|
|
int oSbow = BASE_ITEM_SHORTBOW;
|
|
int oLcrossbow = BASE_ITEM_LIGHTCROSSBOW;
|
|
int oDbaxe = BASE_ITEM_DOUBLEAXE;
|
|
int oDsword = BASE_ITEM_TWOBLADEDSWORD;
|
|
int oWhip = BASE_ITEM_WHIP;
|
|
int oSickle = BASE_ITEM_SICKLE;
|
|
int oScythe = BASE_ITEM_SCYTHE;
|
|
int oMstar = BASE_ITEM_MORNINGSTAR;
|
|
int oQstaff = BASE_ITEM_QUARTERSTAFF;
|
|
int oScim = BASE_ITEM_SCIMITAR;
|
|
int oSpear = BASE_ITEM_SHORTSPEAR;
|
|
int oLflail = BASE_ITEM_LIGHTFLAIL;
|
|
int oHflail = BASE_ITEM_HEAVYFLAIL;
|
|
int oHberd = BASE_ITEM_HALBERD;
|
|
int oGaxe = BASE_ITEM_GREATAXE;
|
|
int oKatana = BASE_ITEM_KATANA;
|
|
int oLmace = BASE_ITEM_LIGHTMACE;
|
|
int oDmace = BASE_ITEM_DIREMACE;
|
|
int oDagg = BASE_ITEM_DAGGER;
|
|
int oBolt = BASE_ITEM_BOLT;
|
|
int oArrow = BASE_ITEM_ARROW;
|
|
int oStaff = BASE_ITEM_MAGICSTAFF;
|
|
|
|
SetLocalInt(oMod, "staff", 0);
|
|
|
|
int oCoin;
|
|
location iLocation = GetLocation(OBJECT_SELF);
|
|
int oSpell = SPELL_SHAPECHANGE;
|
|
oItem = GetFirstItemInInventory(OBJECT_SELF);
|
|
if (GetTag(oItem)=="pearl")
|
|
{
|
|
oItem = GetNextItemInInventory(OBJECT_SELF);
|
|
}
|
|
|
|
|
|
if ((GetBaseItemType(oItem)==oRapier)||
|
|
(GetBaseItemType(oItem)==oShortsword)||
|
|
(GetBaseItemType(oItem)==oLongsword)||
|
|
(GetBaseItemType(oItem)==oBastardsword)||
|
|
(GetBaseItemType(oItem)==oBattleaxe)||
|
|
(GetBaseItemType(oItem)==oKukri)||
|
|
(GetBaseItemType(oItem)==oWarhammer)||
|
|
(GetBaseItemType(oItem)==oKama)||
|
|
(GetBaseItemType(oItem)==oGreatsword)||
|
|
(GetBaseItemType(oItem)==oDaxe)||
|
|
(GetBaseItemType(oItem)==oLongsword)||
|
|
(GetBaseItemType(oItem)==oWhip)||
|
|
(GetBaseItemType(oItem)==oSickle)||
|
|
(GetBaseItemType(oItem)==oMstar)||
|
|
(GetBaseItemType(oItem)==oDbaxe)||
|
|
(GetBaseItemType(oItem)==oDsword)||
|
|
(GetBaseItemType(oItem)==oQstaff)||
|
|
(GetBaseItemType(oItem)==oScim)||
|
|
(GetBaseItemType(oItem)==oSpear)||
|
|
(GetBaseItemType(oItem)==oLflail)||
|
|
(GetBaseItemType(oItem)==oHflail)||
|
|
(GetBaseItemType(oItem)==oHberd)||
|
|
(GetBaseItemType(oItem)==oGaxe)||
|
|
(GetBaseItemType(oItem)==oKatana)||
|
|
(GetBaseItemType(oItem)==oLmace)||
|
|
(GetBaseItemType(oItem)==oDmace)||
|
|
(GetBaseItemType(oItem)==oDagg)||
|
|
(GetBaseItemType(oItem)==oStaff))
|
|
{
|
|
if (GetBaseItemType(oItem)==oStaff){SetLocalInt(oMod, "staff", 1);}
|
|
ActionStartConversation(oPC, "sundial", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oArmour)
|
|
{
|
|
ActionStartConversation(oPC, "armour", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oBelt)
|
|
{
|
|
ActionStartConversation(oPC, "belt", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oHelm)
|
|
{
|
|
ActionStartConversation(oPC, "helm", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oGloves)
|
|
{
|
|
ActionStartConversation(oPC, "gloves", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oAmulet)
|
|
{
|
|
ActionStartConversation(oPC, "amulet", TRUE, FALSE);
|
|
}
|
|
|
|
if (GetBaseItemType(oItem)==oBoots)
|
|
{
|
|
ActionStartConversation(oPC, "boots", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oRing)
|
|
{
|
|
ActionStartConversation(oPC, "ring", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oShield)
|
|
{
|
|
ActionStartConversation(oPC, "shield", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oCloak)
|
|
{
|
|
ActionStartConversation(oPC, "cloak", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oLcrossbow)
|
|
{
|
|
ActionStartConversation(oPC, "bow2", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oHcrossbow)
|
|
{
|
|
ActionStartConversation(oPC, "bow2", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oLbow)
|
|
{
|
|
ActionStartConversation(oPC, "bow", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oSbow)
|
|
{
|
|
ActionStartConversation(oPC, "bow", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
if (GetBaseItemType(oItem)==oBracer)
|
|
{
|
|
ActionStartConversation(oPC, "bracers", TRUE, FALSE);
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
//void main (){}
|