Главная Контакты

Навигация

Подписывайся

Опрос пользователей

Какую из новых MMORPG вы предпочли бы?

ArcheAge
Blade & Soul
Guild Wars 2
TERA Online
Lineage 2 THE BEST!!!11
Ни одну из предложенных

Популярное

    Реклама

    Партнеры

    Описание комманд и краткий мануал по скриптам L2Walker

    7-05-2012, 19:21 | Раздел: Lineage 2 | Просмотров: 8359

     

     


     

    Описание основных комманд используемых в скриптах L2Walker. Перевод в процессе.

     

     

     

     

     

    L2Walker Script Commands & Tutorial 



    SET(L2WALKER,
    ENABLE|DISABLE) 
    Explained: starts/stops the Auto Function, same like pressing the Insert button
    Example: SET(L2WALKER,ENABLE)

    SET([
    FIGHTSTART|FIGHTSTOP])
    Explained: starts/stops fighting, same as using the End button
    Example: SET(FIGHTSTART) // starts to fight

    USESKILL(
    SkillName[ID=Number],SELF|PLAYER|PARTY|NPC|PET,TargetName)
    Explained: Uses a skill
    SELF // on the characater itself
    PLAYER // on a player
    PARTY // on a party member
    NPC // on a NPC
    PET // on a pet
    TargetName // duh...
    SkillName // doh...
    Number // the ID of the skill
    Example: USESKILL(Zealot[ID=420],SELF)

    SET(RANGETYPE,RAND)
    Explained: Sets pathing to "Rand" mode

    SET(RANGETYPE,STARTPOS,radius)
    Explained: Sets pathing to "Combat Begin Point Is Center Point" mode
    Example: SET(RANGETYPE,STARTPOS,1500) // fights at a 1500 radious from the starting point

    SET(RANGETYPE,DEFPOS,x,y,z,radius)
    Explained: Sets pathing to "Center Point" mode
    Example: SET(RANGETYPE,DEFPOS,43950,51153,-3022,2000) // Takes 43950,51153, -3022 as the center point, and the radius is 2000

    SET(RANGETYPE,DEFRANGE)
    Explained: Sets pathing to "Define Range" mode

    SET(DEFRANGE,ADD,x,y,z)
    Explained: Adds Range pathpoints
    Example: SET(DEFRANGE,ADD,43950,51153,-3022)

    SET(DEFRANGE,CLEAR)
    Explained: Clears all rangepoints

    SET(RANGETYPE,DEFPATH)
    Explained: Explained: Sets pathing to "Define Pathpoint" mode

    SET(DEFPATH,ADD,x,y,z,radius)
    Explained: Adds Pathpoints
    Example: SET(DEFPATH,ADD,43950,51153,-3022,1000)

    SET(DEFPATH,CLEAR)
    Explained: Clears all pathpoints

    SET(
    MON,ATTACK|NOATTACK|ATTACKONE,MonsterName[ID=Number];MonsterName1[ID=Number])
    Explained: Sets the monster parameters for attacking
    ATTACK // attack it
    NOATTACK // do not attack it
    ATTACKONE // attacks only if its alone
    MonsterName // The name of the mob
    Number // Monster ID

    SET(ITEM,
    PICK|NOPICK,ItemName[ID=Number];ItemName1[ID=Number])
    Explained: Sets the pickup parameters
    PICK // picks it up
    NOPICK // does not pick it up

    MOVETO(x,y,z)
    Explained: Moves to x, y, z

    NPCSEL(NpcName[ID=Number])
     // ID is not mandatory
    Explained: Chooses a NPC

    NPCDLG(NpcName[ID=Number])
     // ID is not mandatory
    Explained: Opens up the dialog list of the NPC

    DLGSEL(Dialog)
    Explained: Chooses a dialog

    GOHOME()
    Explained: go to nearest village

    SAY(something)
    Explained: speaks in white chat

    MSG(something)
    Explained: L2Walker shows up a msg on the chat that only u can see

    UseItem(ItemName[ID=Number])
    Explained: Uses an item

    ChangeWaitType(Number)
    The character stands or sits down
    Number = 0 sits down
    Number = 1 stands up

    StrInDlg(Dialogue)
    Explained: Executes commands if specific text is found in a dialog
    Example:
     
    NPCSEL(NPC[ID=1234])
    NPCDLG(NPC[ID=1234])
    DLGSEL(Hello)
    STRINDLG(Hi to you)
    {
    DLGSEL(Hi to you)
    JMP(Quest)
    }
    JMP(bye)

    StrNotInDlg(Dialogue)
    Explained: The opposite of the above

    CharStatus(
    CHP|CMP|HP|MP|WEIGHT|LV|STAND,>=|>|==|!=|<|<= ,Number)
    Explained: Checks various character info and executes commands if true
    HP-MP-WEIGHT are percentages
    CHP-CMP are actual values
    LV is the level of your char
    Stand is 1 if char is standing or 0 is its sitting
    <= less than or equal
    < less than
    == equal
    != not equal
    > greater than
    >= greater than or equal

    ItemCount(
    ItemName[ID=Number],>=|>|==|!=|<|<=,Quantity)
    Explained: Checks how much of a specific item you have on your char
    <= less than or equal
    < less than
    == equal
    != not equal
    > greater than
    >= greater than or equal

    JMP(LabelName)
    Explained: Searches for a line with LABEL(LabelName) and continues from there

    CALL(LabelName)
    Explained: Same as JMP but after it reads the return command it will go to next command after the initial CALL
    Example:
    CALL(Label)
    SAY(BYE)
    EXIT()
    LABEL(Label)
    SAY(HI)
    RETURN()

    RETURN()
    Explained: When u use a CALL command u must use this to return

    LABEL(Name)
    Explained: used for JMP or CALL

    EXIT()
    Explained: terminates the script, same as pressing the Exit button in Script Run

    PAUSE()
    Explained: pauses the script, same as pressing the Pause Button

    DELAY(X)
    Explained: waits for X milliseconds

    Some information may be out dated, more information is accepted.

    Example Script:

    This script will check if player "DD" is in your party and if they have the Berserker Spirit. If they do not have this buff it tells the character to buff them. After the check, the script says to wait 1 second and then buffs Prophecy of Fire. Finally the script delays for 5 seconds and begins checks again. This script is for use as an Out of Party prophet. You will need to create a DD script to invite and kick the prophet.

    Code:

    Label(PP)

    IsMember(DD)

    {

    !MemberBuffs(DD,Berserker Spirit[ID=1062])

    {

    USESKILL(Berserker Spirit[ID=1062],PARTY,DD)

    }

    Delay(1000)

    USESKILL(Prophecy of Fire[ID=1356],PARTY,DD)

    Delay(5000)

    }

    Delay(500)

    Jmp(PP)

    You can get many up to date Skill IDs and Item IDs for L2 here: http://l2jdb.l2jdp.com/ 


    Вернуться

    Комментарии ВКонтакте

    Вы зашли на сайт как незарегистрированный юзер.
    Рекомендуется зарегистрироваться либо залогиниться.