View Single Post
Old 16.03.2006, 17:59   #2
KTPSMF
Архивный участник
 
Join Date: Oct 2005
Posts: 367
Default

i want to add this teleport to ai, if i add ai is not correct :/
maby soeone can help to insert it


Code:
class bw_litas : citizen
handler 32   // MENU_SELECTED
   variable_begin
      "talker"
      "ask"
      "reply"
      "fhtml0"
      "i0"
      "myself"
      "_choiceN"
      "_code"
      "_from_choice"
   variable_end
   push_event   //  ask
   push_const 100
   add
   fetch_i
   push_const 1
   negate
   equal
   push_reg_sp
   fetch_i
   branch_false L41913
   push_event   //  reply
   push_const 104
   add
   fetch_i
   push_const 1
   equal
   and
L41913
   branch_false L41932
L41914


   shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
   push_const 7504
   func_call 81   //  func[OwnItemCount]
   shift_sp -2
   push_const 0
   not_equal
   push_reg_sp
   fetch_i
   branch_true L41915
   shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
   push_const 7504
   func_call 81   //  func[OwnItemCount]
   shift_sp -2
   push_const 0
   not_equal
   or
   push_reg_sp
   fetch_i
   branch_true L41915
   shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
   push_const 7504
   func_call 81   //  func[OwnItemCount]
   shift_sp -2
   push_const 0
   not_equal
   or
   push_reg_sp
   fetch_i
   branch_true L41915
   shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
   push_const 7504
   func_call 81   //  func[OwnItemCount]
   shift_sp -2
   push_const 0
   not_equal
   or
L41915
   branch_false L41930
L41916
	shift_sp 1 
	push_event // talker 
	push_const 32 
	add 
	fetch_i 
	push_const 7504 // [tutorial_guide] 
	func_call 81 // func[OwnItemCount] 
	shift_sp -2 
	push_const 0 
	greater
	branch_false L900585 
	shift_sp 1 
	push_event // talker 
	push_const 32 
	add 
	fetch_i 
	push_const 7504 //[tutorial_guide] 
	push_const 1 
	func_call 80 // func[DeleteItem1] 
	shift_sp -3 
	shift_sp -1

   shift_sp 1
   push_event   //  fhtml0
   push_const 316
   add
   fetch_i
S8889.   "sitasyralitas.htm"
   push_string S8889
   func_call 84   //  func[FHTML_SetFileName]
   shift_sp -2
   shift_sp -1
   shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
   push_const 7504
   func_call 81   //  func[OwnItemCount]
   shift_sp -2
   push_const 0
   not_equal
   branch_false L41922
L41917
   shift_sp 1
   push_event   //  fhtml0
   push_const 316
   add
   fetch_i
S8890.   "event_level"
   push_string S8890
S8891.   "rabbit"
   push_string S8891
   func_call 87   //  func[FHTML_SetStr]
   shift_sp -3
   shift_sp -1
   shift_sp 1
   push_event   //  fhtml0
   push_const 316
   add
   fetch_i
S8892.   "sellid"
   push_string S8892
   push_const 84
   func_call 85   //  func[FHTML_SetInt]
   shift_sp -3
   shift_sp -1
   jump L41929
L41922
   shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
   push_const 7504
   func_call 81   //  func[OwnItemCount]
   shift_sp -2
   push_const 0
   not_equal
   branch_false L41924
L41923
   shift_sp 1
   push_event   //  fhtml0
   push_const 316
   add
   fetch_i
S8893.   "event_level"
   push_string S8893
S8894.   "hyena"
   push_string S8894
   func_call 87   //  func[FHTML_SetStr]
   shift_sp -3
   shift_sp -1
   shift_sp 1
   push_event   //  fhtml0
   push_const 316
   add
   fetch_i
S8895.   "sellid"
   push_string S8895
   push_const 85
   func_call 85   //  func[FHTML_SetInt]
   shift_sp -3
   shift_sp -1
   jump L41928
