Quest - fixed unsourced localised emote (quest::echo)
Originally mentioned here: http://www.projecteq.net/phpBB2/viewtopic.php?t=7289
Summary of above: Neither quest::me or quest::echo works at the moment. I think quest::me is specific to something, but I can't tell what. The quest::echo code - where does this message go exactly? ~line 193 questmgr.cpp: Code:
void QuestManager::echo(const char *str) { I left the quest::me function as it was in case it was intentional: Code:
void QuestManager::me(const char *str) { Code:
$entity_list->MessageClose($npc, 1, 200, 15, "You hear a whisper in the wind as if something calls to you from the darkness."); Diffs below. Now, I've had this compiled, tested and working, but I am a complete novice at C coding - I tend to stick to script languages. If someone spots something really stupid, please let me know. questmgr.cpp Code:
--- questmgr.cpp 2009-04-23 11:26:57.000000000 +0100 Code:
--- questmgr.h 2009-04-23 11:26:57.000000000 +0100 Code:
--- parser.cpp 2009-04-23 11:26:57.000000000 +0100 Code:
--- perlparser.cpp 2009-04-23 11:26:57.000000000 +0100 |
Quote:
|
I can accept that. However, the quest documentation alluded to it being a localised emote, rather than something for potential debugging purposes. I'd seen it used as a localised emote in quest files, hence why I tried to fix it. My own method of debugging is to use quest::say so I know something is happening.
|
All the docs I've checked state that the echo method prints its string to the console.
I don't see any obvious bugs in the me method. One thing to consider when using this method is that initiator is going to be the client who started execution of the script - location of the initiator is the center of the area where the emote is visible. You could change me to center the emote on the NPC involved in the quest which is probably the behavior most would expect: Code:
void QuestManager::me(const char *str) { |
This has been committed in Revision 454.
|
All times are GMT -4. The time now is 06:17 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.