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 02-27-2004, 03:07 PM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default quest/waypoints

well i was thinking up some quests to put on my server and i am wondering if it would be possible to add a quest function that makes npcs follow a grid AFTER the required items/text/etc. has been done, or maybe a waypoint type that doesn't acctivate until it is told to in a quest file..
Reply With Quote
  #2  
Old 02-27-2004, 05:26 PM
wize_one
Dragon
 
Join Date: Jan 2004
Location: LasShithole, NV
Posts: 520
Default

if i didnt know anybetter i smell 8th shawl burning
__________________
Perfect quote from another site: it's immature pricks who refuse to read the numerous stickies in every forum pointing out what to do and what not to do that get flamed. Grow up and learn to do your fucking homework before opening your cake hole, junior. EQEmu doesn't like you anymore, and that's why you're getting errors. So go away.
__________________
Reply With Quote
  #3  
Old 02-27-2004, 11:47 PM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default Re: quest/waypoints

Quote:
Originally Posted by Shadow-Wolf
well i was thinking up some quests to put on my server and i am wondering if it would be possible to add a quest function that makes npcs follow a grid AFTER the required items/text/etc. has been done, or maybe a waypoint type that doesn't acctivate until it is told to in a quest file..
Interesting that you should mention this. Its on my quest command wish list. Here are the commands I would like to see added:

start(<gridid>,<waypoint>) - puts mob on a grid at a specific wp and starts it moving
pause(<time>) - causes mob to pause at the place where it is (does not have to be a wp) for time specified
halt(<time>) - stops mob from moving if time > 0 halt occurs after that time
resume(<time>) - causes mob to continue (after halt) if time > 0 the resume occurs after the wait for that time
moveto(<x>,<y>,<z>,<time>) - mob moves to x,y,z position (overrides grid) pauses for time - generates event_wp when it gets there
opendoor(<doorid>,<locked>) - causes specified door to open. locked is 1/0 and specifies if door can be opened if locked
facetarget() - makes npc turn and face target
signal(<npcid>) - generates a new event called event_signal for the specified npc (lets one npc signal another) you could use quest globals to pass information to it
zsignal(<npcid>,<zone>) - like signal above, but signals npc in another zone

I think that's everything on my wish list... I'm sure I forgot something
__________________
Maybe I should try making one of these servers...
Reply With Quote
  #4  
Old 02-28-2004, 01:26 PM
smogo
Discordant
 
Join Date: Jan 2004
Location: 47
Posts: 339
Default

Quote:
facetarget() - makes npc turn and face target
Yes ! no more hey, it's you i'm talking to, do you hear ?situations.
We could get them go crazy with 2 or 3 plyrs talking to them simultaneously, aggravate them and have them shout "Now STOP ! one at a time", dropping whatever they hold. It would be a great team quest "nasty kids have brother Estle loose his nerves, and get his prayer beads". That's team building ! J/K

I'm a bit confused about moving, and grids, in general. Does the logic belong to zone.exe through the DB, quests scripts, ... Could you plese point to, or post to explain how you 'd use your wish list, if it's not 'know-how secret' ?

@shadow-wolf : in the meanwhile, how about despawning the mob after the event, and spawning a new, with same types (name, race, level, ...everything) but with different spawn2. The new mob would have the pathgrid intended for the former one AFTER the required items/text/etc. has been done
Reply With Quote
  #5  
Old 02-28-2004, 04:23 PM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

Quote:
Originally Posted by smogo
I'm a bit confused about moving, and grids, in general. Does the logic belong to zone.exe through the DB, quests scripts, ...
Its all done in mobai.cpp. The waypoints are loaded and the destination wp is saved in the mob. The entire zone loops through all entities - doors,npcs,clients, etc - processing each in turn.

When it processes an npc, it calculates the distince it will move based on the speed. It determines the direction it is going and calculates the new position where it should be, sending a packet to the client telling it to move the npc to that position.

When it reaches a wp, it sets a timer and waits until the time is up. This means that during that time, each time it processes the npc, it does not move it. Once the time is up, it determines the next destination wp, loads that into the npc and starts moving to it.

Quote:
Could you plese point to, or post to explain how you 'd use your wish list, if it's not 'know-how secret' ?
A couple of examples might be... after talking with a player, the npc does a moveto() towards a door. When it arrives, the event_wp is triggered. It then does an opendoor(). Turns to the player using facetarget() and tells the player "what you are looking for is in here".

Another one might be use signal() and targlobal(). By setting a var to a specific value and sending it to the other npc, then doing a signal, you can create a conversation between 2 or more npcs. On event_signal, it checks the global var and does a say() depending on what is in it. Then it does a targlobal() back with a signal to that npc - who checks the var and does a say() based on what is in it... and back and forth.

zsignal() would be used by boats among other things ... but we won't go into that yet.
__________________
Maybe I should try making one of these servers...
Reply With Quote
  #6  
Old 02-28-2004, 05:09 PM
smogo
Discordant
 
Join Date: Jan 2004
Location: 47
Posts: 339
Default

Thanks for taking time of a complete answer ; i was asking because i could not find out what EQEMu would improve to beyond pathgrid. That works well for patrol and random encounters, but there have been some discussions about mapping, path finding, mobs fleeing, Mob AI, and i could not read a definite option.

Furthermore, i like the signal() and zsignal() very much.
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 02:09 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3