Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
147 lines
2.4 KiB
Plaintext
147 lines
2.4 KiB
Plaintext
////::///////////////////////////////////////////////
|
|
//:: FileName jw_cleric_gvitem
|
|
//:://////////////////////////////////////////////
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Script Wizard
|
|
//:: Created On: 17/08/2002 18:15:25
|
|
//:://////////////////////////////////////////////
|
|
void main()
|
|
{
|
|
// Give the speaker some XP
|
|
GiveXPToCreature(GetPCSpeaker(), 250);
|
|
|
|
int nCounter;
|
|
object oReward;
|
|
|
|
string sItem;
|
|
|
|
int nRandom;
|
|
|
|
for (nCounter=1;nCounter<=1;nCounter++)
|
|
|
|
|
|
{
|
|
nRandom=(Random(30)+1);
|
|
switch(nRandom)
|
|
{
|
|
case 1: sItem="jw_thur_shield";
|
|
break;
|
|
|
|
case 2: sItem="jw_hunter_spear";
|
|
break;
|
|
|
|
case 3: sItem="jw_silver_bow";
|
|
break;
|
|
|
|
case 4: sItem="jw_blood_stone";
|
|
break;
|
|
|
|
case 5: sItem="jw_bright_flower";
|
|
break;
|
|
|
|
case 6: sItem="jw_bright_grass";
|
|
break;
|
|
|
|
case 7: sItem="jw_bright_wheat";
|
|
break;
|
|
|
|
case 8: sItem="jw_stench_thay";
|
|
break;
|
|
|
|
case 9: sItem="jw_oath_bracer";
|
|
break;
|
|
|
|
case 10: sItem="jw_token_tempus";
|
|
break;
|
|
|
|
case 11: sItem="jw_token_waukeen";
|
|
break;
|
|
|
|
case 12: sItem="jw_spell_tower1";
|
|
break;
|
|
|
|
case 13: sItem="jw_belt_shimmer";
|
|
break;
|
|
|
|
case 14: sItem="jw_belt_shimmer";
|
|
break;
|
|
|
|
case 15: sItem="jw_boots_reflex2";
|
|
break;
|
|
|
|
case 16: sItem="jw_cloak_elf";
|
|
break;
|
|
|
|
case 17: sItem="jw_cloak_fort1";
|
|
break;
|
|
|
|
case 18: sItem="jw_am_will2";
|
|
break;
|
|
|
|
case 19: sItem="jw_ring_fort2";
|
|
break;
|
|
|
|
|
|
case 20: sItem="jw_club_glad1";
|
|
break;
|
|
|
|
|
|
case 21: sItem="jw_dire_iron1";
|
|
break;
|
|
|
|
|
|
case 22: sItem="jw_wand_sleep";
|
|
break;
|
|
|
|
case 23: sItem="jw_dart_acid";
|
|
break;
|
|
|
|
case 24: sItem="jw_taxe_black";
|
|
break;
|
|
|
|
case 25: sItem="jw_dart_stun";
|
|
break;
|
|
|
|
case 26: sItem="jw_taxe_fire";
|
|
break;
|
|
|
|
case 27: sItem="jw_shuri_sand";
|
|
break;
|
|
|
|
case 28: sItem="jw_dart_ice";
|
|
break;
|
|
|
|
case 29: sItem="jw_shuri_oiy";
|
|
break;
|
|
|
|
case 30: sItem="jw_sbow_scar";
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (sItem=="jw_shuri_oiy"||sItem=="jw_dart_ice"||sItem=="jw_shuri_sand"||sItem=="jw_taxe_fire"||sItem=="jw_dart_stun"||sItem=="jw_taxe_black"||sItem=="jw_dart_acid")
|
|
{
|
|
// Give the speaker the items
|
|
oReward= CreateItemOnObject(sItem, GetPCSpeaker(), 99);
|
|
SetIdentified(oReward,1);
|
|
}
|
|
else
|
|
{
|
|
|
|
// Give the speaker the items
|
|
oReward= CreateItemOnObject(sItem, GetPCSpeaker(), 1);
|
|
SetIdentified(oReward,1);
|
|
}
|
|
}
|
|
|
|
// Remove items from the player's inventory
|
|
object oItemToTake;
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "jw_ogre_head");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
DestroyObject(oItemToTake);
|
|
}
|