EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Simple wolf actions (https://www.eqemulator.org/forums/showthread.php?t=1719)

Malevolent 05-07-2002 05:48 AM

Simple wolf actions
 
Stuff in NPC::Process() somewhere

Code:

        /********************************************
        Wolf actions
        ********************************************/

        if (this->GetRace()==42)
        if (!IsEngaged() && !ismovinghome())       
        if (rand()%2950==2) {
                switch(rand()%10){
                case 0:
                       
                case 1:
                case 3:
                case 5:
                case 7:
                case 9:
                        this->DoAnim(33);
                        entity_list.MessageClose(this,true,50,MT_Emote, "%s scratches their ears.", GetName());
                        this->DoAnim(38);
                        break;
                case 2:
                case 4:
                case 6:
                case 8:
                case 10:
                        this->DoAnim(33);
                        this->DoAnim(38);

                        switch (rand()%5){

                        case 0:
                        case 1:
                                entity_list.Message(0, MT_Emote, "%s howls loudly.", GetName());                       
                                break;
                        case 2:
                        case 3:
                                entity_list.Message(0, MT_Emote, "%s howls softly into the air.", GetName());                       
                                break;
                        case 4:
                        case 5:
                        default:
                                entity_list.Message(0, MT_Emote, "%s begins to howl.", GetName());                       
                                break;
                        }
                        break;
               
                default:
                        break;
                }
        }



All times are GMT -4. The time now is 01:55 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.