generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
39
_module/nss/divine_ammo.nss
Normal file
39
_module/nss/divine_ammo.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName divine_ammo
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 4/12/2004 7:17:54 PM
|
||||
//:://////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
object oMod = GetModule();
|
||||
object oPC = GetPCSpeaker();
|
||||
int oMode = GetLocalInt(oMod, "gamemode");
|
||||
object oItem3, oItem2, oItem1, oItem4;
|
||||
oItem3 = GetItemPossessedBy(oPC, "divine_note");
|
||||
oItem2 = GetItemPossessedBy(oPC, "div_key");
|
||||
oItem1 = GetItemPossessedBy(oPC, "divine_talisman2");
|
||||
oItem4 = GetItemPossessedBy(oPC, "dark_talisman2");
|
||||
if (GetIsObjectValid(oItem2))
|
||||
DestroyObject(oItem2);
|
||||
if (GetIsObjectValid(oItem3))
|
||||
DestroyObject(oItem3);
|
||||
if (GetIsObjectValid(oItem1))
|
||||
DestroyObject(oItem1);
|
||||
if (GetIsObjectValid(oItem4))
|
||||
DestroyObject(oItem4);
|
||||
|
||||
if (oMode!=1)
|
||||
CreateItemOnObject("divine_talisman", oPC);
|
||||
else
|
||||
CreateItemOnObject("dark_talisman", oPC);
|
||||
|
||||
|
||||
SetLocalInt(GetPCSpeaker(), "ranged_div", 1);
|
||||
object oStore = GetNearestObjectByTag("divine_ammo");
|
||||
if(GetObjectType(oStore) == OBJECT_TYPE_STORE)
|
||||
OpenStore(oStore, GetPCSpeaker());
|
||||
else
|
||||
ActionSpeakStringByStrRef(53090, TALKVOLUME_TALK);
|
||||
}
|
||||
Reference in New Issue
Block a user