k I got a version of allowing resting at any
interval you want. Included is Tribes 2 Message of the day type deal. Let me
know if anyone knows how to pop up messages in a Windows type GUI.
K heres the deal. Edit Copy your creature armor for drow. Name the new item
DMUse and sets its tag to something you can type later. (I used fx_drowskin)
Then COPY the blueprint ref id.
Once you got that pop open module properties.
You want to replace OnClientEnter with
NWScript: #include "nw_i0_tool"
void main()
{
object oPC;
oPC = GetEnteringObject();
SendMessageToPC(oPC,"Welcome to the World of Moubsin. Quick rules: Player vrs Player is allowed but you are encouraged to group and go through the quests. This Modules is designed for level 1 characters, you should be level 5 when you complete this module. Please dont kill the npcs unless you really have to, instead try talking to them and do a quest or two. Have fun.");
if(!(HasItem(oPC, "fx_drowskin")))
{
object oItem = CreateItemOnObject("it_creitem056", oPC, 1);
AssignCommand(oPC, ActionEquipItem(oItem, INVENTORY_SLOT_CARMOUR));
}
else
{
}
}
You want to replace OnPlayerRest with
NWScript: #include "nw_i0_tool"
void main()
{
float fx_rest_time = 900.0;
float fx_rest_halftime = (fx_rest_time / 2.0);
if (GetLastRestEventType() == REST_EVENTTYPE_REST_STARTED)
{
object oPC = GetLastPCRested();
if(HasItem(oPC, "fx_drowskin"))
{
if (GetLocalInt(GetItemPossessedBy(oPC, "fx_drowskin"), "CanRest") == 1)
{
AssignCommand(oPC, ClearAllActions());
SendMessageToPC(oPC, "You are too well rested to sleep now. Wait a while and try again.");
}
else
{
SetLocalInt(GetItemPossessedBy(oPC, "fx_drowskin"), "CanRest", 1);
DelayCommand(fx_rest_halftime, SendMessageToPC(oPC, "You are starting to feel tired."));
DelayCommand(fx_rest_time, SendMessageToPC(oPC, "You are tired and should sleep soon."));
DelayCommand(fx_rest_time, SetLocalInt(GetItemPossessedBy(oPC, "fx_drowskin"), "CanRest", 0));
}
}
else
{
AssignCommand(oPC, ClearAllActions());
SendMessageToPC(oPC, "You cannot rest ever. There is sometype of error with your character. Please log out and log in to remedy the problem");
}
}
}
If you come up with some other ways to do this please post em.
|