Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Exchange Adena > SP (https://postpacific.loc-online.com/showthread.php?t=1148)

drugolo 08.07.2005 02:37

Exchange Adena > SP
 
Add this at the beginning of menu_select of class clan_master.

Code:

        push_event        //  ask
        push_const 100 //wanna change from Adena to SP
        add //code by Drake Bloodbane - The Dragon Chronicle
        fetch_i
        push_const 333
        equal
        branch_false L650
        push_event        //  reply
        push_const 104
        add
        fetch_i
        push_const 0
        equal
        branch_false L650
L655
        push_event        //  talker
        push_const 32
        add
        fetch_i        //  is_pledge_master
        push_const 672
        add
        fetch_i
        push_const 0
        not_equal
        branch_false L657

L651
        shift_sp 1
        push_event        //  talker
        push_const 32
        add
        fetch_i
        push_const 57
        func_call 81        //  func[OwnItemCount]
        shift_sp -2
        push_const 250000000        //        adena
        greater_equal
        branch_false L659
        shift_sp 1
        push_event        //  talker
        push_const 32
        add
        fetch_i
        push_const 57
        push_const 250000000        // adena
        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp 1
        push_event        //  talker
        push_const 32
        add
        fetch_i
        push_const 1
        push_const 5000000        //        SP
        func_call 171        //  func[IncrementParam]
        shift_sp -3
        shift_sp -1
L658 //good message
        shift_sp 1
        push_event        //  talker
        push_const 32
        add
        fetch_i
S23948.        "SP_ok.htm"
        push_string S23948
        func_call 43        //  func[ShowPage]
        shift_sp -2
        shift_sp -1
        jump L96
L657 //no leader
        shift_sp 1
        push_event        //  talker
        push_const 32
        add
        fetch_i
S23950.        "SP_noleader.htm"
        push_string S23950
        func_call 43        //  func[ShowPage]
        shift_sp -2
        shift_sp -1
        jump L96
L659 //wrong message
        shift_sp 1
        push_event        //  talker
        push_const 32
        add
        fetch_i
S23949.        "SP_bad.htm"
        push_string S23949
        func_call 43        //  func[ShowPage]
        shift_sp -2
        shift_sp -1
L660
        jump L96
L650


Digital 08.07.2005 16:43

good! :D


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