Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 16.04.2007, 16:46   #2
alysia
Архивный участник
 
Join Date: Apr 2005
Posts: 151
Default

1) You can add in the citizen AI a small attack code but be careful you have to test it because some AI must be change after it (for example the Bingo chest from the Clan Level 4 quest)



this is for the citizen AI
There is a random value because I think that sometime it can be also a mistake that a player attack a NPC so there is only a 30% chance that the NPC cast the skill (just change it)

Code:
handler 1 28	//  ATTACKED
	variable_begin
		"attacker"
		"damage"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_const 100
	func_call 218169344	//  func[Rand]
	shift_sp -1
	push_const 30
	less
	branch_false L4829800
L4829001
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  attacker
	push_const 48
	add
	fetch_i
	push_const add_skill_here
	push_const 0
	push_const 1
	push_const 1000000
	func_call 184877074	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L4829800
	call_super
handler_end
class_end

to the second thing I can't help you because I have also no idea about this, I think this must be coded but you must also obey that when a player dies he can be really mad when his weapon/armor disapear after 60seconds on the ground
alysia 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 08:56.