The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SCP Quest Script - need help
Author Message
phibertap
Apprentice
*

Posts: 9
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2013
Reputation: 0



Post: #6
RE: SCP Quest Script - need help
So I edited the sphere_quest_quests.scp, changing the quest info for quest 500, removing the LOCALIZED info.

Code:
QUEST_500_NAME Gold? it's elementary!
QUEST_500_TEXT Won't you help me? I am but a poor miner, trying to make a living, but these golden elementals keep coming from the ground, and I am too weak to fight them...
QUEST_500_TEXTCOMPLETE Wow thank you, now perhaps I can get back to mining.
QUEST_500_TEXTUNCOMPLETE Kill the golden elementals for me
QUEST_500_TEXTREFUSE Hmph!
QUEST_500_OBJECTIVEAMOUNT 1
QUEST_500_OBJECTIVE1_TYPE 2
QUEST_500_OBJECTIVE1 4 gold_ele
QUEST_500_PRIZES 1
QUEST_500_PRIZETYPE1 1 //item
QUEST_500_PRIZEID1 tm_questbagtreasure A bag of treasure.

And the quest now shows up. The errors on the console continue I'm afraid. Sad

I found the EHNUM Function:

Code:
[FUNCTION EHNUM]
IF (STRMATCH(0*,<ARGV[0]>))
RETURN 1
ELSE
RETURN 0
ENDIF

sounds like in the most simple terms of I can safely state, the script when building the dialog, it will look at the script definitions within the sphere_quest_quests.scp file, find out if the quest is based upon a cliloc type or a string type, then it will create the proper dialog system to display. It uses the ehnum function to do the test to see if its cliloc or not.

Line 365
Code:
if <def0.quest_<dtag0.quest<dlocal._for>.id>_namelocalized>

is the 1st spot where I get the error, so I wonder if there is a better way to do this.

Anyway, still mucking around with this.

PT
10-25-2013 03:04 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
SCP Quest Script - need help - phibertap - 10-24-2013, 02:54 PM
RE: SCP Quest Script - need help - XuN - 10-24-2013, 03:44 PM
RE: SCP Quest Script - need help - phibertap - 10-25-2013 03:04 PM
RE: SCP Quest Script - need help - XuN - 10-25-2013, 05:25 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)