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-nmm7 (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-nmm7 (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-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Specifying a Paging Option in sphere_help.scp
Author Message
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #1
Specifying a Paging Option in sphere_help.scp
How do I allow players to still be able to chose the "Stuck" Option while having the pagestatus checks still apply to the other paging options?

Code:
[DIALOG d_help_menu BUTTON]
ON=0
sysmessage @035,,2 501235
return 1

ON=1 8
doswitch <argn>
local.blank
local.reason = General
local.reason = Stuck
local.reason = Bug
local.reason = Counselor
local.reason = Suggestion
local.reason = Other
local.reason = Verbal_Harassment
local.reason = Physical_Harassment
enddo
if <SRC.FINDID(I_MEMORY_PAGESTATUS).MORE> == 1
SRC.SYSMESSAGE @COLOR_TEXT_RED Your paging options have been Permanately Restricted.
return 1
endif

if <SRC.FINDID(I_MEMORY_PAGESTATUS)> && <SRC.FINDID(I_MEMORY_PAGESTATUS).MORE> == 0
SRC.SYSMESSAGE @COLOR_TEXT_RED Your paging options have been restricted.
SRC.SYSMESSAGE @COLOR_TEXT_RED You have <SRC.FINDID(I_MEMORY_PAGESTATUS).TIMER> Seconds before your Ban is lifted.
return 1
endif

if <src.restest i_memory_stuck_town>
src.sysmessageua 022 0 0 1 You have already chosen a stuck option
return 1

elif <src.restest i_memory_stuck_shrine>
src.sysmessageua 022 0 0 1 You have already chosen a stuck option
return 1

elif <argn> == 2 // Need to Add statement to check if they have used the stuck menu more than 3 times a day.
src.closealldialogs
src.sdialog d_stuck_proceed
return 1
else
ctag0.page.reason = <local.reason>
sdialog d_page_request
return 1
endif
endif

ON=9
version
on=10
information
on=11
src.closealldialogs
src.sdialog d_commands
05-19-2012 03:20 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Specifying a Paging Option in sphere_help.scp - Reflex - 05-19-2012 03:20 PM

Forum Jump:


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