Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 10.07.2005, 19:32   #1
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default [sharing]ai for newbie helping system

I, torune, which is a feakin newbie in this forum contribute this ai to all you ppl out there. greetings

some ppl from ragezone or 99nets might know me, lol
Code:
class newbie_helper : citizen
parameter_define_begin

	int DDMagic1 321794
	int DDMagic2 308226

parameter_define_end

handler 0	//  NO_DESIRE
	variable_begin
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end
handler_end

handler 5	//  SEE_CREATURE
	variable_begin
		"creature"
		"i1"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	func_call 20	//  func[GetLifeTime]
	push_const 7
	greater
	push_reg_sp
	fetch_i
	branch_false L994083
	shift_sp 1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  sm
	push_const 2400
	add
	fetch_i
	func_call 177	//  func[InMyTerritory]
	shift_sp -1
	and
L994082
	branch_false L994087
L994083
	shift_sp 1
	push_event	//  creature
	push_const 68
	add
	fetch_i
	push_parameter DDMagic2
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L994087
	call_super
handler_end

class_end
btw: i am not able to upload any attachment, Digital, plz check out if the upload space is fulled.
torune 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 22:54.