Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   Gk 4th teleport option (https://postpacific.mmorpg-game.online/showthread.php?t=7982)

Yui-Ikari 05.07.2007 22:22

Gk 4th teleport option
 
Hope this helps for something to someone... :D This is my first lil work ^^
For a teleport_multi GK you can usually go up to 3 options.
To add the 4th one, i just followed the pattern...
1) @ class 1 global_gk : teleporter_multi_list
just add the 4th property "Position4"
2) @ class 1 teleporter_multi_list : teleporter
just add the extra property
Code:

telposlist_begin Position4
                {"Talking Island"; -84169; 244693; -3729; 100000; 0 }
        telposlist_end

In the same class, i followed the routine and this is how each position "looks" like
Position 1
Code:

L4663
        push_event        //  reply
        push_const 164
        add
        fetch_i4
        push_const 1
        equal
        branch_false L4666
L4665
        push_event        //  myself
        push_const 704
        add
        fetch_i
        push_event        //  talker
        push_const 40
        add
        fetch_i
        push_property Position1
        push_parameter ShopName
S1140.        ""
        push_string S1140
S1141.        ""
        push_string S1141
S1142.        ""
        push_string S1142
        push_const 57
        push_event        //  myself
        push_const 704
        add
        fetch_i
        push_const 1000308
S1143.        ""
        push_string S1143
S1144.        ""
        push_string S1144
S1145.        ""
        push_string S1145
S1146.        ""
        push_string S1146
S1147.        ""
        push_string S1147
        func_call 184942731        //  func[MakeFString]
        shift_sp -6
        func_call 185073739        //  func[Teleport]
        shift_sp -8
        shift_sp -1
        jump L4667

Position2
Code:

L4666
        push_event        //  reply
        push_const 164
        add
        fetch_i4
        push_const 2
        equal
        branch_false L4669
L4668
        push_event        //  myself
        push_const 704
        add
        fetch_i
        push_event        //  talker
        push_const 40
        add
        fetch_i
        push_property Position2
        push_parameter ShopName
S1148.        ""
        push_string S1148
S1149.        ""
        push_string S1149
S1150.        ""
        push_string S1150
        push_const 57
        push_event        //  myself
        push_const 704
        add
        fetch_i
        push_const 1000308
S1151.        ""
        push_string S1151
S1152.        ""
        push_string S1152
S1153.        ""
        push_string S1153
S1154.        ""
        push_string S1154
S1155.        ""
        push_string S1155
        func_call 184942731        //  func[MakeFString]
        shift_sp -6
        func_call 185073739        //  func[Teleport]
        shift_sp -8
        shift_sp -1
        jump L4670

Position3 , i only changed the last line to jump to the other routine
Code:

L4669
        push_event        //  reply
        push_const 164
        add
        fetch_i4
        push_const 3
        equal
        branch_false L4672
L4671
        push_event        //  myself
        push_const 704
        add
        fetch_i
        push_event        //  talker
        push_const 40
        add
        fetch_i
        push_property Position3
        push_parameter ShopName
S1156.        ""
        push_string S1156
S1157.        ""
        push_string S1157
S1158.        ""
        push_string S1158
        push_const 57
        push_event        //  myself
        push_const 704
        add
        fetch_i
        push_const 1000308
S1159.        ""
        push_string S1159
S1160.        ""
        push_string S1160
S1161.        ""
        push_string S1161
S1162.        ""
        push_string S1162
S1163.        ""
        push_string S1163
        func_call 184942731        //  func[MakeFString]
        shift_sp -6
        func_call 185073739        //  func[Teleport]
        shift_sp -8
        shift_sp -1
        jump L4673

Position4 - This is my extra work, same thing, just changed the #s
push pull branch jump! boom works!
Code:

L4672
        push_event        //  reply
        push_const 164
        add
        fetch_i4
        push_const 4
        equal
        branch_false L4675
L4674
        push_event        //  myself
        push_const 704
        add
        fetch_i
        push_event        //  talker
        push_const 40
        add
        fetch_i
        push_property Position4
        push_parameter ShopName
S1164.        ""
        push_string S1164
S1165.        ""
        push_string S1165
S1166.        ""
        push_string S1166
        push_const 57
        push_event        //  myself
        push_const 704
        add
        fetch_i
        push_const 1000308
S1167.        ""
        push_string S1167
S1168.        ""
        push_string S1168
S1169.        ""
        push_string S1169
S1170.        ""
        push_string S1170
S1171.        ""
        push_string S1171
        func_call 184942731        //  func[MakeFString]
        shift_sp -6
        func_call 185073739        //  func[Teleport]
        shift_sp -8
        shift_sp -1
L4675
L4673
L4670
L4667
        call_super

And of course, don't forget to change you global_gatekeepr.html,"&reply=4"
^_^ enjoy


All times are GMT. The time now is 23:49.