Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [share] translated ai.obj (https://postpacific.loc-online.com/showthread.php?t=5533)

rodier 24.08.2006 04:25

[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

Firedaemon 29.08.2006 21:36

thank you for sharing

Sakumi 29.08.2006 23:37

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.

Aikeleer 30.08.2006 05:55

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.

Sakumi 30.08.2006 09:14

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


m4rk 30.08.2006 09:30

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)

Sakumi 30.08.2006 09:48

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.

m4rk 30.08.2006 11:03

and does it disappear under any condition?

Drag 30.08.2006 13:11

https://postpacific.loc-online.com/f...ead.php?t=5311 ???

m4rk 30.08.2006 13:20

ok, let us die :)

Sakumi 30.08.2006 20:11

Quote:

Originally Posted by m4rk (Post 66074)
ok, let us die :)

hahaha


Thanks for the post

Sakumi 30.08.2006 20:48

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

Aikeleer 30.08.2006 21:37

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.

Sakumi 31.08.2006 03:44

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]

HF 21.09.2006 19:25

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.


All times are GMT. The time now is 15:27.