Page 1 of 6 12345 ... LastLast
Results 1 to 15 of 87
http://idgs.in/104072
  1. #1
    -pare-'s Avatar
    Join Date
    Apr 2008
    Location
    SMALLVILLE
    Posts
    198
    Points
    386.81
    Thanks: 0 / 0 / 0

    Thumbs up All About Macro In Here

    buat yg mau share macro dan plugin disini aja..tapi untuk belajar bersama tentang macro dan plugin openkore..[

    Spoiler untuk How to install Macro plugin :


    1. Download Macro plugin
    2. Buka folder Openkore kamu (Folder utama yg ada file openkore.pl nya )
    3. Di folder itu,Buat sebuah folder baru bernama plugins (kalau belum ada)
    4. ekstrak Macro plugin yg telah kamu download tadi,isinya file macro.pl sama folder Macro ,kedalam folder plugins
    5. Di folder Openkore kamu, buat sebuah file txt bernama macros (buat pake notepad)
    note:kesalahan pada umumnya,ngasih nama file na macros.txt (padahal jenisnya udah txt so bakal jadinya kayak gini macros.txt.txt

    kalo udah selesai,susunan file Openkore kamu jadinya seperti gini :
    Code:

    openkore
    |-- openkore.pl
    |-- control
    | `-- macros.txt
    |-- fields
    |-- logs
    |-- plugins
    | |-- Macro
    | | |-- Automacro.pm
    | | |-- Data.pm
    | | |-- Parser.pm
    | | |-- Script.pm
    | | `-- Utilities.pm
    | `-- macro.pl
    |-- src
    `-- tables


    macro auto DC if mob (khusus FnC karena gk ada tele) :

    automacro autodc {
    hp <= 30%
    delay 60
    run-once 1
    call autodc2
    }

    macro autodc2 {
    do relog 10
    release autodc
    }

    automacro aggressives {
    aggressives >= 4
    run-once 1
    call disconnect
    }

    macro disconnect {
    do relog 30
    pause 30
    release aggressives
    }

    http://www.openkore.com/wiki/index.p..._.3Ccommand.3E

    Utk yg sering kena strip weapon di metaling, neh macronya, utk OK 2.0.5.1 :

    automacro relog {
    location lhz_fild01
    class High Merchant
    status Strip Weapon
    timeout 0
    call strip
    }

    macro strip {
    do relog 1
    }

    MAcro BWat Paket

    automacro mintaheal {
    pubm /heal/
    call giveheal
    }

    macro giveheal {
    pause 1
    do sp 28 $.lastpub
    pause 2
    do sp 28 $.lastpub
    }

    automacro paket {
    pubm /paket/
    call paket1
    }

    macro paket1 {
    do sp 34 $.lastpub
    pause 2
    do sp 29 $.lastpub
    pause 2
    do sp 361 $.lastpub
    }

    automacro mintaheal {
    pubm /sanc/
    call giveheal
    }

    macro sanc {
    pause 1
    do sp 70 $.lastpub


    Oke mari sekarang kita belajar cara membuat macro sederhana
    Disini kita mengenal automacro dan macro yang mana keduanya sama sama "macro"

    Bedanya adalah automacro berdasarkan trigger atau pemicu yang akan berjalan otomatis tanpa campur tangan kita.

    Sedangkan macro adalah suatu cara memerintah bot kita,disamping menggunakan Openkore untuk melakukan tugas tertentu kita dapat menggunakan macro untuk mengontrol perilaku bot

    Membuat Macro Sederhana

    Sebelum dimulai,akan saya ajukan satu pertanyaan
    "apakah kamu sudah terbiasa dengan perintah perintah console ?"
    Jika belum ada baiknya kamu kunjungi link berikut yg lebih detail menjelaskan command console

    Console Commands
    Code:

    http://www.openkore.com/wiki/index.php/Console_commands

    Chat Commands
    Code:

    http://www.openkore.com/wiki/index.php/Chat_Commands

    Basicnya semua perintah console bisa kamu implementasikan ke macro.

    Bagaimana automacro berjalan ?
    Code:

    automacro Anu {
    <kondisi> a
    <kondisi> b
    panggil macro Itu
    }

    macro Itu {
    do this
    do this again
    do that
    }

    So automacro Anu,akan terpicu jika kondisi a,dan kondisi b terpenuhi
    saat semua kondisinya terpenuhi maka automacro Anu akan memanggil makro Itu,saat terpanggil maka macro Itu akan mengeksekusi semua perintah yg telah di atur.

    Referensi dari Conditions,Special Variable,Trigger Condition

    Conditions
    Code:

    Condition Meaning
    < less than
    <= less than or equal to
    == equal to
    >= greater than or equal to
    > greater than
    != not equal to
    ~ <left part> is element of <right part (comma-separated list)>

    Special Keywords
    Code:

    @npc (<x> <y>)
    Expands to NPC's ID who's located at (<x>,<y>), or to -1 if the NPC was not found.
    @inventory (<item>)
    Searches your inventory for <item> and returns ID or -1 if the item was not found.
    @Inventory (<item>)
    same as @inventory but returns all matching IDs as a comma-separated list or -1 if the item was not found
    @cart (<item>)
    searches your cart for <item> and returns ID or -1 if the item was not found
    @Cart (<item>)
    same as @cart but returns all matching IDs as a comma-separated list or -1 if the item was not found
    @storage (<item>)
    searches your storage for <item> and returns ID or -1 if the item was not found
    @Storage (<item>)
    same as @storage but returns all matching IDs as a comma-separated list or -1 if the item was not found
    @player (<name>)
    looks for a player and returns ID or -1 if the player was not found
    @vender (<name>)
    looks for a vender and returns ID or -1 if the vender was not found
    @store (<name>)
    looks for an item in a store and returns ID or -1 if the item was not found
    @random ("<argument1>"[, "<argument2>"[, ...]])
    returns randomly one of the given arguments
    @rand (<n>, <m>)
    returns a random number between (and including) <n> and <m>
    @invamount (<item>)
    returns the amount of the given <item> in inventory
    @cartamount (<item>)
    returns the amount of the given <item> in cart
    @shopamount (<item>)
    returns the amount of the given <item> in shop
    @storamount (<item>)
    returns the amount of the given <item> in storage
    @eval (<argument>)
    evaluates the given <argument>
    @arg ("<argument>", <n>)
    returns the <n>th word of <argument> or an empty string if the word index is out of range
    @config (<variable>)
    returns the value of <variable> specified in config.txt

    Trigger Condition
    Code:

    mapchange (<mapname>|any) [, ...]
    Triggers when changing map to <mapname>. If the argument is any then it triggers on any map change.
    Comma-separated arguments are treated as OR conditions.

    hp <condition> <amount>[%]
    triggers when your hp match <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND Conditions.

    sp <condition> <amount>[%]
    triggers when your sp match <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND conditions.

    spirit <condition> <amount>
    triggers when your spirits match <condition> <amount>.
    Multiple lines are treated as AND conditions.

    weight <condition> <amount>[%]
    triggers when your weight matches <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND conditions.

    cartweight <condition> <amount>[%]
    triggers when your cart weight matches <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND conditions.

    zeny <condition> <amount>
    triggers when your zeny amount matches <condition> <amount>.
    Multiple lines are treated as AND conditions.

    soldout <condition> <slots>
    triggers when the amount of sold out item slots in your shop matches <condition> <slots>.
    Multiple lines are treated as AND conditions.

    status [not] <status> [, ...]
    triggers when you are [not] <status>.
    The statuses "dead" and "muted" are supported additionally.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    inventory "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your inventory.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    storage "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your storage.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    cart "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your cart.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    shop "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your shop.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    base <condition> <level>
    triggers when your baselevel matches <condition> <level>.
    Multiple lines are treated as AND conditions.

    job <condition> <level>
    triggers when your joblevel matches <condition> <level>.
    Multiple lines are treated as AND conditions.

    class <job>
    triggers when your jobclass is <job>

    spell <spell> [, ...]
    triggers when someone casts <spell> on you or you are in it's scope.
    Comma-separated arguments are treated as OR conditions.

    monster <monstername> [, ...]
    triggers when <monstername> is near.
    When triggered the special variables $.lastMonster and $.lastMonsterPos are set.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    notMonster <monstername> [, ...]
    triggers when a monster appears that is not in the list.
    Comma-separated arguments are treaded as AND conditions.

    aggressives <condition> <number>
    triggers at <number> of aggressives.
    Multiple lines are treated as AND conditions.

    player ("<playername>"|/<regexp>/[i]) [, <distance> ]
    triggers when <playername> is on screen or not more than <distance> blocks away.
    Multiple lines are treated as AND conditions.

    equipped [<slot>] (<item>|none) [, ...]
    triggers when <item> or none is equipped [in slot <slot>]
    Slots are topHead, midHead, lowHead, leftHand, rightHand, robe, armor, shoes, leftAccessory, rightAccessory and arrow.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    var <variable> (unset|<condition> <value>)
    triggers when <variable> is either unset or matches <condition> <value>.
    Multiple lines are treated as AND conditions.

    varvar <nested variable> (unset|<condition> <value>)
    triggers when <nested variable> is either unset or matches <condition> <value>.
    Multiple lines are treated as AND conditions.

    console ("<text>"|/<regexp>/[i])
    triggers when <text> is received on console or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastLogMsg.

    pm ("<text>"|/<regexp>/[i]) [, <player>]
    triggers when <text> is received by pm [from <player>] or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastpm and $.lastpmMsg.

    pubm ("<text>"|/<regexp>/[i]) [, <distance>]
    triggers when a public message [within a distance of <distance>] is received and it is <text> or matches <regexp>
    The i switch means the regexp is case insensitive.
    Sets $.lastpub and $.lastpubMsg.

    party ("<text>"|/<regexp>/[i])
    triggers when <text> is received by partychat or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastparty and $.lastpartyMsg.

    guild ("<text>"|/<regexp>/[i])
    triggers when <text> is received by guildchat or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastguild and $.lastguildMsg.

    hook <hookname>
    triggers when openkore calls <hookname>.

    save <hash key>
    (use in combination with hook)
    saves the value of <hash key> in a variable $.hooksave1 to $.hooksave

    run-once (0|1)
    When set to 1 the automacro will be deactivated after being triggered.
    Use the macro command release to reenable this automacro.

    overrideAI (0|1)
    When set to 1 the macro ignores openkore's AI. This means it won't pause upon "move" or "status dead".

    delay <n>
    Waits for <n> seconds before calling the corresponding macro.

    timeout <n>
    Wait at least for <n> seconds before this automacro can be triggered again.

    macro_delay <n>
    Overrides the global macro delay setting for the called macro.

    priority <num>
    Choose which automacros should be checked before others. The smaller <num> is is the sooner the automacro gets checked. If priority is not given, the priority is assumed to be 0 (zero: check first).

    exclusive (0|1)
    Automacros which have exclusive set cannot be interrupted by other automacros.
    As of macro 1.3.0 running macros can be interrupted by automacros by default. To disallow that behaviour either set this option or use the command line option -exclusive

    set <variable> <value>
    Sets variable <variable> to <value>. You can have multiple set lines per automacro.

    call <name>
    Calls macro <name> when the automacro is triggered.

    call {
    <instructions>
    }
    Runs <instructions> when the automacro is triggered.

    orphan <method>
    Sets the method of how to deal with orphaned macros.

    Implementasi

    1.saya mempunyai character level 98,saat dia mencapai level 99 saya ingin dia keluar dari program openkore (quit),bagaimana cara mengimplementasikan ke macro?

    Logikanya kita memakai trigger Base level sebagai pemicu ,so mari kita implementasikan

    Code:

    automacro Logout {
    base > 98
    call Quit
    }

    macro Quit {
    do quit
    {

    Oke mari sekarang kita belajar cara membuat macro sederhana
    Disini kita mengenal automacro dan macro yang mana keduanya sama sama "macro"

    Bedanya adalah automacro berdasarkan trigger atau pemicu yang akan berjalan otomatis tanpa campur tangan kita.

    Sedangkan macro adalah suatu cara memerintah bot kita,disamping menggunakan Openkore untuk melakukan tugas tertentu kita dapat menggunakan macro untuk mengontrol perilaku bot

    Membuat Macro Sederhana

    Sebelum dimulai,akan saya ajukan satu pertanyaan
    "apakah kamu sudah terbiasa dengan perintah perintah console ?"
    Jika belum ada baiknya kamu kunjungi link berikut yg lebih detail menjelaskan command console

    Console Commands
    Code:

    http://www.openkore.com/wiki/index.php/Console_commands

    Chat Commands
    Code:

    http://www.openkore.com/wiki/index.php/Chat_Commands

    Basicnya semua perintah console bisa kamu implementasikan ke macro.

    Bagaimana automacro berjalan ?
    Code:

    automacro Anu {
    <kondisi> a
    <kondisi> b
    panggil macro Itu
    }

    macro Itu {
    do this
    do this again
    do that
    }

    So automacro Anu,akan terpicu jika kondisi a,dan kondisi b terpenuhi
    saat semua kondisinya terpenuhi maka automacro Anu akan memanggil makro Itu,saat terpanggil maka macro Itu akan mengeksekusi semua perintah yg telah di atur.

    Referensi dari Conditions,Special Variable,Trigger Condition

    Conditions
    Code:

    Condition Meaning
    < less than
    <= less than or equal to
    == equal to
    >= greater than or equal to
    > greater than
    != not equal to
    ~ <left part> is element of <right part (comma-separated list)>

    Special Keywords
    Code:

    @npc (<x> <y>)
    Expands to NPC's ID who's located at (<x>,<y>), or to -1 if the NPC was not found.
    @inventory (<item>)
    Searches your inventory for <item> and returns ID or -1 if the item was not found.
    @Inventory (<item>)
    same as @inventory but returns all matching IDs as a comma-separated list or -1 if the item was not found
    @cart (<item>)
    searches your cart for <item> and returns ID or -1 if the item was not found
    @Cart (<item>)
    same as @cart but returns all matching IDs as a comma-separated list or -1 if the item was not found
    @storage (<item>)
    searches your storage for <item> and returns ID or -1 if the item was not found
    @Storage (<item>)
    same as @storage but returns all matching IDs as a comma-separated list or -1 if the item was not found
    @player (<name>)
    looks for a player and returns ID or -1 if the player was not found
    @vender (<name>)
    looks for a vender and returns ID or -1 if the vender was not found
    @store (<name>)
    looks for an item in a store and returns ID or -1 if the item was not found
    @random ("<argument1>"[, "<argument2>"[, ...]])
    returns randomly one of the given arguments
    @rand (<n>, <m>)
    returns a random number between (and including) <n> and <m>
    @invamount (<item>)
    returns the amount of the given <item> in inventory
    @cartamount (<item>)
    returns the amount of the given <item> in cart
    @shopamount (<item>)
    returns the amount of the given <item> in shop
    @storamount (<item>)
    returns the amount of the given <item> in storage
    @eval (<argument>)
    evaluates the given <argument>
    @arg ("<argument>", <n>)
    returns the <n>th word of <argument> or an empty string if the word index is out of range
    @config (<variable>)
    returns the value of <variable> specified in config.txt

    Trigger Condition
    Code:

    mapchange (<mapname>|any) [, ...]
    Triggers when changing map to <mapname>. If the argument is any then it triggers on any map change.
    Comma-separated arguments are treated as OR conditions.

    hp <condition> <amount>[%]
    triggers when your hp match <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND Conditions.

    sp <condition> <amount>[%]
    triggers when your sp match <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND conditions.

    spirit <condition> <amount>
    triggers when your spirits match <condition> <amount>.
    Multiple lines are treated as AND conditions.

    weight <condition> <amount>[%]
    triggers when your weight matches <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND conditions.

    cartweight <condition> <amount>[%]
    triggers when your cart weight matches <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND conditions.

    zeny <condition> <amount>
    triggers when your zeny amount matches <condition> <amount>.
    Multiple lines are treated as AND conditions.

    soldout <condition> <slots>
    triggers when the amount of sold out item slots in your shop matches <condition> <slots>.
    Multiple lines are treated as AND conditions.

    status [not] <status> [, ...]
    triggers when you are [not] <status>.
    The statuses "dead" and "muted" are supported additionally.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    inventory "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your inventory.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    storage "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your storage.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    cart "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your cart.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    shop "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your shop.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    base <condition> <level>
    triggers when your baselevel matches <condition> <level>.
    Multiple lines are treated as AND conditions.

    job <condition> <level>
    triggers when your joblevel matches <condition> <level>.
    Multiple lines are treated as AND conditions.

    class <job>
    triggers when your jobclass is <job>

    spell <spell> [, ...]
    triggers when someone casts <spell> on you or you are in it's scope.
    Comma-separated arguments are treated as OR conditions.

    monster <monstername> [, ...]
    triggers when <monstername> is near.
    When triggered the special variables $.lastMonster and $.lastMonsterPos are set.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    notMonster <monstername> [, ...]
    triggers when a monster appears that is not in the list.
    Comma-separated arguments are treaded as AND conditions.

    aggressives <condition> <number>
    triggers at <number> of aggressives.
    Multiple lines are treated as AND conditions.

    player ("<playername>"|/<regexp>/[i]) [, <distance> ]
    triggers when <playername> is on screen or not more than <distance> blocks away.
    Multiple lines are treated as AND conditions.

    equipped [<slot>] (<item>|none) [, ...]
    triggers when <item> or none is equipped [in slot <slot>]
    Slots are topHead, midHead, lowHead, leftHand, rightHand, robe, armor, shoes, leftAccessory, rightAccessory and arrow.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    var <variable> (unset|<condition> <value>)
    triggers when <variable> is either unset or matches <condition> <value>.
    Multiple lines are treated as AND conditions.

    varvar <nested variable> (unset|<condition> <value>)
    triggers when <nested variable> is either unset or matches <condition> <value>.
    Multiple lines are treated as AND conditions.

    console ("<text>"|/<regexp>/[i])
    triggers when <text> is received on console or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastLogMsg.

    pm ("<text>"|/<regexp>/[i]) [, <player>]
    triggers when <text> is received by pm [from <player>] or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastpm and $.lastpmMsg.

    pubm ("<text>"|/<regexp>/[i]) [, <distance>]
    triggers when a public message [within a distance of <distance>] is received and it is <text> or matches <regexp>
    The i switch means the regexp is case insensitive.
    Sets $.lastpub and $.lastpubMsg.

    party ("<text>"|/<regexp>/[i])
    triggers when <text> is received by partychat or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastparty and $.lastpartyMsg.

    guild ("<text>"|/<regexp>/[i])
    triggers when <text> is received by guildchat or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastguild and $.lastguildMsg.

    hook <hookname>
    triggers when openkore calls <hookname>.

    save <hash key>
    (use in combination with hook)
    saves the value of <hash key> in a variable $.hooksave1 to $.hooksave

    run-once (0|1)
    When set to 1 the automacro will be deactivated after being triggered.
    Use the macro command release to reenable this automacro.

    overrideAI (0|1)
    When set to 1 the macro ignores openkore's AI. This means it won't pause upon "move" or "status dead".

    delay <n>
    Waits for <n> seconds before calling the corresponding macro.

    timeout <n>
    Wait at least for <n> seconds before this automacro can be triggered again.

    macro_delay <n>
    Overrides the global macro delay setting for the called macro.

    priority <num>
    Choose which automacros should be checked before others. The smaller <num> is is the sooner the automacro gets checked. If priority is not given, the priority is assumed to be 0 (zero: check first).

    exclusive (0|1)
    Automacros which have exclusive set cannot be interrupted by other automacros.
    As of macro 1.3.0 running macros can be interrupted by automacros by default. To disallow that behaviour either set this option or use the command line option -exclusive

    set <variable> <value>
    Sets variable <variable> to <value>. You can have multiple set lines per automacro.

    call <name>
    Calls macro <name> when the automacro is triggered.

    call {
    <instructions>
    }
    Runs <instructions> when the automacro is triggered.

    orphan <method>
    Sets the method of how to deal with orphaned macros.

    Implementasi

    1.saya mempunyai character level 98,saat dia mencapai level 99 saya ingin dia keluar dari program openkore (quit),bagaimana cara mengimplementasikan ke macro?

    Logikanya kita memakai trigger Base level sebagai pemicu ,so mari kita implementasikan

    Code:

    automacro Logout {
    base > 98
    call Quit
    }

    macro Quit {
    do quit
    {

    Oke mari sekarang kita belajar cara membuat macro sederhana
    Disini kita mengenal automacro dan macro yang mana keduanya sama sama "macro"

    Bedanya adalah automacro berdasarkan trigger atau pemicu yang akan berjalan otomatis tanpa campur tangan kita.

    Sedangkan macro adalah suatu cara memerintah bot kita,disamping menggunakan Openkore untuk melakukan tugas tertentu kita dapat menggunakan macro untuk mengontrol perilaku bot

    Membuat Macro Sederhana

    Sebelum dimulai,akan saya ajukan satu pertanyaan
    "apakah kamu sudah terbiasa dengan perintah perintah console ?"
    Jika belum ada baiknya kamu kunjungi link berikut yg lebih detail menjelaskan command console

    Console Commands

    Console Commands
    Code:

    http://www.openkore.com/wiki/index.php/Console_commands

    Chat Commands
    Code:

    http://www.openkore.com/wiki/index.php/Chat_Commands

    Basicnya semua perintah console bisa kamu implementasikan ke macro.

    Bagaimana automacro berjalan ?
    Code:

    automacro Anu {
    <kondisi> a
    <kondisi> b
    panggil macro Itu
    }

    macro Itu {
    do this
    do this again
    do that
    }

    So automacro Anu,akan terpicu jika kondisi a,dan kondisi b terpenuhi
    saat semua kondisinya terpenuhi maka automacro Anu akan memanggil makro Itu,saat terpanggil maka macro Itu akan mengeksekusi semua perintah yg telah di atur.

    Referensi dari Conditions,Special Variable,Trigger Condition

    Conditions
    Code:

    Condition Meaning
    < less than
    <= less than or equal to
    == equal to
    >= greater than or equal to
    > greater than
    != not equal to
    ~ <left part> is element of <right part (comma-separated list)>

    Special Keywords
    Code:

    @npc (<x> <y>)
    Expands to NPC's ID who's located at (<x>,<y>), or to -1 if the NPC was not found.
    @inventory (<item>)
    Searches your inventory for <item> and returns ID or -1 if the item was not found.
    @Inventory (<item>)
    same as @inventory but returns all matching IDs as a comma-separated list or -1 if the item was not found
    @cart (<item>)
    searches your cart for <item> and returns ID or -1 if the item was not found
    @Cart (<item>)
    same as @cart but returns all matching IDs as a comma-separated list or -1 if the item was not found
    @storage (<item>)
    searches your storage for <item> and returns ID or -1 if the item was not found
    @Storage (<item>)
    same as @storage but returns all matching IDs as a comma-separated list or -1 if the item was not found
    @player (<name>)
    looks for a player and returns ID or -1 if the player was not found
    @vender (<name>)
    looks for a vender and returns ID or -1 if the vender was not found
    @store (<name>)
    looks for an item in a store and returns ID or -1 if the item was not found
    @random ("<argument1>"[, "<argument2>"[, ...]])
    returns randomly one of the given arguments
    @rand (<n>, <m>)
    returns a random number between (and including) <n> and <m>
    @invamount (<item>)
    returns the amount of the given <item> in inventory
    @cartamount (<item>)
    returns the amount of the given <item> in cart
    @shopamount (<item>)
    returns the amount of the given <item> in shop
    @storamount (<item>)
    returns the amount of the given <item> in storage
    @eval (<argument>)
    evaluates the given <argument>
    @arg ("<argument>", <n>)
    returns the <n>th word of <argument> or an empty string if the word index is out of range
    @config (<variable>)
    returns the value of <variable> specified in config.txt

    Trigger Condition
    Code:

    mapchange (<mapname>|any) [, ...]
    Triggers when changing map to <mapname>. If the argument is any then it triggers on any map change.
    Comma-separated arguments are treated as OR conditions.

    hp <condition> <amount>[%]
    triggers when your hp match <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND Conditions.

    sp <condition> <amount>[%]
    triggers when your sp match <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND conditions.

    spirit <condition> <amount>
    triggers when your spirits match <condition> <amount>.
    Multiple lines are treated as AND conditions.

    weight <condition> <amount>[%]
    triggers when your weight matches <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND conditions.

    cartweight <condition> <amount>[%]
    triggers when your cart weight matches <condition> <amount> (absolute value) or <condition> <amount> percent (relative value).
    Multiple lines are treated as AND conditions.

    zeny <condition> <amount>
    triggers when your zeny amount matches <condition> <amount>.
    Multiple lines are treated as AND conditions.

    soldout <condition> <slots>
    triggers when the amount of sold out item slots in your shop matches <condition> <slots>.
    Multiple lines are treated as AND conditions.

    status [not] <status> [, ...]
    triggers when you are [not] <status>.
    The statuses "dead" and "muted" are supported additionally.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    inventory "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your inventory.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    storage "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your storage.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    cart "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your cart.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    shop "<item>" <condition> <amount> [, ...]
    triggers when you have <condition> <amount> of <item> in your shop.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    base <condition> <level>
    triggers when your baselevel matches <condition> <level>.
    Multiple lines are treated as AND conditions.

    job <condition> <level>
    triggers when your joblevel matches <condition> <level>.
    Multiple lines are treated as AND conditions.

    class <job>
    triggers when your jobclass is <job>

    spell <spell> [, ...]
    triggers when someone casts <spell> on you or you are in it's scope.
    Comma-separated arguments are treated as OR conditions.

    monster <monstername> [, ...]
    triggers when <monstername> is near.
    When triggered the special variables $.lastMonster and $.lastMonsterPos are set.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    notMonster <monstername> [, ...]
    triggers when a monster appears that is not in the list.
    Comma-separated arguments are treaded as AND conditions.

    aggressives <condition> <number>
    triggers at <number> of aggressives.
    Multiple lines are treated as AND conditions.

    player ("<playername>"|/<regexp>/[i]) [, <distance> ]
    triggers when <playername> is on screen or not more than <distance> blocks away.
    Multiple lines are treated as AND conditions.

    equipped [<slot>] (<item>|none) [, ...]
    triggers when <item> or none is equipped [in slot <slot>]
    Slots are topHead, midHead, lowHead, leftHand, rightHand, robe, armor, shoes, leftAccessory, rightAccessory and arrow.
    Comma-separated arguments are treated as OR conditions.
    Multiple lines are treated as AND conditions.

    var <variable> (unset|<condition> <value>)
    triggers when <variable> is either unset or matches <condition> <value>.
    Multiple lines are treated as AND conditions.

    varvar <nested variable> (unset|<condition> <value>)
    triggers when <nested variable> is either unset or matches <condition> <value>.
    Multiple lines are treated as AND conditions.

    console ("<text>"|/<regexp>/[i])
    triggers when <text> is received on console or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastLogMsg.

    pm ("<text>"|/<regexp>/[i]) [, <player>]
    triggers when <text> is received by pm [from <player>] or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastpm and $.lastpmMsg.

    pubm ("<text>"|/<regexp>/[i]) [, <distance>]
    triggers when a public message [within a distance of <distance>] is received and it is <text> or matches <regexp>
    The i switch means the regexp is case insensitive.
    Sets $.lastpub and $.lastpubMsg.

    party ("<text>"|/<regexp>/[i])
    triggers when <text> is received by partychat or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastparty and $.lastpartyMsg.

    guild ("<text>"|/<regexp>/[i])
    triggers when <text> is received by guildchat or the text received matches <regexp>.
    The i switch means the regexp is case insensitive.
    Sets $.lastguild and $.lastguildMsg.

    hook <hookname>
    triggers when openkore calls <hookname>.

    save <hash key>
    (use in combination with hook)
    saves the value of <hash key> in a variable $.hooksave1 to $.hooksave

    run-once (0|1)
    When set to 1 the automacro will be deactivated after being triggered.
    Use the macro command release to reenable this automacro.

    overrideAI (0|1)
    When set to 1 the macro ignores openkore's AI. This means it won't pause upon "move" or "status dead".

    delay <n>
    Waits for <n> seconds before calling the corresponding macro.

    timeout <n>
    Wait at least for <n> seconds before this automacro can be triggered again.

    macro_delay <n>
    Overrides the global macro delay setting for the called macro.

    priority <num>
    Choose which automacros should be checked before others. The smaller <num> is is the sooner the automacro gets checked. If priority is not given, the priority is assumed to be 0 (zero: check first).

    exclusive (0|1)
    Automacros which have exclusive set cannot be interrupted by other automacros.
    As of macro 1.3.0 running macros can be interrupted by automacros by default. To disallow that behaviour either set this option or use the command line option -exclusive

    set <variable> <value>
    Sets variable <variable> to <value>. You can have multiple set lines per automacro.

    call <name>
    Calls macro <name> when the automacro is triggered.

    call {
    <instructions>
    }
    Runs <instructions> when the automacro is triggered.

    orphan <method>
    Sets the method of how to deal with orphaned macros.

    Implementasi

    1.saya mempunyai character level 98,saat dia mencapai level 99 saya ingin dia keluar dari program openkore (quit),bagaimana cara mengimplementasikan ke macro?

    Logikanya kita memakai trigger Base level sebagai pemicu ,so mari kita implementasikan

    Code:

    automacro Logout {
    base > 98
    call Quit
    }

    macro Quit {
    do quit
    {

    do quit = lakukan perintah console,coba sekarang juga di console openkore kamu ketik quit so pasti openkore kamu akan di close

    Saia ambil dari forum sebelah nih Di rangkum jadi 1 Moga bisa membantu
    Klo ada yg mau share atau Tanya silakan yach
    Mohon Bantuannya yach yg bisa
    Kita Beljar Bersama


    NB:Masih NewBie juga nih di Macro
    Last edited by -pare-; 27-01-09 at 01:00.

  2. #2

    Join Date
    Jan 2008
    Location
    dpn kompi.... ^^
    Posts
    1,020
    Points
    1,209.90
    Thanks: 0 / 0 / 0

    Default

    wew, panjang amad cc...
    kynya gw malahan jd capeee bacanya drpd ngertinya...
    wakakakak!!
    but, thx a lot..!! ^^

  3. #3

    Join Date
    Oct 2007
    Location
    -j.town-
    Posts
    165
    Points
    215.80
    Thanks: 1 / 0 / 0

    Default

    mantep baru baca 1/2 jadi comment dolo
    \thx

  4. #4

    Join Date
    Jul 2008
    Posts
    30
    Points
    37.80
    Thanks: 0 / 0 / 0

    Default

    wei, lo jelasin lebih singkat donk.. Klo mau auto paket ama auto heal aja gmn ?? ama kalo bs auto warp! kyk pakt di pvp de


    Thx

  5. #5
    Haykel's Avatar
    Join Date
    Feb 2008
    Location
    JAKARTA
    Posts
    86
    Points
    184.30
    Thanks: 0 / 0 / 0

    Default

    gw Bisa bantu Urusan Macro bisa Di bilang Lumayan Menguasai Kalo maw Tanya2 masukin Sene aja Ntar gw BAntu....^^
    GW juga buKa jasa BOT bisa Di liat di Forum Black Market...^^

  6. #6
    -pare-'s Avatar
    Join Date
    Apr 2008
    Location
    SMALLVILLE
    Posts
    198
    Points
    386.81
    Thanks: 0 / 0 / 0

    Default

    Spoiler untuk MACRO PAKET :

    automacro paket {
    console /\[(jarak|dist)=(.*)\] (.*) \((\d+)\): (\*Flag\s\d\*|combo)$/
    exclusive 1
    run-once 1
    call {
    $distance = $.lastMatch2
    $namaPlayer = $.lastMatch3
    $playerID = $.lastMatch4
    $playerguild = @eval (exists $:layers{$:layersID[$playerID]}->{guild} ? $:layers{$:layersID[$playerID]}->{guild}{name} : 'null')

    #Nama guild yg mau di paket
    $guild1 = Prison Break Season 3 < diisii nama guild yg mau di paketin
    $guild2 = nama guild
    $guild3 = nama guild
    $guild4 = nama guild

    if ($playerguild == $guild1) goto oke
    if ($playerguild == $guild2) goto oke
    if ($playerguild == $guild3) goto oke
    if ($playerguild == $guild4) goto oke
    goto lain
    ke
    if ($distance > 8) goto jauh
    do c sabar agak lag ini aza lg maketin $namaPlayer


    do sp 34 $playerID 10

    pause 0.2
    do sp 29 $playerID 10

    pause 0.2
    do sp 66 $playerID 5
    pause 0.2
    goto end

    :jauh
    do c ui $namaPlayer deketan dung say
    goto end
    :lain
    do c comb0 khusus buat Pemuja PAre Ganteng
    :end

    release paket
    }
    }

    automacro chat1 {
    console /paket/
    exclusive 1
    run-once 1
    call chat2
    }

    macro chat2 {
    do c ketik combo untuk kalian paket
    release all
    }

    automacro sp {
    sp < 20%
    exclusive 1
    run-once 1
    call kering
    }

    macro kering {
    do c sabar all sp ku tinggal $.sp
    pause 10
    release sp
    }

    automacro brito {
    console /\[(jarak|dist)=(.*)\] (.*) \((\d+)\): (\*Fla\s\d\*|brito)$/
    exclusive 1
    run-once 1
    call {
    $distance = $.lastMatch2
    $namaPlayer = $.lastMatch3
    $playerID = $.lastMatch4
    $playerguild = @eval (exists $:layers{$:layersID[$playerID]}->{guild} ? $:layers{$:layersID[$playerID]}->{guild}{name} : 'null')

    #Nama guild yg mau di paket
    $guild1 = Prison Break Season 3
    $guild2 = nama guild
    $guild3 = nama guild
    $guild4 = nama guild

    if ($playerguild == $guild1) goto oke
    if ($playerguild == $guild2) goto oke
    if ($playerguild == $guild3) goto oke
    if ($playerguild == $guild4) goto oke
    goto lain
    ke

    #skill brito
    do c brito silahkan masuk !!!
    do sl 27 88 124 4
    pause 0.5
    do warp 3

    pause 0.2
    goto end

    :lain
    do c warp Khusus Narapidana
    do c Sip, He..he..
    do e gg
    :end

    release brito
    }
    }

    automacro luina {
    console /\[(jarak|dist)=(.*)\] (.*) \((\d+)\): (\*Fla\s\d\*|luina)$/
    exclusive 1
    run-once 1
    call {
    $distance = $.lastMatch2
    $namaPlayer = $.lastMatch3
    $playerID = $.lastMatch4
    $playerguild = @eval (exists $:layers{$:layersID[$playerID]}->{guild} ? $:layers{$:layersID[$playerID]}->{guild}{name} : 'null')

    #Nama guild yg mau di paket
    $guild1 = Prison Break Season 3
    $guild2 = nama guild
    $guild3 = nama guild
    $guild4 = nama guild

    if ($playerguild == $guild1) goto oke
    if ($playerguild == $guild2) goto oke
    if ($playerguild == $guild3) goto oke
    if ($playerguild == $guild4) goto oke
    goto lain
    ke

    #skill luina
    do c luina4 silahkan masuk !!!
    do sl 27 87 121 4
    pause 0.5
    do warp 2

    pause 0.2
    goto end

    :lain
    do c warp Khusus Narapidana
    do c Sip, He..he..
    do e gg
    :end

    release luina
    }
    }

    automacro green {
    console /\[(jarak|dist)=(.*)\] (.*) \((\d+)\): (\*Fla\s\d\*|green)$/
    exclusive 1
    run-once 1
    call {
    $distance = $.lastMatch2
    $namaPlayer = $.lastMatch3
    $playerID = $.lastMatch4
    $playerguild = @eval (exists $:layers{$:layersID[$playerID]}->{guild} ? $:layers{$:layersID[$playerID]}->{guild}{name} : 'null')

    $guild1 = Prison Break Season 3
    $guild2 = nama guild
    $guild3 = nama guild
    $guild4 = nama guild

    if ($playerguild == $guild1) goto oke
    if ($playerguild == $guild2) goto oke
    if ($playerguild == $guild3) goto oke
    if ($playerguild == $guild4) goto oke
    goto lain
    ke

    #skill green
    do c GW4 silahkan masuk !!!
    do sl 27 87 151 159
    pause 0.5
    do warp 1

    pause 0.2
    goto end

    :lain
    do c warp Khusus Narapidana
    do c Sip, He..he..
    do e gg
    :end

    release green
    }
    }

    automacro trans {
    console /Item added to inventory: Blue Gemstone/
    exclusive 1
    run-once 1
    call trans1
    }

    macro trans1 {
    do c Makasih Blue gemnya..skr mao kmn?? brito?luina?green?
    release trans
    }

    automacro gagal {
    console /Skill Warp Portal failed/
    exclusive 1
    run-once 1
    call gagal1
    }
    macro gagal1 {
    do c woi Misi yach MAu di Warp Didepan sana~
    release gagal
    }

    automacro abis {
    inventory "Blue Gemstone" < 1
    exclusive 1
    run-once 1
    call gem
    }

    macro gem {
    do c gem abis tolong di trans !!
    pause 10
    release abis
    }


    Pake ini aja kk

    Ini biasa di pake bwat woe

    pake comand bendera

    pake ok 2.0.5.1
    Last edited by -pare-; 27-01-09 at 01:02.

  7. #7
    Haykel's Avatar
    Join Date
    Feb 2008
    Location
    JAKARTA
    Posts
    86
    Points
    184.30
    Thanks: 0 / 0 / 0

    Default

    zzzz kalo Paketer wat di dalem PVP rom ada tambahan nya...

    macro wat ngmg ama Penjaga PVP na...^^

  8. #8
    -pare-'s Avatar
    Join Date
    Apr 2008
    Location
    SMALLVILLE
    Posts
    198
    Points
    386.81
    Thanks: 0 / 0 / 0

    Default

    yg perlu diperhatikan
    1. Map yg mahu dituju ada di dalam folder field

    2. Cara untuk kesana.. guna macro do talknpc seq/talk @npc(x y) atau guna tables/portals.txt (AI)

    macro pvp {
    do talk @ncp (63 63)
    do talk cont
    do talk resp 1
    do talk cont
    {

  9. #9
    InstincT's Avatar
    Join Date
    Oct 2007
    Location
    Heaven
    Posts
    377
    Points
    523.40
    Thanks: 1 / 0 / 0

    Default

    kk saya newbie nih mau main knight di server fnc... skrg baru lvl 1, mau main hehehehe...

    kk aku da baca yang thread bot semua, tapi bener2 bingung d... kk boleh bantu ga ? ada bot yang bisa saya download lgsg pakai gitu ?? trus da coba jalan bot baru pelan2 saya belajar editnya ??

    tolong ya kk.. muach2

  10. #10

    Join Date
    Mar 2007
    Location
    jatim
    Posts
    88
    Points
    96.80
    Thanks: 0 / 0 / 0

    Default bole req kk?

    kk saya bole req macro...buat kembali ke lockmap gk?

    kondisi....:bot balik dr hunt berat 50% trus abis dia jual barang ke npc d morroc trus ...kan mo balik kek lockmap tmpt hunt tuh tp pake npc warper...

    gmn macronya kk thanks before itu aja

  11. #11

    Join Date
    Oct 2006
    Posts
    89
    Points
    18.72
    Thanks: 0 / 0 / 0

    Default

    Buat private server ?
    Kalo kondisi yg kamu sebut di atas mah, mending gak usah pake macro. Cukup kamu edit aja portals.txt nya untuk menggunakan npc warper ke lockmap.

    Kalo berat 50% trus balik, cukup di set di config.txt aja, maxweightnya di set ke 50. Autosellnya jg gak perlu pake macro, di config jg sudah disediain fasilitas autosell.

  12. #12
    MiriMoN's Avatar
    Join Date
    Aug 2007
    Location
    SoLo KOta MeGApoLIz
    Posts
    890
    Points
    738.80
    Thanks: 37 / 13 / 12

    Default

    req macro buat speed pot..

    tolong kk
    <a href=http://dnec.dota.web.id:8000/dnec/user.php?u=iucifer target=_blank rel=nofollow><a href=http://dnec.dota.web.id:8000/dnec/sig.php?u=iucifer target=_blank rel=nofollow>http://dnec.dota.web.id:8000/dnec/sig.php?u=iucifer</a></a>

  13. #13
    [sbi]babulls's Avatar
    Join Date
    Dec 2007
    Location
    b'TnZorQ
    Posts
    136
    Points
    159.30
    Thanks: 0 / 0 / 0

    Default

    gini nih kk .
    priest aku suka ketinggalan . alhasil char ku suka mati gara" ga di heal sm priest gara" lelet .
    nah ada ga macro biar masternya nungguin priest yg ketinggalan itu ?
    soalnya mati trus ini gara" lelet di priest nya aja .
    mohon bantuannya .

  14. #14
    [V]in_Z's Avatar
    Join Date
    Jun 2007
    Location
    [W]ho_want_to_kno[W]
    Posts
    1,848
    Points
    2,097.80
    Thanks: 0 / 0 / 0

    Default

    klo misalny pgn ngeset warpny bkn dikasih gem.. tp ditrans zeny.. itu bagaimana kk?


    Tolong di Sticky dunk threadny.. baguz nee..!!
    Too Hard 4 Me But Not too easy 4 U

  15. #15

    Join Date
    Dec 2006
    Posts
    130
    Points
    218.40
    Thanks: 0 / 0 / 0

    Default

    Saya ingin Macro klo ketemu sejumlah musuh agresif dan MVP DC. gmn yah caranya? Trus macronya itu di tulis di Notepad kan. Nama file notepadnya apa dan diletakkan di folder mana? Saya udah coba set menurut yg diatas tapi sepertinya masi ga isa jalan. Thx.

Page 1 of 6 12345 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
IDGS © 2001 - 2011 All Right Reserved | One Stop Solution, Gamers Destination.
vBulletin® Version 4.1.12 | Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.