Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 22.01.2006, 14:09   #1
dayne411
Архивный участник
 
Join Date: Jan 2006
Posts: 26
Default Subclass compilation?

Since it seems so many are looking for a subclass system of some sort, i figured maybe some others would be interested in compiling one to share amongst the community. My personal preferance would be one with stacking skills and interracial changes, from what i understand the easiest to script correctly also =)

Code:
class class_changer : default_npc
handler 3	//  TALKED
	variable_begin
		"talker"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S379.	"classchanger.htm"
	push_string S379
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
handler_end

handler 32	//  MENU_SELECTED
	variable_begin
		"talker"
		"ask"
		"reply"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 512
	negate
	equal
	branch_false L2132
L2131
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_event	//  reply
	push_const 104
	add
	fetch_i
	func_call 144	//  func[ClassChange]
	shift_sp -2
	shift_sp -1
L2132
handler_end
from my very little understanding of the ai.obj this snipit looks like it can easily be molded into a system of my previous description.

Sorry for having such small contribution to this, i am more than confused.
dayne411 is offline  
Old 22.01.2006, 18:09   #2
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

The one ur talking about it has already been done ages ago, but didn't got shared.
Flamestrike is offline  
Old 22.01.2006, 19:29   #3
dayne411
Архивный участник
 
Join Date: Jan 2006
Posts: 26
Default

yea thats my point, i figured maybe as a community we could compile one for share =S
dayne411 is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:14.