View Single Post
Old 16.02.2006, 23:57   #15
Sdw
Архивный участник
 
Join Date: Sep 2005
Posts: 150
Default

Heee, I don't know if I have really understand what you want to make but...

Code:
cuse class subclass : citizen <- using fnHi for main page then
parameter_define_begin
string fnLowLevel "classchanger_denied.htm"
parameter_define_end

handler 32   //  MENU_SELECTED
   variable_begin
      "ask"
      "reply"
      "talker"
      "myself"
      "_choiceN"
      "_code"
      "_from_choice"
   variable_end
   push_event   //  ask
   push_const 100
   add
   fetch_i
   push_const 1
   equal
   branch_false L70000
   push_event   //  reply
   push_const 104
   add
   fetch_i
   push_const 0
   equal
   branch_false L70000
L70001
   shift_sp 1
   push_event // talker
   push_const 32
   add
   fetch_i // level
   push_const 888
   add
   fetch_i
   push_const 75
   greater_equal
   branch_false L70003
   jmp xxx // jumping to the next step
L70003
   shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
   push_parameter fnLowLevel
   func_call 43   //  func[ShowPage]
   shift_sp -2
   shift_sp -1
   jmp L70000
L70000
call_super
handler_end
class_end
checking reply from the 1st html (Let's say we have "<a action="bypass -h menu_select?ask=1&reply=0">Change class</a>" on first html) then check level. If the level isn't right, it shows classchanger_denied.htm, otherwise, well here nothing at all ^^
Sdw is offline