Tweaked & Bugfixed "Spider's Captive" quest. Breathed a little life into the Warrior's Guild. Changed several quest rewards to be split among the party. Full compile.
82 lines
2.7 KiB
Plaintext
82 lines
2.7 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Name ra_rnd_drill_hb
|
|
//:: Copyright (c) 2022 Project RATDOG
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Default Heartbeat script
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Keith Warner
|
|
//:: Created On: June 11/03
|
|
//:://////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
//:: Declare major variables
|
|
|
|
int iRollTen = d10(1);
|
|
|
|
string sSayThis;
|
|
|
|
if(GetArea(OBJECT_SELF) == GetObjectByTag("WarriorsGuild"))
|
|
{
|
|
if(d100(1) > 71) //:: 30% chance to fire
|
|
{
|
|
if(iRollTen != 0) //:: Sanity check
|
|
{
|
|
switch(iRollTen) //:: Switch
|
|
{
|
|
case 1:
|
|
sSayThis = "Attack!";
|
|
break;
|
|
|
|
case 2:
|
|
sSayThis = "Fight you maggots!!";
|
|
break;
|
|
|
|
case 3:
|
|
sSayThis = "My dead grandmother can fight better than you weaklings!";
|
|
break;
|
|
|
|
case 4:
|
|
sSayThis = "You call that a counter strike!?!";
|
|
break;
|
|
|
|
case 5:
|
|
sSayThis = "You boys are all going to die the next time the orcs attack, you know that?";
|
|
break;
|
|
|
|
case 6:
|
|
sSayThis = "If that dummy was a hobgoblin, you'd be dead private!!";
|
|
break;
|
|
|
|
case 7:
|
|
sSayThis = "Yes, yes! Like that, very good!";
|
|
break;
|
|
|
|
case 8:
|
|
sSayThis = "Come on, come on!!";
|
|
break;
|
|
|
|
case 9:
|
|
sSayThis = "Harder! Hit that dummy like it owes you money!";
|
|
break;
|
|
|
|
case 10:
|
|
sSayThis = "Attack, fight!";
|
|
break;
|
|
}
|
|
|
|
ActionSpeakString(sSayThis); //:: Make the NPC talk
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
//:: Execute the default NPC OnHeartbeat script
|
|
ExecuteScript("nw_c2_default1", OBJECT_SELF);
|
|
|
|
//:: Execute the PRC NPC OnHeartbeat script
|
|
ExecuteScript("prc_npc_hb", OBJECT_SELF);
|
|
}
|