Hi… cold you help me about this ?:
1) I use this as triigger on death bad boys , but i have meny invocaded creatures INDEPEDENTS
//Put this script OnDeath
void main()
{
object oPC = GetLastKiller();
while (GetIsObjectValid(GetMaster(oPC)))
- {*
- oPC=GetMaster(oPC);*
- }*
if (!GetIsPC(oPC)) return;
}
Coud i change it runs just when the monster is killed, but not by me or henchman?
2) On death I use this:
//Una variada seleccion de objetos al morir .
void main()
{
object oPC = GetLastKiller();
while (GetIsObjectValid(GetMaster(oPC)))
- {*
- oPC=GetMaster(oPC);*
- }*
if (!GetIsPC(oPC)) return;
if (d100()>50)
- return;*
object oTarget;
object oSpawn;
location lTarget;
-
oTarget = OBJECT_SELF;*
-
lTarget = GetLocation(oTarget);*
-
oSpawn = CreateObject(OBJECT_TYPE_ITEM, “nw_it_picks002”, lTarget);*
-
if (d100()>50)*
-
return;*
-
oTarget = OBJECT_SELF;*
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_ITEM, “it_sparscr006”, lTarget);
-
if (d100()>50)*
-
return;*
-
oTarget = OBJECT_SELF;*
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_ITEM, “it_spdvscr005”, lTarget)
}
As you see, it have a posiblity of create several item… ¿Could it drop this especif item aleatory instead?
You know:
or, or…or
----- —-----
3) ¿Could i have mi adventure chest, the way if a drop in , other chest in other zone contain it?
THANKS : )