The idea is put a single line entry delay to cater for each case firing, thanks:)
void main()
{
object oPC = GetLastPerceived();
if (!GetIsPC(oPC)) return;
if (!GetIsInCombat() && GetLastPerceptionSeen() && !IsInConversation(OBJECT_SELF))
{
string sSpeakString;
switch (d6())
{
case 1: sSpeakString = "Oh look what I found in my bag."; break;
case 2: sSpeakString = "Hey Mr, did you drop this?"; break;
case 3: sSpeakString = "I am so bored"; break;
case 4: sSpeakString = "Any Dwagons to hunt here?"; break;
case 5: sSpeakString = "That ring is nice and shiny!"; break;
case 6: sSpeakString = "Hey Fizban, how about some fireworks?"; break;
}
SpeakString(sSpeakString, TALKVOLUME_TALK);
}
Modifié par Rabstir, 29 août 2011 - 08:41 .





Retour en haut






