#include "spawner" #include "moditem2" //itemproperty ipAdd; void ModWeapon(object oItem, object oPC) { /*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 oCoin; location iLocation = GetLocation(OBJECT_SELF); int oSpell = SPELL_SHAPECHANGE; */ int oCoin; oItem = GetFirstItemInInventory(OBJECT_SELF); if ((GetTag(oItem)=="pearl")||(GetTag(oItem)=="coin1")) { if (GetTag(oItem)=="pearl") { oCoin=1; } else { oCoin=2; } oItem=GetNextItemInInventory(OBJECT_SELF); ModNow(oItem, oCoin, oPC); return; } if ((GetTag(oItem)!="pearl")&&(GetTag(oItem)!="coin1")) { oItem=GetNextItemInInventory(OBJECT_SELF); if (GetTag(oItem)=="pearl") { oCoin=1; } else { oCoin=2; } oItem=GetFirstItemInInventory(OBJECT_SELF); ModNow(oItem, oCoin, oPC); return; } } //void main () {} //if (GetBaseItemType(oItem)==oRapier) {SetCustomToken(20, "Rapier");} //if (GetBaseItemType(oItem)==oShortsword) {SetCustomToken(20, "Short Sword");} // if (GetBaseItemType(oItem)==oLongsword) {SetCustomToken(20, "Long Sword");} // if (GetBaseItemType(oItem)==oBastardsword) {SetCustomToken(20, "Bastard Sword");} // if (GetBaseItemType(oItem)==oBattleaxe) {SetCustomToken(20, "Battle Axe");} // if (GetBaseItemType(oItem)==oKukri) {SetCustomToken(20, "Kukri");} // if (GetBaseItemType(oItem)==oWarhammer) {SetCustomToken(20, "War Hammer");} // if (GetBaseItemType(oItem)==oKama) {SetCustomToken(20, "Kama");} // if (GetBaseItemType(oItem)==oGreatsword) {SetCustomToken(20, "Great Sword");} // if (GetBaseItemType(oItem)==oDaxe) {SetCustomToken(20, "Dwarven War Axe");} /*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))&&(oCoin==1)) { ActionStartConversation(oPC, "sundial", TRUE, FALSE); } 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))&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oArmour)&&(oCoin==1)) { ActionStartConversation(oPC, "armour", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oArmour)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oBelt)&&(oCoin==1)) { ActionStartConversation(oPC, "belt", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oBelt)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oHelm)&&(oCoin==1)) { ActionStartConversation(oPC, "helm", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oHelm)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oGloves)&&(oCoin==1)) { ActionStartConversation(oPC, "gloves", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oGloves)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oAmulet)&&(oCoin==1)) { ActionStartConversation(oPC, "amulet", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oAmulet)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oBoots)&&(oCoin==1)) { ActionStartConversation(oPC, "boots", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oBoots)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oRing)&&(oCoin==1)) { ActionStartConversation(oPC, "ring", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oRing)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oShield)&&(oCoin==1)) { ActionStartConversation(oPC, "shield", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oShield)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oCloak)&&(oCoin==1)) { ActionStartConversation(oPC, "cloak", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oCloak)&&(oCoin==2)) { ActionStartConversation(oPC, "damage_red", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oLcrossbow)&&(oCoin==1)) { ActionStartConversation(oPC, "crossbow", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oLcrossbow)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oHcrossbow)&&(oCoin==1)) { ActionStartConversation(oPC, "crossbow", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oHcrossbow)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oLbow)&&(oCoin==1)) { ActionStartConversation(oPC, "bow", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oLbow)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oSbow)&&(oCoin==1)) { ActionStartConversation(oPC, "bow", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oSbow)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } if ((GetBaseItemType(oItem)==oBracer)&&(oCoin==1)) { ActionStartConversation(oPC, "bracers", TRUE, FALSE); } if ((GetBaseItemType(oItem)==oBracer)&&(oCoin==2)) { FloatingTextStringOnCreature ("You can't use a gold arena token on this item", oPC); } } //oItem = GetItemInSlot(INVENTORY_SLOT_HEAD, oTarget); // SetPlotFlag(oItem, TRUE); // ipAdd = ItemPropertyACBonus(8); // IPSafeAddItemProperty(oItem, ipAdd);