Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 18.07.2007, 08:59   #1
chacina
Архивный участник
 
Join Date: Nov 2006
Posts: 28
Default

heroic_berserker is wrong, give alot of atkspd and castspd, 30k +
chacina is offline  
Old 18.07.2007, 22:32   #2
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

Quote:
Originally Posted by chacina View Post
heroic_berserker is wrong, give alot of atkspd and castspd, 30k +
On AtkSpeed and CastSpeed controlers, use ;per instead of ;diff , or play with the values until you get the correct ones. ;diff is not "linear", so if you put "30;diff", you might be giving 300 or 3000, dont know really.

Im using ;per on both.
Osito2Dancer is offline  
Old 19.07.2007, 14:15   #3
andreagighi
Архивный участник
 
Join Date: Mar 2005
Posts: 74
Default

...Posted in the past Erase code... then i will post new and better Erase code by magic level:
Code:
		if( ( skill_name_id / 256 ) == 1395 )
		{
			i0 = ( skill_name_id & 255 );
			if( i0 > 10 )
			{
				i0 = 10;
			}
			i0 = ( 54 + ( i0 * 2 ) );
			i1 = myself.sm.level;
			i2 = ( ( 50 + i0 ) - i1 );
			if( gg->Rand(100) < i2 )
			{
				myself->Say("I'm dying...");
				myself->Despawn();
			}
		}
andreagighi is offline  
Old 19.07.2007, 14:17   #4
andreagighi
Архивный участник
 
Join Date: Mar 2005
Posts: 74
Default

Here Compiled Code:

Code:
handler 1 705	//  ATTACKED
	variable_begin
		"skill_name_id"
		"party0"
		"c0"
		"c1"
		"i0"
		"i1"
		"i2"
		"i3"
		"i4"
		"i5"
		"i6"
		"attacker"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  skill_name_id
	push_const 180
	add
	fetch_i4
	push_const 256
	div
	push_const 1395
	equal
	branch_false L113
L112
	push_event	//  i0
	push_const 260
	add
	push_reg_sp
	fetch_i
	push_event	//  skill_name_id
	push_const 180
	add
	fetch_i4
	push_const 255
	bit_and
	assign4
	shift_sp -1
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 10
	greater
	branch_false L115
L114
	push_event	//  i0
	push_const 260
	add
	push_reg_sp
	fetch_i
	push_const 10
	assign4
	shift_sp -1
L115
	push_event	//  i0
	push_const 260
	add
	push_reg_sp
	fetch_i
	push_const 54
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 2
	mul
	add
	assign4
	shift_sp -1
	push_event	//  i1
	push_const 264
	add
	push_reg_sp
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i	//  level
	push_const 1092
	add
	fetch_i4
	assign4
	shift_sp -1
	push_event	//  i2
	push_const 268
	add
	push_reg_sp
	fetch_i
	push_const 50
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	add
	push_event	//  i1
	push_const 264
	add
	fetch_i4
	sub
	assign4
	shift_sp -1
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_const 100
	func_call 218169344	//  func[Rand]
	shift_sp -1
	push_event	//  i2
	push_const 268
	add
	fetch_i4
	less
	branch_false L117
L116
	push_event	//  myself
	push_const 704
	add
	fetch_i
S100.	"I'm dying..."
	push_string S100
	func_call 184614973	//  func[Say]
	shift_sp -1
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	func_call 184549616	//  func[Despawn]
	shift_sp -1
L117
L113
handler_end
andreagighi is offline  
Old 21.07.2007, 11:01   #5
mexekanez
Архивный участник
 
Join Date: Apr 2006
Posts: 82
Default

Quote:
Originally Posted by andreagighi View Post
Here Compiled Code:

Code:
handler 1 705	//  ATTACKED
	variable_begin
		"skill_name_id"
		"party0"
		"c0"
		"c1"
		"i0"
		"i1"
		"i2"
		"i3"
		"i4"
		"i5"
		"i6"
		"attacker"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  skill_name_id
	push_const 180
	add
	fetch_i4
	push_const 256
	div
	push_const 1395
	equal
	branch_false L113
L112
	push_event	//  i0
	push_const 260
	add
	push_reg_sp
	fetch_i
	push_event	//  skill_name_id
	push_const 180
	add
	fetch_i4
	push_const 255
	bit_and
	assign4
	shift_sp -1
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 10
	greater
	branch_false L115
L114
	push_event	//  i0
	push_const 260
	add
	push_reg_sp
	fetch_i
	push_const 10
	assign4
	shift_sp -1
L115
	push_event	//  i0
	push_const 260
	add
	push_reg_sp
	fetch_i
	push_const 54
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 2
	mul
	add
	assign4
	shift_sp -1
	push_event	//  i1
	push_const 264
	add
	push_reg_sp
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i	//  level
	push_const 1092
	add
	fetch_i4
	assign4
	shift_sp -1
	push_event	//  i2
	push_const 268
	add
	push_reg_sp
	fetch_i
	push_const 50
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	add
	push_event	//  i1
	push_const 264
	add
	fetch_i4
	sub
	assign4
	shift_sp -1
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_const 100
	func_call 218169344	//  func[Rand]
	shift_sp -1
	push_event	//  i2
	push_const 268
	add
	fetch_i4
	less
	branch_false L117
L116
	push_event	//  myself
	push_const 704
	add
	fetch_i
S100.	"I'm dying..."
	push_string S100
	func_call 184614973	//  func[Say]
	shift_sp -1
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	func_call 184549616	//  func[Despawn]
	shift_sp -1
L117
L113
handler_end
anybody test this code? on my server it dosen't work((( Help, where is my mistake?

i put in this code skill id (1395), and put into ai.obj and nothing work. help
mexekanez is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 18:00.