L41924
   shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
   push_const 7504
   func_call 81   //  func[OwnItemCount]
   shift_sp -2
   push_const 0
   not_equal
   branch_false L41926
L41925
   shift_sp 1
   push_event   //  fhtml0
   push_const 316
   add
   fetch_i
S8896.   "event_level"
   push_string S8896
S8897.   "fox"
   push_string S8897
   func_call 87   //  func[FHTML_SetStr]
   shift_sp -3
   shift_sp -1
   shift_sp 1
   push_event   //  fhtml0
   push_const 316
   add
   fetch_i
S8898.   "sellid"
   push_string S8898
   push_const 86
   func_call 85   //  func[FHTML_SetInt]
   shift_sp -3
   shift_sp -1
   jump L41927
L41926
   shift_sp 1
   push_event   //  fhtml0
   push_const 316
   add
   fetch_i
S8899.   "event_level"
   push_string S8899
S8900.   "wolf"
   push_string S8900
   func_call 87   //  func[FHTML_SetStr]
   shift_sp -3
   shift_sp -1
   shift_sp 1
   push_event   //  fhtml0
   push_const 316
   add
   fetch_i
S8901.   "sellid"
   push_string S8901
   push_const 87
   func_call 85   //  func[FHTML_SetInt]
   shift_sp -3
   shift_sp -1
L41927
L41928
L41929
   shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
   push_event   //  fhtml0
   push_const 316
   add
   fetch_i
   func_call 88   //  func[ShowFHTML]
   shift_sp -2
   shift_sp -1
   jump L41931
L41930
   shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
S8902.   "neralituantwh.htm"
   push_string S8902
   func_call 43   //  func[ShowPage]
   shift_sp -2
   shift_sp -1
L41931
L41932
handler_end

class_end

that is teleport list :

Code:
property_define_begin
   telposlist_begin Position
      {"CASTLE OWNER MEET PLACE"; 130253; 59198; 3600; 50000; 4 }
      {"Giants Cave"; 188956; 61020; -7232; 12000; 4 }
      {"Enterence of Lair"; 133630; 114371; -3712; 12000; 0 }
      {"Tower of Isolense"; 120881; 16164; -5104; 9000; 0 }
      {"Necropolis of Sacrifice"; -41777; 205934; -3344; 19000; 4 }
      {"Forbidden Gateway"; 184803; 20980; -3168; 12000; 4 }
      {"Cruma Tower"; 17279; 114169; -3440; 9000; 4 }
      {"Wasteland"; -17646; 205927; -3664; 9000; 4 }
      {"Execution Ground"; 37598; 148200; -3680; 9000; 0 }
      {"Orc Baracs"; -88755; 107139; -3568; 9000; 0 }
      {"Ruins of Despair"; -20119; 137514; -3896; 9000; 0 }
      {"Cruma Tower"; 17279; 114169; -3440; 9000; 4 }
      {"Death Pass"; 70554; 118296; -3664; 9000; 0 }
      {"Lair Hunt Place"; 152089; 113715; -5512; 12000; 0 }
      {"Gludin Town"; -80696; 149894; -3040; 9000; 4 }
      {"Gludio Town"; -12914; 122794; -3112; 9000; 4 }
      {"Giran"; 83337; 148081; -3424; 9000; 4 }
      {"Dion Town"; 18820; 145544; -3096; 9000; 4 }
      {"Oren"; 82751; 53574; -1488; 9000; 0 }
      {"Aden Town"; 147342; 25831; -2008; 9000; 0 }
      {"Hunter Village"; 117088; 76931; -2688; 9000; 0 }
      {"Elven Village"; 46957; 51422; -2976; 9000; 0 }
      {"Talking Island"; -85985; 241277; -3728; 9000; 0 }
      {"Dwarven Village"; 115508; -178564; -928; 9000; 0 }        
   telposlist_end
property_define_end
KTPSMF is offline