Some tries of Town Portal Guard/s

Results 1 to 5 of 5
  1. #1
    Valued Member Freak2 is offline
    MemberRank
    Nov 2011 Join Date
    109Posts

    cool Some tries of Town Portal Guard/s

    Hey guys I coded a simply "Portal Guard" hmm..
    You just need 3 npc's for your citys ofc you can make each npc for a Map Link Gate but I think its a bit cooler, and you havent a questions like "You want to teleport to Roumen?" or something.
    Heres the Code, maybe it help someone:
    NPC Names(InxName) You have to create this NPC's(I used the Battlefield Guard):
    GateEld
    GateUrg
    GateBera

    open [main]
    var InterruptBlock 1
    InterruptArg 2
    PlayerHandle ""
    Celebrant 0 ; ÁøÇàÀÚ
    Book 0 ; ¼­¾àÀÇ Ã¥
    Door 0 ; ¸·ÀÚ
    Gate 0 ; °ÔÀÌÆ®
    GateRou 0 ; °ÔÀÌÆ®
    GateEld 0 ; °ÔÀÌÆ®
    GateUrg 0 ; °ÔÀÌÆ®
    GateBera 0 ; °ÔÀÌÆ®
    .
    interruptclear.
    interruptset TimeOut "" 1 "WeddingEnd".



    npcstand GateEld "GateEld" 4165 4730 27 1000 "Normal".
    npcstand GateUrg "GateUrg" 4131 4813 27 1000 "Normal".
    npcstand GateBera"GateBera" 4088 4898 27 1000 "Normal".
    interruptset NPCClickHandle "" 1 Gate "GateClick".
    interruptset NPCClickHandle "" 1 GateRou "RouClick".
    interruptset NPCClickHandle "" 1 GateEld "EldClick".
    interruptset NPCClickHandle "" 1 GateUrg "RouVal01Click".
    interruptset NPCClickHandle "" 1 GateBera "EldGbl02Click".


    infinite
    open
    waitinterrupt InterruptBlock "InterruptArg".
    call InterruptBlock.
    close

    call "RouClick".
    call "EldClick".
    call "RouVal01Click".
    call "EldGbl02Click".
    close

    open [RouClick]
    var mclicker 0.
    whoclickme mclicker InterruptArg.
    linkto mclicker "Rou" "Rou" 6842 8756.
    interruptclear.
    interruptset NPCClickHandle "" 1 Rou "RouClick".
    close
    open [EldClick]
    var mclicker 0.
    whoclickme mclicker InterruptArg.
    linkto mclicker "Eld" "Eld" 17214 13445.
    interruptclear.
    interruptset NPCClickHandle "" 1 Eld "EldClick".
    close
    open [RouVal01Click]
    var mclicker 0.
    whoclickme mclicker InterruptArg.
    linkto mclicker "Urg" "Urg" 6293 5477.
    interruptclear.
    interruptset NPCClickHandle "" 1 RouVal01 "RouVal01Click".
    close
    open [EldGbl02Click]
    var mclicker 0.
    whoclickme mclicker InterruptArg.
    linkto mclicker "Bera" "Bera" 6532 1529.
    interruptclear.
    interruptset NPCClickHandle "" 1 EldGbl02 "EldGbl02Click".
    close
    open [GateEnd]

    close


  2. #2
    Apprentice onggiax20 is offline
    MemberRank
    Oct 2011 Join Date
    19Posts

    Re: Some tries of Town Portal Guard/s

    thanks for share!!!

  3. #3
    Account Upgraded | Title Enabled! Lugapha is offline
    MemberRank
    Jul 2011 Join Date
    387Posts

    Re: Some tries of Town Portal Guard/s

    Its cool that you scripted this but i was wondering why you wouldn't just make the gates in the npc.txt. I would think it is easier. Or am i missing something?

  4. #4
    Valued Member Freak2 is offline
    MemberRank
    Nov 2011 Join Date
    109Posts

    Re: Some tries of Town Portal Guard/s

    It's right but here can you add your own scripts and events :).
    Posted via Mobile Device

  5. #5
    Apprentice KoolAidMan222 is offline
    MemberRank
    Nov 2012 Join Date
    10Posts

    Re: Some tries of Town Portal Guard/s

    ______________________________________________________
    Last edited by KoolAidMan222; 06-10-14 at 09:28 PM. Reason: anom.



Advertisement