Teleport NPC

Results 1 to 10 of 10
  1. #1
    Enthusiast ursek is offline
    MemberRank
    Sep 2006 Join Date
    34Posts

    Teleport NPC

    Hy. I have teleport NPC but he teleporty only to 1 place.
    InitNPC.txt
    Code:
    (gennpc (index 504) (country 0) (kind 5) (shape 6) (html 504) (teleport 2 50275 34110) (map 2) (xy 267368 243119 19629) (dir 267368 243119))
    Code:
    (filechk file_ver (country_type ENG) (filename s000504))
    (background
        (font 12) 
        (wrap 270)
        (link system ( param ( width 270) ( height 255) ( style title edge system vscroll) ( caption "Talk") ( layout script) ))
    )
    
    ( frame ( font 12)
    
        ( line "Teleport Merchant")
        ( line "I can teleport you to other place.")
        ( line "")
    
            ( link ( text "Teleport me somewhere") ( param load "teleportNPC1"))
        ( link close ( text "[Talk End] Thanks!"))
    )
    This work nice and he teleport me to d1. But no I don't know how to do that this NPC can teleport you to d1 d2 d3 d4 and that.
    I want something like that. When I open NPC he say bla bla bla, than you can chose where he teleport you (d1 d2 d3 d4). How can I do that?

    Thank you very much!!


  2. #2
    Account Upgraded | Title Enabled! twist3dhaz3 is offline
    MemberRank
    Oct 2006 Join Date
    232Posts
    Create another NPC like that.. and then just change co-ordinates in (teleport) to where u wana go? the 2 is the map i think..im not sure exactly which is for D4 D2 and w/e tho
    If uwana change it to be in the same merchant for all tele to places.. dont u just edit that in the Param?
    Last edited by twist3dhaz3; 02-12-06 at 11:59 AM.

  3. #3
    Enthusiast ursek is offline
    MemberRank
    Sep 2006 Join Date
    34Posts
    Quote Originally Posted by twist3dhaz3 View Post
    Create another NPC like that.. and then just change co-ordinates in (teleport) to where u wana go? the 2 is the map i think..im not sure exactly which is for D4 D2 and w/e tho
    If uwana change it to be in the same merchant for all tele to places.. dont u just edit that in the Param?
    I want have one NPC for all... I do now 4 npc to teleport you d1 d2 d3 d4 but I want only 1 npc..

  4. #4
    Account Upgraded | Title Enabled! twist3dhaz3 is offline
    MemberRank
    Oct 2006 Join Date
    232Posts
    Then cant u just change sumthin in the param?

  5. #5
    Valued Member roul04 is offline
    MemberRank
    Nov 2006 Join Date
    106Posts
    afaik there is no chance to make a npc who can teleport you to all dungeons..i think you must make for each one

  6. #6
    Enthusiast ursek is offline
    MemberRank
    Sep 2006 Join Date
    34Posts
    Quote Originally Posted by twist3dhaz3 View Post
    Then cant u just change sumthin in the param?
    How can I do that?

  7. #7
    BLAH ovyy is offline
    MemberRank
    Jun 2006 Join Date
    HellLocation
    277Posts
    u can make it so that when u click on a link in the npcs dialogue it send a quest that ports u to where u want. For this u have to add in Quest.txt something like this, u can make it so when sum1 wants to teleport it costs them a certain ammount of money.
    Code:
    (quest 
    	(index 9000 1)
    	(case (if (item (31 10000))) 	(then (item (out 31 10000)) 	(teleport 0 257065 257442)))
    	(case (then (html 502)))
    )
    And in the npcs dialogue u should make it like this
    Code:
    ( link ( text "Location")				( param send quest 9000 1 ))
    and ofc u can add more than 1 link

  8. #8
    Enthusiast ursek is offline
    MemberRank
    Sep 2006 Join Date
    34Posts
    Quote Originally Posted by ovyy View Post
    u can make it so that when u click on a link in the npcs dialogue it send a quest that ports u to where u want. For this u have to add in Quest.txt something like this, u can make it so when sum1 wants to teleport it costs them a certain ammount of money.
    Code:
    (quest 
        (index 9000 1)
        (case (if (item (31 10000)))     (then (item (out 31 10000))     (teleport 0 257065 257442)))
        (case (then (html 502)))
    )
    And in the npcs dialogue u should make it like this
    Code:
    ( link ( text "Location")                ( param send quest 9000 1 ))
    and ofc u can add more than 1 link
    THANK YOU VERRY MUCH!!!!! :throb:

  9. #9
    Enthusiast ursek is offline
    MemberRank
    Sep 2006 Join Date
    34Posts
    Hmm now I have some other prroblems. If I teleport to d1 or any where I can't attack mobs. But if I go out and in then I can! Please help! And that is only if I teleport from NPC.

  10. #10
    Account Upgraded | Title Enabled! dJabba is offline
    MemberRank
    Sep 2006 Join Date
    ScandinaviaLocation
    327Posts
    thats the map or coords that are wrong, go where you want to teleport, and type /coords and get the proper coordinates. Remember dungeons are not map 0 if i remember right. you can find several post about it if you use search, so dont flame me if its wrong. (to lazy to open my folder and look at my npc)



Advertisement