[MANUAL] npc reset pk

Тема в разделе "Установка и настройка (Setup and configuration)", создана пользователем root, 26 сен 2014.

  1. root

    root Administrator Команда форума Administrator Moderator Developers Team

    Регистрация:
    23 авг 2014
    Сообщения:
    254
    Симпатии:
    58
    Баллы:
    11
    HTML:
    Код:
    <center><button value="Bajar PK" action="bypass -h menu_select?ask=641&reply=6" width=120 height=20 back="sek.cbui81" fore="sek.cbui79"></center><br>
    AI:
    Код:
    class 1 Punisher : default_npchandler 3 13    // TALKED
    variable_begin
    "talker"
    "myself"
    "_choiceN"
    "_code"
    "_from_choice"
    variable_end
    
    
    push_event    // myself
    push_const 704
    add
    fetch_i
    push_event    // talker
    push_const 40
    add
    fetch_i
    S881.    "puniser.htm"
    push_string S881
    func_call 184680516    // func[ShowPage]
    shift_sp -2
    shift_sp -1
    handler_end
    
    
    handler 32 113    // MENU_SELECTED
    variable_begin
    "talker"
    "ask"
    "reply"
    "myself"
    "_choiceN"
    "_code"
    "_from_choice"
    variable_end
    
    
    push_event    // ask
    push_const 160
    add
    fetch_i4
    push_const 641
    equal
    push_reg_sp
    fetch_i
    branch_false L3
    push_event    // reply
    push_const 164
    add
    fetch_i4
    push_const 1
    equal
    and
    L3
    branch_false L2
    L1
    push_event    // myself
    push_const 704
    add
    fetch_i
    push_event    // talker
    push_const 40
    add
    fetch_i
    push_const 6673
    func_call 184680579    // func[OwnItemCount]
    shift_sp -2
    push_const 750
    greater_equal
    push_reg_sp
    fetch_i
    branch_false L6
    push_event    // talker
    push_const 40
    add
    fetch_i    // pk_count
    push_const 460
    add
    fetch_i4
    push_const 0
    not_equal
    and
    L6
    branch_false L5
    L4
    push_event    // myself
    push_const 704
    add
    fetch_i
    push_event    // talker
    push_const 40
    add
    fetch_i
    push_const 6673
    push_const 750
    func_call 184746114    // func[DeleteItem1]
    shift_sp -3
    shift_sp -1
    push_event    // myself
    push_const 704
    add
    fetch_i
    push_event    // talker
    push_const 40
    add
    fetch_i
    push_const 9
    push_const 1
    push_event    // talker
    push_const 40
    add
    fetch_i    // pk_count
    push_const 460
    add
    fetch_i4
    mul
    negate
    func_call 184746219    // func[IncrementParam]
    shift_sp -3
    shift_sp -1
    push_event    // myself
    push_const 704
    add
    fetch_i
    push_event    // talker
    push_const 40
    add
    fetch_i
    S882.    "pk.htm"
    push_string S882
    func_call 184680516    // func[ShowPage]
    shift_sp -2
    shift_sp -1
    jump L7
    L5
    push_event    // myself
    push_const 704
    add
    fetch_i
    push_event    // talker
    push_const 40
    add
    fetch_i
    S883.    "pk_cannot.htm"
    push_string S883
    func_call 184680516    // func[ShowPage]
    shift_sp -2
    shift_sp -1
    L7
    L2
    handler_end
    
    
    class_end