L2NET script - trao đổi - chia sẻ - từ cơ bản đến nâng cao!!!

Thảo luận trong 'L2's Third Party' bắt đầu bởi buno, 2/10/11.

  1. nco2

    nco2 Youtube Master Race

    Tham gia ngày:
    21/3/07
    Bài viết:
    23
    mọi người giúp mình cái script nay` với.
    mình có 2 con 1 cùi bắp đang train lv nick la ABC, 1 là con iss buff nick la XYZ
    mình đã set cho con iss XYZ tự buff theo khoảng thời gian 25p 1 lần, và tự đi theo con ABC, nhưng phải trong pt mới buff được.
    vì vậy mình muốn làm 1 cái script cho con ABC tự động mời pt cho con iss, sau khi con iss buff xong thì động out pt. (con iss đã tự động jion pt rồi)
     
  2. jakkaoru

    jakkaoru Legend of Zelda

    Tham gia ngày:
    6/3/11
    Bài viết:
    938
    Nơi ở:
    Hậu Giang
    cho mình xin script auto chat với bạn, mình mò mãi mà không thấy đâu hết.
     
  3. NeVerLand__

    NeVerLand__ Youtube Master Race

    Tham gia ngày:
    23/8/11
    Bài viết:
    42
    lâu rồi mới chơi lại l2 , nên l2 quên khá nhiều roài , bác nào có cái script chết tự về làng lên lại không , up lên cho em xin 1 cái để làm mẫu viết lại . Script ở sever nào cũng đc ....
     
  4. jakkaoru

    jakkaoru Legend of Zelda

    Tham gia ngày:
    6/3/11
    Bài viết:
    938
    Nơi ở:
    Hậu Giang
    ai cho mình xin bảng l2net Interlude sử dụng được Macro không vậy, tại vì bảng hiện tại mình đang xài nó không hiểu Macro là gì cho nên sử dụng không được, hình nó nè 1.JPG
    nó không hiểu Macro là gì cho nên add skill vào Macro cũng không có tác dụng, ai có cách chỉ mình với.
     
  5. Arachnia

    Arachnia Youtube Master Race

    Tham gia ngày:
    13/7/12
    Bài viết:
    5
    cho minh xin cai web co' cac' cau lenh de? editor Script l2net .
    may cai ban up die ca? roi .
    thx !!
     
  6. Opeth007

    Opeth007 Mr & Ms Pac-Man

    Tham gia ngày:
    3/8/08
    Bài viết:
    296
    http://wiki.ltwonet.com/wiki/Jingjing/

    Xin hỏi, có cái editor nào giúp canh lề, ra vô, lên xuống, bôi màu các hàm... nhằm hiển thị các câu lệnh rõ ràng và mạch lạch hơn ko ah?
     
  7. Ring Mao

    Ring Mao T.E.T.Я.I.S

    Tham gia ngày:
    28/7/10
    Bài viết:
    640
    Notepad++ hoặc dùng cái script editor đi kèm them l2.net
     
  8. Opeth007

    Opeth007 Mr & Ms Pac-Man

    Tham gia ngày:
    3/8/08
    Bài viết:
    296
    Đang dùng cái script editor của l2net nhưng ko biết làm sao để nó "tự động canh dòng", vd như mỗi khi mở hàm "if" thì nó sẽ tự động dạt vào trong 1 tí đến "end" thì lồi ra tuơng đương với "if", vậy dễ nhìn, dễ kiểm tra code. Có cách nào hoặc tool nào có thể làm như thế ko?
     
  9. Ring Mao

    Ring Mao T.E.T.Я.I.S

    Tham gia ngày:
    28/7/10
    Bài viết:
    640
    JingJing là language không phổ biến, vì vậy không có editor nào hỗ trợ hết như vậy đâu. Viết một editor hoàn chỉnh như vậy rất tốn kém thời gian mà người dùng không nhiêu. Mình có chỉnh lại Notepad++ để hỗ trợ highlight và auto complete cho JingJing, còn auto format thì phải tự canh thôi.

    Link: Notepad++ for JingJing
     
  10. Synchronize_

    Synchronize_ Youtube Master Race

    Tham gia ngày:
    5/6/12
    Bài viết:
    77
    Nơi ở:
    Bình Dương
    Để lấy time và tên buff trên char của mình thì dùng lệnh nào vậy? Ring Mao hướng dẫn giúp mình được không? hoặc có code tham khảo cũng được.
     
  11. gavn1234

    gavn1234 Youtube Master Race

    Tham gia ngày:
    9/5/12
    Bài viết:
    15
    bác nào có thể giúp mình với.tình hình là mình đi suu tầm dc cai script làm lvl từ 1-40.nhưng nó nói chuyện nhận quest với npc xong là nó nói hoài ko thèm di chuyển nửa
    Script đây bác nào pro giúp với :
    /* This Scipt was created with JingJing IDE.
    * Author: mpj123
    * @ 2012.January.15 at 01:36 AM
    */


    //Choose which item to equipt
    //1 Apprentice Adventurer's Staff. (not recommended, use knife instead)
    //2 Apprentice Adventurer's Bow.
    //3 Apprentice Adventurer's Cestus.
    //4 Apprentice Adventurer's Knife.
    //5 Apprentice Adventurer's Bone Club.
    DEFINE_GLOBAL INT Equipt1 4




    //Includes
    INCLUDE stdlib\Inventory.l2c
    INCLUDE StdLib\Player.l2c
    INCLUDE StdLib\NPC.l2c


    //Setting botsets


    //declare events
    SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" questhandler 134
    SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" HTMLhandler 254
    SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" HTMLhandler2 25


    //define globals
    DEFINE_GLOBAL INT TDIST 0
    DEFINE_GLOBAL INT HOW_GAY_IS_MPJ 30
    DEFINE_GLOBAL INT MAXMOVES 0
    DEFINE_GLOBAL STRING PNAME ""
    DEFINE_GLOBAL INT DIST 0
    DEFINE_GLOBAL ARRAYLIST NPCS 0
    DEFINE_GLOBAL INT targetnext 0
    DEFINE_GLOBAL INT ISMOB 0


    //Quest variables
    DEFINE_GLOBAL INT QUEST 0


    DEFINE_GLOBAL INT Pantheon1 0
    DEFINE_GLOBAL INT Pantheon2 0
    DEFINE_GLOBAL INT Pantheon3 0
    DEFINE_GLOBAL INT Pantheon4 0
    DEFINE_GLOBAL INT Pantheon5 0




    DEFINE_GLOBAL INT Theodore1 0
    DEFINE_GLOBAL INT Theodore2 0


    DEFINE_GLOBAL INT Shannon1 0
    DEFINE_GLOBAL INT Shannon2 0
    DEFINE_GLOBAL INT Shannon3 0
    DEFINE_GLOBAL INT Shannon4 0


    DEFINE_GLOBAL INT Evain1 0
    DEFINE_GLOBAL INT Evain2 0
    DEFINE_GLOBAL INT Evain3 0
    DEFINE_GLOBAL INT Evain4 0


    DEFINE_GLOBAL INT Scarecrow1 0
    DEFINE_GLOBAL INT Scarecrow2 0


    DEFINE_GLOBAL INT NewbieHelper1 0
    DEFINE_GLOBAL INT NewbieHelper2 0


    DEFINE_GLOBAL INT Holden1 0


    DEFINE_GLOBAL INT Guard1 0


    DEFINE_GLOBAL INT Aymen1 0


    DEFINE_GLOBAL INT Gallint1 0
    DEFINE_GLOBAL INT Gallint2 0
    DEFINE_GLOBAL INT Gallint3 0
    DEFINE_GLOBAL INT Gallint4 0


    DEFINE_GLOBAL INT Black1 0


    DEFINE_GLOBAL INT thief 0


    DEFINE_GLOBAL INT Toyron1 0


    //Start script
    CALL PROXIMITY VOID 3 #i-114385 #i260148 #i-1192
    CALL PROXIMITY VOID 3 #i-114377 #i260254 #i-1176


    //we are at pantheon ready to talk
    WHILE Pantheon1 == 0
    COMMAND "/target Pantheon"
    SLEEP 1000
    COMMAND "/target Pantheon"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=1&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10320&reply=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_accept?quest_id=10320"
    WEND


    //move to theodore
    CALL PROXIMITY VOID 3 #i-113990 #i259438 #i-1192
    CALL PROXIMITY VOID 3 #i-114359 #i258414 #i-1192
    CALL PROXIMITY VOID 3 #i-114348 #i257258 #i-1136
    CALL PROXIMITY VOID 3 #i-113892 #i256986 #i-1136
    CALL PROXIMITY VOID 3 #i-114000 #i256681 #i-1248
    CALL PROXIMITY VOID 3 #i-114360 #i256567 #i-1280
    CALL PROXIMITY VOID 3 #i-114379 #i255108 #i-1520


    //talk and finish quest from pantheon1
    WHILE Theodore1 == 0
    COMMAND "/target Theodore"
    SLEEP 1000
    COMMAND "/target Theodore"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=0&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10320&reply=2"
    SLEEP 1000
    WEND


    //obtain quest for shannon
    WHILE Theodore2 == 0
    COMMAND "/target Theodore"
    SLEEP 1000
    COMMAND "/target Theodore"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=3&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10321&reply=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_accept?quest_id=10321"
    SLEEP 1000
    WEND






    //move to Shannon
    CALL PROXIMITY VOID 3 #i-113373 #i254747 #i-1504
    CALL PROXIMITY VOID 3 #i-112578 #i254829 #i-1520
    CALL PROXIMITY VOID 3 #i-111416 #i255834 #i-1440


    //finish quest from Theodore
    WHILE Shannon1 == 0
    COMMAND "/target Shannon"
    SLEEP 1000
    COMMAND "/target Shannon"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=0&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10321&reply=2"
    SLEEP 1000
    WEND






    //start newbie training quest
    WHILE Shannon2 == 0
    COMMAND "/target Shannon"
    SLEEP 1000
    COMMAND "/target Shannon"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=3&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10322&reply=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_accept?quest_id=10322"
    SLEEP 1000
    WEND


    //move to training dummies
    CALL PROXIMITY VOID 3 #i-112630 #i254663 #i-1528
    CALL PROXIMITY VOID 3 #i-112143 #i254154 #i-1544
    CALL PROXIMITY VOID 3 #i-110798 #i253774 #i-1784
    CALL PROXIMITY VOID 3 #i-110771 #i253509 #i-1736


    //talk to Evain
    WHILE Evain1 == 0
    COMMAND "/target Evain"
    SLEEP 1000
    COMMAND "/target Evain"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=0&option=1"
    SLEEP 1000
    WEND






    //move next to scarecrows
    CALL PROXIMITY VOID 3 #i-110810 #i253925 #i-1792


    QUEST = 0
    //kill scarecrow
    WHILE QUEST == 0
    COMMAND "/target Scarecrow"
    sleep 500
    WEND


    //move back to evain
    CALL PROXIMITY VOID 3 #i-110772 #i253582 #i-1760


    WHILE Evain2 == 0
    COMMAND "/target Evain"
    SLEEP 1000
    COMMAND "/target Evain"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=2&option=1"
    SLEEP 1000
    WEND






    WHILE NewbieHelper1 == 0
    COMMAND "/target Newbie Helper"
    SLEEP 1000
    COMMAND "/target Newbie Helper"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10322&reply=1"
    SLEEP 1000
    WEND


    CALL PROXIMITY VOID 3 #i-110863 #i253932 #i-1776


    QUEST = 0
    //kill scarecrow
    WHILE QUEST == 0
    COMMAND "/target Scarecrow"
    sleep 500
    WEND






    //move back to evain
    CALL PROXIMITY VOID 3 #i-110781 #i253665 #i-1784
    CALL PROXIMITY VOID 3 #i-110758 #i253529 #i-1736




    WHILE Evain3 == 0
    COMMAND "/target Evain"
    SLEEP 1000
    COMMAND "/target Evain"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=5&option=1"
    SLEEP 1000
    WEND


    if Equipt1 == 1
    USE_ITEM 7816
    endif


    if Equipt1 == 2
    USE_ITEM 7820
    endif


    if Equipt1 == 3
    USE_ITEM 7819
    endif


    if Equipt1 == 4
    USE_ITEM 7818
    endif


    if Equipt1 == 5
    USE_ITEM 7817
    endif


    WHILE Evain4 == 0
    COMMAND "/target Evain"
    SLEEP 1000
    COMMAND "/target Evain"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10323&reply=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_accept?quest_id=10323"
    SLEEP 1000
    WEND


    CALL PROXIMITY VOID 3 #i-110761 #i253788 #i-1784
    CALL PROXIMITY VOID 3 #i-110362 #i253353 #i-1776
    CALL PROXIMITY VOID 3 #i-109996 #i252363 #i-2000
    CALL PROXIMITY VOID 3 #i-110400 #i252473 #i-1992


    WHILE Holden1 == 0
    COMMAND "/target Holden"
    SLEEP 1000
    COMMAND "/target Holden"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=-3500&reply=1"
    SLEEP 2000

    //check to see if we teleported
    DISTANCE DIST -113826 247730 -7872 CHAR_X CHAR_Y CHAR_Z
    IF DIST < 500
    Holden1 = 1
    ENDIF
    WEND


    //kill crawlers 1
    CALL PROXIMITY VOID 3 #i-114904 #i247930 #i-7872
    CALL ATTACK VOID 1 #i1
    CALL CREATEPOLYGON VOID 2 #i200 #i200
    sleep 2000
    WHILE TARGET_CUR_HP > 0
    sleep 100
    WEND
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CALL ATTACK VOID 1 #i0


    //kill crawlers 2
    CALL PROXIMITY VOID 3 #i-114967 #i248144 #i-7872
    CALL ATTACK VOID 1 #i1
    CALL CREATEPOLYGON VOID 2 #i200 #i200
    sleep 2000
    WHILE TARGET_CUR_HP > 0
    sleep 100
    WEND
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CALL ATTACK VOID 1 #i0


    //kill crawlers 3
    CALL PROXIMITY VOID 3 #i-114609 #i248541 #i-7872
    CALL ATTACK VOID 1 #i1
    CALL CREATEPOLYGON VOID 2 #i200 #i200
    sleep 2000
    WHILE TARGET_CUR_HP > 0
    sleep 100
    WEND
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CALL ATTACK VOID 1 #i0


    //kill crawlers 4
    CALL PROXIMITY VOID 3 #i-114147 #i248455 #i-7872
    CALL ATTACK VOID 1 #i1
    CALL CREATEPOLYGON VOID 2 #i200 #i200
    sleep 2000
    WHILE TARGET_CUR_HP > 0
    sleep 100
    WEND
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CALL ATTACK VOID 1 #i0


    //move to guard
    CALL PROXIMITY VOID 3 #i-114800 #i248358 #i-7872


    WHILE Guard1 == 0
    COMMAND "/target Guard"
    SLEEP 1000
    COMMAND "/target Guard"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10323&reply=1"
    WEND
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250


    sleep 1000
    //activate SS
    INJECT "D0 3B 00 2B 07 00 00 01 00 00 00"


    //kill crawlers 1
    CALL PROXIMITY VOID 3 #i-114904 #i247930 #i-7872
    CALL ATTACK VOID 1 #i1
    CALL CREATEPOLYGON VOID 2 #i200 #i200
    sleep 2000
    WHILE TARGET_CUR_HP > 0
    sleep 100
    WEND
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CALL ATTACK VOID 1 #i0


    //kill crawlers 2
    CALL PROXIMITY VOID 3 #i-114967 #i248144 #i-7872
    CALL ATTACK VOID 1 #i1
    CALL CREATEPOLYGON VOID 2 #i200 #i200
    sleep 2000
    WHILE TARGET_CUR_HP > 0
    sleep 100
    WEND
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CALL ATTACK VOID 1 #i0


    //kill crawlers 3
    CALL PROXIMITY VOID 3 #i-114609 #i248541 #i-7872
    CALL ATTACK VOID 1 #i1
    CALL CREATEPOLYGON VOID 2 #i200 #i200
    sleep 2000
    WHILE TARGET_CUR_HP > 0
    sleep 100
    WEND
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CALL ATTACK VOID 1 #i0


    //kill crawlers 4
    CALL PROXIMITY VOID 3 #i-114147 #i248455 #i-7872
    CALL ATTACK VOID 1 #i1
    CALL CREATEPOLYGON VOID 2 #i200 #i200
    sleep 2000
    WHILE TARGET_CUR_HP > 0
    sleep 100
    WEND
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CALL ATTACK VOID 1 #i0


    //move next to aymen
    CALL PROXIMITY VOID 3 #i-113909 #i247782 #i-7872


    WHILE Aymen1 == 0
    COMMAND "/target Aymen"
    SLEEP 1000
    COMMAND "/target Aymen"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=-3502&reply=1 "
    SLEEP 2000
    //check to see if we teleported
    DISTANCE DIST -110380 252472 -1992 CHAR_X CHAR_Y CHAR_Z
    IF DIST < 500
    Aymen1 = 1
    ENDIF
    WEND


    CALL PROXIMITY VOID 3 #i-110109 #i252609 #i-1960
    CALL PROXIMITY VOID 3 #i-110584 #i253774 #i-1784
    CALL PROXIMITY VOID 3 #i-112120 #i254140 #i-1568
    CALL PROXIMITY VOID 3 #i-112352 #i254990 #i-1480
    CALL PROXIMITY VOID 3 #i-111424 #i255824 #i-1440


    //talk to shannon and finish quest
    WHILE Shannon3 == 0
    COMMAND "/target Shannon"
    SLEEP 1000
    COMMAND "/target Shannon"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=7&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10323&reply=1"
    SLEEP 1000
    WEND


    WHILE Shannon4 == 0
    COMMAND "/target Shannon"
    SLEEP 1000
    COMMAND "/target Shannon"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=9&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10324&reply=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_accept?quest_id=10324"
    SLEEP 1000
    WEND


    //move o gallint
    CALL PROXIMITY VOID 3 #i-112857 #i254742 #i-1520
    CALL PROXIMITY VOID 3 #i-113796 #i254873 #i-1504
    CALL PROXIMITY VOID 3 #i-114520 #i255231 #i-1520
    CALL PROXIMITY VOID 3 #i-115476 #i254614 #i-1512
    CALL PROXIMITY VOID 3 #i-116618 #i255453 #i-1424


    //finish quest from shannon
    WHILE Gallint1 == 0
    COMMAND "/target Gallint"
    SLEEP 1000
    COMMAND "/target Gallint"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=2&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10324&reply=1"
    SLEEP 1000
    WEND


    //start new quest with gallint
    WHILE Gallint2 == 0
    COMMAND "/target Gallint"
    SLEEP 1000
    COMMAND "/target Gallint"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=3&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10325&reply=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_accept?quest_id=10325"
    SLEEP 1000
    WEND


    //
    //This is where we would go to our race master
    //


    //DE
    //going to black
    CALL PROXIMITY VOID 3 #i-116721 #i255395 #i-1424
    CALL PROXIMITY VOID 3 #i-117319 #i255669 #i-1296
    CALL PROXIMITY VOID 3 #i-117376 #i255813 #i-1296


    //talk to black
    WHILE Black1 == 0
    COMMAND "/target Black"
    SLEEP 1000
    COMMAND "/target Black"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    WEND


    //back to gallint
    CALL PROXIMITY VOID 3 #i-117234 #i255602 #i-1296
    CALL PROXIMITY VOID 3 #i-116628 #i255377 #i-1432
    CALL PROXIMITY VOID 3 #i-116653 #i255493 #i-1424


    //talk to gallint
    WHILE Gallint3 == 0
    COMMAND "/target Gallint"
    SLEEP 1000
    COMMAND "/target Gallint"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=7&option=1"
    SLEEP 1000
    WEND
    sub testt
    //talk to gallint
    WHILE Gallint4 == 0
    COMMAND "/target Gallint"
    SLEEP 1000
    COMMAND "/target Gallint"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=8&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10326&reply=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_accept?quest_id=10326"
    SLEEP 1000
    WEND


    //walk to pantheon
    CALL PROXIMITY VOID 3 #i-116380 #i257764 #i-1512
    CALL PROXIMITY VOID 3 #i-115157 #i257761 #i-1136
    CALL PROXIMITY VOID 3 #i-114401 #i257294 #i-1136
    CALL PROXIMITY VOID 3 #i-114398 #i258458 #i-1192
    CALL PROXIMITY VOID 3 #i-114694 #i259519 #i-1192
    CALL PROXIMITY VOID 3 #i-114394 #i260212 #i-1184


    WHILE Pantheon2 == 0
    COMMAND "/target Pantheon"
    SLEEP 1000
    COMMAND "/target Pantheon"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=6&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10326&reply=1"
    SLEEP 1000
    WEND




    WHILE Pantheon3 == 0
    COMMAND "/target Pantheon"
    SLEEP 1000
    COMMAND "/target Pantheon"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=7&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10327&reply=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_accept?quest_id=10327"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10327&reply=2"
    SLEEP 1000
    //checking to see if we teleported
    DISTANCE DIST -114702 243925 -7968 CHAR_X CHAR_Y CHAR_Z
    IF DIST < 500
    Pantheon3 = 1
    ENDIF
    WEND


    //learning skills
    INJECT "50"
    sleep 1000
    INJECT "A6"
    sleep 1000
    INJECT "7C 10 00 00 00 01 00 00 00 00 00 00 00"
    sleep 1000
    INJECT "73 10 00 00 00 01 00 00 00 00 00 00 00"
    sleep 1000
    INJECT "B1 15 26 1B 12 1D 00 00 00 00 18 00 00"
    sleep 1000


    //we are in the museum... time to talk to those altars or w.e
    //altar id 1033126




    CALL PROXIMITY VOID 3 #i-114715 #i243691 #i-7952
    GET_NPCS NPCS
    FOREACH A NPC NPCS
    DISTANCE DIST CHAR_X CHAR_Y CHAR_Z NPCS.A.X NPCS.A.Y NPCS.A.Z
    IF DIST <= 300
    targetnext = NPCS.A.ID
    ENDIF
    NEXTEACH
    TARGET "<&targetnext&>"
    SLEEP 1000
    TALK_TARGET
    SLEEP 1000
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250




    CALL PROXIMITY VOID 3 #i-113842 #i244692 #i-7960
    GET_NPCS NPCS
    FOREACH A NPC NPCS
    DISTANCE DIST CHAR_X CHAR_Y CHAR_Z NPCS.A.X NPCS.A.Y NPCS.A.Z
    IF DIST <= 300
    targetnext = NPCS.A.ID
    ENDIF
    NEXTEACH
    TARGET "<&targetnext&>"
    SLEEP 1000
    TALK_TARGET
    SLEEP 1000
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250


    CALL PROXIMITY VOID 3 #i-114703 #i245663 #i-7960
    GET_NPCS NPCS
    FOREACH A NPC NPCS
    DISTANCE DIST CHAR_X CHAR_Y CHAR_Z NPCS.A.X NPCS.A.Y NPCS.A.Z
    IF DIST <= 300
    targetnext = NPCS.A.ID
    ENDIF
    NEXTEACH
    TARGET "<&targetnext&>"
    SLEEP 1000
    TALK_TARGET
    SLEEP 1000
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250


    CALL PROXIMITY VOID 3 #i-115562 #i244699 #i-7960
    GET_NPCS NPCS
    FOREACH A NPC NPCS
    DISTANCE DIST CHAR_X CHAR_Y CHAR_Z NPCS.A.X NPCS.A.Y NPCS.A.Z
    IF DIST <= 300
    targetnext = NPCS.A.ID
    ENDIF
    NEXTEACH
    TARGET "<&targetnext&>"
    SLEEP 1000
    TALK_TARGET
    SLEEP 1000
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250
    CANCEL_TARGET
    SLEEP 250






    ISMOB = 0
    WHILE thief == 0
    sleep 500
    GET_NPCS NPCS
    FOREACH A NPC NPCS
    DISTANCE DIST CHAR_X CHAR_Y CHAR_Z NPCS.A.X NPCS.A.Y NPCS.A.Z
    IF NPCS.A.NAME == "#$Thief"
    ISMOB = ISMOB + #i1
    TARGET "<&NPCS.A.ID&>"
    sleep 1000
    USE_SKILL 16
    sleep 2000
    ENDIF
    NEXTEACH


    IF ISMOB == 0
    thief = 1
    ENDIF
    ISMOB = 0
    WEND


    WHILE Toyron1 == 0
    COMMAND "/target Toyron"
    SLEEP 1000
    COMMAND "/target Toyron"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=-3527&reply=1"
    SLEEP 1000
    DISTANCE DIST -114371 260183 -1192 CHAR_X CHAR_Y CHAR_Z
    IF DIST < 500
    Toyron1 = 1
    ENDIF
    WEND


    WHILE Pantheon4 == 0
    COMMAND "/target Pantheon"
    SLEEP 1000
    COMMAND "/target Pantheon"
    SLEEP 1000
    NPC_DIALOG "bypass -h talk_select"
    SLEEP 1000
    NPC_DIALOG "bypass -h quest_choice?choice=12&option=1"
    SLEEP 1000
    NPC_DIALOG "bypass -h menu_select?ask=10327&reply=3"
    SLEEP 1000
    WEND




    PRINT_TEXT "END"
    SCRIPT_END
    CALL PROXIMITY VOID 3 #i #i #i
    //--------------Functions--------------------


    FUNCTION PROXIMITY 3 X Y Z
    MAXMOVES = #i0
    DISTANCE TDIST X Y Z CHAR_X CHAR_Y CHAR_Z
    WHILE TDIST > HOW_GAY_IS_MPJ
    MAXMOVES = MAXMOVES + #i1
    MOVE_TO "<&X&>" "<&Y&>" "<&Z&>"
    SLEEP 500
    DISTANCE TDIST X Y Z CHAR_X CHAR_Y CHAR_Z
    //PRINT_TEXT "TDIST = <&tdist&>"
    WEND
    RETURN VOID


    FUNCTION questhandler
    print_text "Quest received"
    QUEST = QUEST + 1
    RETURN VOID


    FUNCTION ATTACK 1 var
    IF var == 1
    BOTSET ACTIVE_TARGET_ON "<&TRUE&>"
    BOTSET ACTIVE_ATTACK_ON "<&TRUE&>"
    ELSE
    BOTSET ACTIVE_TARGET_ON "<&FALSE&>"
    BOTSET ACTIVE_ATTACK_ON "<&FALSE&>"
    CLEAR_BORDER
    ENDIF
    RETURN VOID


    FUNCTION CREATEPOLYGON 2 XRADIUS YRADIUS
    DEFINE INT BORDERX 0
    DEFINE INT BORDERY 0


    //setting attacking on
    SET_TARGETING COMBAT TWO
    SET_TARGETING INBOX ZERO
    SET_TARGETING ALIVE ZERO


    PRINT_TEXT "Creating Border"
    CLEAR_BORDER
    SLEEP 100

    BORDERX = CHAR_X + XRADIUS
    BORDERY = CHAR_Y + YRADIUS
    ADD_BORDER_PT "<&BORDERX&>" "<&BORDERY&>"


    BORDERX = CHAR_X + XRADIUS
    BORDERY = CHAR_Y - YRADIUS
    ADD_BORDER_PT "<&BORDERX&>" "<&BORDERY&>"


    BORDERX = CHAR_X - XRADIUS
    BORDERY = CHAR_Y - YRADIUS
    ADD_BORDER_PT "<&BORDERX&>" "<&BORDERY&>"


    BORDERX = CHAR_X - XRADIUS
    BORDERY = CHAR_Y + YRADIUS
    ADD_BORDER_PT "<&BORDERX&>" "<&BORDERY&>"
    RETURN VOID




    FUNCTION HTMLhandler
    DEFINE STRING HTMLL ""
    DEFINE int opcode ""
    packet.read_byte null
    packet.read_int16 opcode
    packet.read_string HTMLL


    IF ( opcode == 141 ) OR ( opcode == 33 )
    ELSE
    RETURN VOID
    ENDIF


    print_text "!!<&opcode&>!! <&HTMLL&>"
    CALL checkstring VOID 1 HTMLL
    RETURN VOID


    FUNCTION HTMLhandler2
    DEFINE STRING HTMLL ""
    packet.read_byte null
    packet.read_string HTMLL


    PRINT_TEXT "<&HTMLL&>"
    CALL checkstring VOID 1 HTMLL


    RETURN VOID






    FUNCTION checkstring 1 textstring
    DEFINE STRING somestring ""


    somestring = "#$Central Square</font> of this village"
    IF "textstring.contains somestring" == TRUE
    Pantheon1 = 1
    print_text "Pantheon1"
    ENDIF


    somestring = "#$It's no secret that all the races traveled to Talking Island Village after their villages were struck by the plague"
    IF "textstring.contains somestring" == TRUE
    Theodore1 = 1
    print_text "Theodore1"
    ENDIF


    somestring = "#$Theodore:<br>You what? Really? Even after what I just told"
    IF "textstring.contains somestring" == TRUE
    Theodore2 = 1
    print_text "Theodore2"
    ENDIF


    somestring = "#$Shannon:<br>Woah! Slow down, shouty! There's no screaming test!<br>"
    IF "textstring.contains somestring" == TRUE
    Shannon1 = 1
    print_text "Shannon1"
    ENDIF


    somestring = "#$Shannon:<br>Well, guess what? I can help. That's right - H.E.L.P."
    IF "textstring.contains somestring" == TRUE
    Shannon2 = 1
    print_text "Shannon2"
    ENDIF


    somestring = "#$Evain:<br>You always have that weapon with you, but have you ever used it?<br>You can't always hide away in the towns"
    IF "textstring.contains somestring" == TRUE
    Evain1 = 1
    print_text "Evain1"
    ENDIF


    somestring = "#$>Training Newbie Helper</font> for strength, then attack the scarecrow again"
    IF "textstring.contains somestring" == TRUE
    Evain2 = 1
    print_text "Evain2"
    ENDIF


    somestring = "#$Newbie Helpers</font> can provide you with supplemental magic that will increase your stats (You should see several Buff Icons displayed near your Character Information Window"
    IF "textstring.contains somestring" == TRUE
    NewbieHelper1 = 1
    print_text "NewbieHelper1"
    ENDIF


    somestring = "#$Here, take these. I will give you a few good weapons - choose <font"
    IF "textstring.contains somestring" == TRUE
    Evain3 = 1
    print_text "Evain3"
    ENDIF


    somestring = "#$I want you to defeat the Husk Crawlers in the Training Grounds Underground Facility. First you must take the key I gave you to"
    IF "textstring.contains somestring" == TRUE
    Evain4 = 1
    print_text "Evain4"
    ENDIF


    somestring = "#$is used for Magical Attacks. When you attack a target with Spiritshot/Soulshot on it will be deducted from your total amount."
    IF "textstring.contains somestring" == TRUE
    Guard1 = 1
    print_text "Guard1"
    ENDIF


    somestring = "#$Buffs and Spiritshot/Soulshot are critically important! Maybe I underestimated Evain.."
    IF "textstring.contains somestring" == TRUE
    Shannon3 = 1
    print_text "Shannon3"
    ENDIF


    somestring = "#$Administration Office</font>! He'll teach you everything you need to know.<br>"
    IF "textstring.contains somestring" == TRUE
    Shannon4 = 1
    print_text "Shannon4"
    ENDIF


    somestring = "#$Shannon? I taught her her skills many years ago, until she left to be taught by others.<br>"
    IF "textstring.contains somestring" == TRUE
    Gallint1 = 1
    print_text "Gallint1"
    ENDIF


    somestring = "#$Go and find them... they should be in front of the "
    IF "textstring.contains somestring" == TRUE
    Gallint2 = 1
    print_text "Gallint2"
    ENDIF


    somestring = "#$>Master Black:<br>Welcome! My name is Black and I am a skillmaster to the Dark Elves.<br>I want to take a minute"
    IF "textstring.contains somestring" == TRUE
    Black1 = 1
    print_text "Black1"
    ENDIF


    somestring = "#$Ah! Have you learned about your later class choices already? Remember, you'll learn a great many skills as your strength increases"
    IF "textstring.contains somestring" == TRUE
    Gallint3 = 1
    print_text "Gallint3"
    ENDIF


    somestring = "#$Ah yes! Yes, you can...<br>Well then... please go into the"
    IF "textstring.contains somestring" == TRUE
    Gallint4 = 1
    print_text "Gallint4"
    ENDIF






    IF "textstring.contains somestring" == TRUE
    Pantheon2 = 1
    print_text "Pantheon2"
    ENDIF


    somestring = "#$What? The thieves are getting more brash by the day"
    IF "textstring.contains somestring" == TRUE
    Pantheon4 = 1
    print_text "Pantheon4"
    ENDIF




    RETURN VOID
     
  12. Ring Mao

    Ring Mao T.E.T.Я.I.S

    Tham gia ngày:
    28/7/10
    Bài viết:
    640
    Infinity Loop ! Không có điều kiện dừng , nên cứ lập lại hoài ở đây
     
  13. gavn1234

    gavn1234 Youtube Master Race

    Tham gia ngày:
    9/5/12
    Bài viết:
    15
    vậy bây h phải làm thế nào bác ring mao
     

Chia sẻ trang này