2023-08-08 16:22:17 -04:00
|
|
|
void Stolen(object oPlayer)
|
|
|
|
{
|
|
|
|
object oStolen = GetFirstItemInInventory(oPlayer);
|
|
|
|
while (oStolen != OBJECT_INVALID)
|
|
|
|
{
|
|
|
|
if (GetStolenFlag(oStolen) == TRUE)
|
|
|
|
{
|
|
|
|
SetDroppableFlag(oStolen,TRUE);
|
|
|
|
}
|
|
|
|
oStolen = GetNextItemInInventory(oPlayer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void Skull(object oPlayer)
|
|
|
|
{
|
|
|
|
object oPlayer = GetLastPlayerDied();
|
|
|
|
object oArea = GetArea(oPlayer);
|
|
|
|
vector vDead= GetPosition(oPlayer);
|
|
|
|
float fFace = GetFacing(oPlayer);
|
|
|
|
|
|
|
|
vector vNew;
|
|
|
|
vNew.x=vDead.x+1.0;
|
|
|
|
vNew.y=vDead.y+1.0;
|
|
|
|
vNew.z=vDead.z;
|
|
|
|
object oItem = GetItemPossessedBy(oPlayer, "skullball");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
|
|
{
|
|
|
|
DestroyObject(oItem);
|
|
|
|
location lLoc = Location( oArea, vNew, fFace);
|
|
|
|
CreateObject(OBJECT_TYPE_ITEM,"skullball", lLoc);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#include "nw_i0_plot"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oPlayer = GetLastPlayerDied();
|
|
|
|
SetLocalInt(oPlayer, "PCDead", 1);
|
|
|
|
|
|
|
|
string sArea = GetTag(GetArea(oPlayer));
|
|
|
|
if (sArea == "TheStadium") Skull(oPlayer);
|
|
|
|
|
|
|
|
if (sArea == "DrowDungeon")
|
|
|
|
{
|
|
|
|
SetLocalInt(oPlayer,"dungeon_died",1);
|
|
|
|
}
|
|
|
|
|
|
|
|
Stolen(oPlayer);
|
|
|
|
|
|
|
|
AssignCommand(oPlayer, ClearAllActions());
|
2023-08-15 18:54:31 -05:00
|
|
|
AssignCommand(oPlayer, SurrenderToEnemies());
|
2023-08-08 16:22:17 -04:00
|
|
|
SetStandardFactionReputation(STANDARD_FACTION_COMMONER, 74, oPlayer);
|
|
|
|
SetStandardFactionReputation(STANDARD_FACTION_MERCHANT, 74, oPlayer);
|
|
|
|
SetStandardFactionReputation(STANDARD_FACTION_DEFENDER, 74, oPlayer);
|
|
|
|
|
|
|
|
if(HasItem(oPlayer,"fairy_bottle") == TRUE)
|
|
|
|
{
|
|
|
|
DelayCommand(3.0,ExecuteScript("fairy_rez_bottle",oPlayer));
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2023-08-15 18:54:31 -05:00
|
|
|
//SurrenderToEnemies();
|
|
|
|
DelayCommand(3.0,ExecuteScript("prc_ondeath",oPlayer));
|
2023-08-08 16:22:17 -04:00
|
|
|
}
|
|
|
|
}
|