On Guard Behavior
Some fun guard behavior tweaks:
Random animations and sayings. I've attached a sample script file that I use in rivervale and the complete changed over wesquests that i've been using. You'll need to tweak npc.h Code:
/****************************************************** Code:
/**************************************** Code:
/ By changing 'name' in the quest file, you could also have town criers, etc. --MV |
That's cool! I think I'm going to have to log onto your server some time just to see all the neat things you're doing :)
The one comment I have is that it might be better to add a function isGaurd() to the NPC class. This function would just do what your if clause does right now (strstr(getName(), "Gaurd") || ...), but could be easily modified in the future if a gaurd field is added or something. |
All times are GMT -4. The time now is 04:43 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.