Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 24.08.2006, 04:25   #1
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default [share] translated ai.obj

This ai.obj have 99% chinese things translated.

Errors:
- mobs that appear when fishing are passive ;-( /any help?/
- problem with 1 pet [dont appear when summoning]
- maybe mob dont attack summon back [dont know if this problem is in this version..but I think you can find fix and repair it]
- maybe 1% of quest not work (I found one to this day..)

Im sharing this because many ppl here can fix the problems but cant translate text to english /its not translated by me.. my engrish suxx/

if you can share how to fix listed problems.. I will be glad. (at least the problem with passive mob class 1 warrior_fishing_block) I tried to set class 1 warrior_fishing_block to warrior_agressive_physicalspecial .. but mob still passive..

rar archive is not passworded ofc ;-)

http://rapidshare.de/files/30542186/ai.rar.html
rodier is offline  
Old 29.08.2006, 21:36   #2
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

thank you for sharing
Firedaemon is offline  
Old 29.08.2006, 23:37   #3
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

A very helpful share.

Seems nobody has had much luck on the warrior_fishing_block sadly. I've tried to fix it myself but I haven't had any luck.

I believe has same problem with 3rd class change as everyone is having as well.

If i have any fixes ill ensure to post here.
Sakumi is offline  
Old 30.08.2006, 05:55   #4
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Try checking out if there's something like GetLifeTime in the fishing-mob ai. Normally there's a check on aggro mobs, if they just spawned they don't aggro you. The fishing mobs don't need this check.
Aikeleer is offline  
Old 30.08.2006, 09:14   #5
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

Sadly not there >.>

Code:
class 1 warrior_fishing_block : warrior_physicalspecial
parameter_define_begin
	int SayType 0
parameter_define_end
handler 13 136	//  CREATED
	variable_begin
		"i0"
		"c0"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  myself
	push_const 704
	add
	fetch_i	//  c_ai0
	push_const 376
	add
	push_reg_sp
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i	//  summoner_id
	push_const 1936
	add
	fetch_i4
	func_call 184614954	//  func[GetCreatureFromIndex]
	shift_sp -1
	assign
	shift_sp -1
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  c_ai0
	push_const 376
	add
	fetch_i
	func_call 218169355	//  func[IsNull]
	shift_sp -1
	push_const 0
	equal
	branch_false L24902
L24901
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  c_ai0
	push_const 376
	add
	fetch_i
	push_const 1
	push_const 2000
	func_call 184745993	//  func[AddAttackDesire]
	shift_sp -3
	shift_sp -1
	push_event	//  i0
	push_const 260
	add
	push_reg_sp
	fetch_i
	push_const 1010400
	push_parameter SayType
	push_const 9
	mul
	add
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_const 3
	func_call 218169344	//  func[Rand]
	shift_sp -1
	add
	assign4
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  c_ai0
	push_const 376
	add
	fetch_i	//  name
	push_const 200
	add
S4293.	""
	push_string S4293
S4294.	""
	push_string S4294
S4295.	""
	push_string S4295
S4296.	""
	push_string S4296
	func_call 184942731	//  func[MakeFString]
	shift_sp -6
	func_call 184614973	//  func[Say]
	shift_sp -1
	shift_sp -1
	jump L24903
L24902
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 0
	func_call 184549616	//  func[Despawn]
	shift_sp -1
L24903
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 3000
	push_const 1000
	push_const 5
	mul
	push_const 10
	mul
	func_call 184680487	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
	call_super
handler_end

handler 1 62	//  ATTACKED
	variable_begin
		"attacker"
		"damage"
		"i0"
		"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 33
	less
	branch_false L24905
L24904
	push_event	//  i0
	push_const 260
	add
	push_reg_sp
	fetch_i
	push_const 1010400
	push_const 3
	add
	push_parameter SayType
	push_const 9
	mul
	add
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_const 3
	func_call 218169344	//  func[Rand]
	shift_sp -1
	add
	assign4
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  i0
	push_const 260
	add
	fetch_i4
S4297.	""
	push_string S4297
S4298.	""
	push_string S4298
S4299.	""
	push_string S4299
