Area Changes and other fixes
Added CCOH Fixed some on death issues Fixed the gaurd Added Server Enty/ooc changed some areas back to original craftable
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
#include "udk_include"
|
||||
#include "ww_inc_on_act"
|
||||
void main()
|
||||
{
|
||||
EnableDyeKitMenu();
|
||||
ExecuteScript(GetTag(GetItemActivated()),OBJECT_SELF);
|
||||
|
||||
object oItem = GetItemActivated();
|
||||
object oActivator = GetItemActivator();
|
||||
location lTarget = GetItemActivatedTargetLocation();
|
||||
@@ -11,66 +8,6 @@ void main()
|
||||
string oCreatureTag = "";
|
||||
int oMaxGoldValue = 0;
|
||||
string oNewItemTag = "";
|
||||
object oUser=GetItemActivator();
|
||||
location lLoc=GetItemActivatedTargetLocation();
|
||||
string sTag=GetTag(oItem);
|
||||
object oMod=GetModule();
|
||||
string sPre=GetLocalString(oMod,"OnAct_Pre");
|
||||
string sPreScript=GetLocalString(oMod,"OnAct_PreScript");
|
||||
int nN=GetStringLength(sPre);
|
||||
//SendMessageToPC(GetItemActivator(),"uni_onactivateit:'"+GetResRef(oItem)+"'.");
|
||||
if (nN<1)
|
||||
{ // check for prefix waypoint
|
||||
oMod=GetWaypointByTag("UNI_ACTIVATEPRE");
|
||||
if (oMod!=OBJECT_INVALID) sPre=GetName(oMod);
|
||||
oMod=GetWaypointByTag("UNI_ACTIVATEPRES");
|
||||
if (oMod!=OBJECT_INVALID) sPreScript=GetName(oMod);
|
||||
nN=GetStringLength(sPre);
|
||||
//SendMessageToPC(GetItemActivator()," prefix waypoint check: nN="+IntToString(nN)+".");
|
||||
} // check for prefix waypoint
|
||||
if (GetStringLeft(GetTag(oItem),4)=="DH2_") ExecuteScript("desertheat2",OBJECT_SELF);
|
||||
else
|
||||
{ // not a special
|
||||
//SendMessageToPC(GetItemActivator()," not special.");
|
||||
if (nN>0&&sPre!="")
|
||||
{ // check for special prefix
|
||||
if (GetStringLeft(GetTag(oItem),nN)==sPre) ExecuteScript(sPreScript,OBJECT_SELF);
|
||||
else {nN=-1;}
|
||||
//SendMessageToPC(GetItemActivator()," Check for special prefix:"+IntToString(nN)+".");
|
||||
} // check for special prefix
|
||||
if (nN<1)
|
||||
{ // special prefix was not used
|
||||
sPre=GetResRef(oItem);
|
||||
//SendMessageToPC(GetItemActivator()," Special prefix not used.");
|
||||
if (GetStringLength(sPre)>0)
|
||||
{ // has res ref
|
||||
//SendMessageToPC(GetItemActivator()," resref:'"+sPre+"'.");
|
||||
ExecuteScript(sPre,OBJECT_SELF);
|
||||
} // has res ref
|
||||
else
|
||||
{ // use tag
|
||||
sPre=GetTag(oItem);
|
||||
if (GetStringLength(sPre)>16) sPre=GetStringLeft(sPre,16);
|
||||
//SendMessageToPC(GetItemActivator()," tag:'"+sPre+"'.");
|
||||
ExecuteScript(sPre,OBJECT_SELF);
|
||||
} // use tag
|
||||
oMod=GetWaypointByTag("UNI_ACTIVATE");
|
||||
if (oMod!=OBJECT_INVALID) ExecuteScript(GetName(oMod),OBJECT_SELF);
|
||||
} // special prefix was not used
|
||||
} // not a special
|
||||
if(sTag=="kpbwand")
|
||||
{
|
||||
if (GetIsDM(oUser) == TRUE)
|
||||
{
|
||||
AssignCommand(oUser, ActionStartConversation(oUser, "kpb_wand", TRUE));
|
||||
}
|
||||
else
|
||||
{
|
||||
DestroyObject(oItem);
|
||||
SendMessageToPC(oUser, "I am not an immortal, and I cannot use that item!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(GetStringLeft(GetTag(oItem),4)=="SEED")
|
||||
{
|
||||
@@ -151,6 +88,13 @@ void main()
|
||||
if (GetTag(oItem) == "SEED_HOPS")ExecuteScript("_plant_seed",oActivator);
|
||||
if (GetTag(oItem) == "SEED_SUGARCANE")ExecuteScript("_plant_seed2",oActivator);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (GetTag(oItem)=="FOOD_EAROFCORN")
|
||||
|
Reference in New Issue
Block a user