Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2003, 12:59 PM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default New NPC Wander Type

I have found the need in my work with the Scorpious2k Server for a different NPC wander type.

The type I have come up with I call single run. In this type, the NPC starts at waypoint 1 and travels in sequence to the last waypoint. When he reaches it, he depops and respawns (after the specified respawn time) to start again at waypoint 1.

In order to implement this wandertype, you MUST have installed the fixes I describe in http://www.eqemulator.net/forums/viewtopic.php?t=10204

Here are the changes. In mobAI.cpp Mob::CalculateNewWaypoint() after
Code:
	switch (wandertype)
	{
	case 0: //Circular
		if (reached_end)
			cur_wp = 0;
		else
			cur_wp = cur_wp + 1;
		break;
	case 1: //Random 5
		if (ranmax > 5)
			ranmax = 5;
		if (ranmax2 > 5)
			ranmax2 = 5;
		cur_wp = cur_wp + rand()%(ranmax+1) - rand()%(ranmax2+1);
		break;
	case 2: //Random
			cur_wp = (rand()%max_wp) + (rand()%2);
		break;
	case 3: //Patrol
		if (reached_end)
			patrol = 1;
		else if (reached_beginning)
			patrol = 0;
		if (patrol == 1)
			cur_wp = cur_wp - 1;
		else
			cur_wp = cur_wp + 1;
		break;
add
Code:
	case 4:	// single run
		cur_wp = cur_wp + 1;
		break;
in Mob::AI_Process() change the line (this is in the fix I gave for wandering bug fix)
Code:
								if (gridno < 50 && cur_wp == max_wp)
to read
Code:
							if (wandertype == 4 && cur_wp == max_wp)
That's it. You will now have wander type 4 - single run.

If I can find somewhere to host it, I will make the final version of this available for download.
__________________
Maybe I should try making one of these servers...
Reply With Quote
  #2  
Old 09-21-2003, 02:58 PM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

neat.

I can fuzzily remember a few of them in EQlive.
Reply With Quote
  #3  
Old 09-21-2003, 10:22 PM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

The most obvious use for this type would be boats, which travel across the ocean, deliver their passengers and then depop only to appear on the other side to do it all again.

As I thought about it, another use came to mind. Rare mobs could use this. They spawn, move around a bit, depop and then don't respawn for a while (could be hours even).

Quests could also use this, making the finding of a quest char more of a challenge.
__________________
Maybe I should try making one of these servers...
Reply With Quote
  #4  
Old 09-22-2003, 12:56 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

This would be awesome for use with quests !

'The Kracken comes to attack the city! Prepare the defenses!'
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #5  
Old 09-24-2003, 08:32 AM
Bunga
Sarnak
 
Join Date: Jan 2002
Posts: 58
Default

Like the Ghoul Messenger in WK
Reply With Quote
  #6  
Old 09-24-2003, 11:07 AM
jawa21
Sarnak
 
Join Date: Aug 2003
Posts: 30
Default

Or the orc runner in Butcherblock
Reply With Quote
  #7  
Old 09-24-2003, 11:54 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

Now that I think about it.. did boats poof? Last I knew that had a path. From zone line to zone line, then zone line to zone line. Do they start when it triggers the last one poofed, or does it really go through the zones, like Wizard Familiars.

As for the ones that are obvious, yeah. the goblin and orc messangers. I remember those dudes. :P
Reply With Quote
  #8  
Old 09-24-2003, 03:16 PM
Purcevil
Sarnak
 
Join Date: Apr 2003
Location: Varies, from hotspot to hotspot
Posts: 33
Default

there are tons of them in live.

shawl quests, ring quests, epics....

cool cool
__________________
History is written by the victorious, facts often do not play a part.
Reply With Quote
  #9  
Old 09-24-2003, 05:24 PM
sup2069's Avatar
sup2069
Hill Giant
 
Join Date: Jan 2003
Location: Louisville, KY
Posts: 111
Default

Quote:
Originally Posted by Darkyth
Now that I think about it.. did boats poof? Last I knew that had a path. From zone line to zone line, then zone line to zone line. Do they start when it triggers the last one poofed, or does it really go through the zones, like Wizard Familiars.

As for the ones that are obvious, yeah. the goblin and orc messangers. I remember those dudes. :P

Nah zoneline to zoneline if Im correct.

Thats why it would take forever waiting for the damn boat pre-luclin, pre-pop. If they did depop and repop at the begining then the waiting time would be quick.


Correct me if I am wrong
Reply With Quote
  #10  
Old 09-24-2003, 05:28 PM
sup2069's Avatar
sup2069
Hill Giant
 
Join Date: Jan 2003
Location: Louisville, KY
Posts: 111
Default

Quote:
Originally Posted by Darkyth
Now that I think about it.. did boats poof? Last I knew that had a path. From zone line to zone line, then zone line to zone line. Do they start when it triggers the last one poofed, or does it really go through the zones, like Wizard Familiars.

As for the ones that are obvious, yeah. the goblin and orc messangers. I remember those dudes. :P

Nah zoneline to zoneline if Im correct.

Thats why it would take forever waiting for the damn boat pre-luclin, pre-pop. If they did depop and repop at the begining then the waiting time would be quick.


Correct me if I am wrong
Reply With Quote
  #11  
Old 09-24-2003, 09:15 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Just because they depopped and repopped doesn't mean it was instant respawn after depopping.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

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


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3