SphereCommunity
Specifying a Paging Option in sphere_help.scp - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Specifying a Paging Option in sphere_help.scp (/Thread-Specifying-a-Paging-Option-in-sphere-help-scp)



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

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



RE: Specifying a Paging Option in sphere_help.scp - RanXerox - 05-20-2012 03:24 AM

Move your two pagestatus checking IF statements below the memory stuck if statement