S4300.	""
	push_string S4300
S4301.	""
	push_string S4301
	func_call 184942731	//  func[MakeFString]
	shift_sp -6
	func_call 184614973	//  func[Say]
	shift_sp -1
	shift_sp -1
L24905
	call_super
handler_end

handler 12 57	//  TIMER_FIRED_EX
	variable_begin
		"timer_id"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  timer_id
	push_const 236
	add
	fetch_i4
	push_const 3000
	equal
	branch_false L24907
L24906
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  p_state
	push_const 280
	add
	fetch_i4
	push_const 3
	equal
	push_reg_sp
	fetch_i
	branch_false L24908
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  p_state
	push_const 280
	add
	fetch_i4
	push_const 10
	equal
	and
L24908
	branch_false L24910
L24909
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 3000
	push_const 1000
	push_const 5
	mul
	push_const 10
	mul
	func_call 184680487	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
	jump L24911
L24910
	push_event	//  myself
	push_const 704
	add
	fetch_i
	func_call 184549616	//  func[Despawn]
	shift_sp -1
L24911
L24907
	call_super
handler_end

handler 10 50	//  MY_DYING
	variable_begin
		"i0"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  i0
	push_const 260
	add
	push_reg_sp
	fetch_i
	push_const 1010400
	push_const 6
	add
	push_parameter SayType
	push_const 9
	mul
	add
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_const 3
	func_call 218169344	//  func[Rand]
	shift_sp -1
	add
	assign4
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  i0
	push_const 260
	add
	fetch_i4
S4302.	""
	push_string S4302
S4303.	""
	push_string S4303
S4304.	""
	push_string S4304
S4305.	""
	push_string S4305
S4306.	""
	push_string S4306
	func_call 184942731	//  func[MakeFString]
	shift_sp -6
	func_call 184614973	//  func[Say]
	shift_sp -1
	shift_sp -1
	call_super
handler_end

class_end
Sakumi is offline  
Old 30.08.2006, 09:30   #6
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

Sorry to carry on with the hijacking of the thread..XD

What's that mob supposed to do exactly?
I mean, is he meant to despawn after a while?
(I mean all this in true retail)
m4rk is offline  
Old 30.08.2006, 09:48   #7
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

The mob spawns randomly on fishing. He is agro, and has some neat spells.

There are 7 of them, but they use the same AI. They say some fstring stuff, etc.

Just they spawn, and aren't agro attacking the fisherman. Retail the mobs are agro/attack.
Sakumi is offline  
Old 30.08.2006, 11:03   #8
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

and does it disappear under any condition?
m4rk is offline  
Old 30.08.2006, 13:11   #9
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

https://postpacific.loc-online.com/f...ead.php?t=5311 ???
Drag is offline  
Old 30.08.2006, 13:20   #10
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

ok, let us die
m4rk is offline  
Old 30.08.2006, 20:11   #11
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

Quote:
Originally Posted by m4rk View Post
ok, let us die
hahaha


Thanks for the post
Sakumi is offline  
Old 30.08.2006, 20:48   #12
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

Well I did check my AI and it had this already in it... yet the problem remains.



I'm still fiddling and have lots of fishing time on my hands, so I'll post any results
Sakumi is offline  
Old 30.08.2006, 21:37   #13
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

push_const 1936 is respawntime iirc. What the script does is myself.c_ai0 = GetCreatureFromIndex(myself.sm.summoner_id);

The ID is like respawn_time though, summoner_id is 1920 if I'm not mistaking.

fetch_i // summoner_id
push_const 1936

Try changing to 1920.
Aikeleer is offline  
Old 31.08.2006, 03:44   #14
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

I gave it a shot still a no go.

I think thats for older ai versions >.>

Heres the error..

08/31/2006 05:33:xx.xx7, func_call : Access violation. Read[0], ai[warrior_fishing_block] event[CREATED], pc[114], sp[1]
Sakumi is offline  
Old 21.09.2006, 19:25   #15
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Thanks to Rodier for better translated text for AI.

If someone wishes to apply the text from his file in the file, take advantage of my utility.
HF 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 18:36.