Custom Quests (1 Problem)

Results 1 to 20 of 20
  1. #1
    Gamma Nuklear is offline
    MemberRank
    May 2006 Join Date
    EarthLocation
    3,586Posts

    Custom Quests (1 Problem)

    I figured out how to make my own quests, but there's a problem, I can't make my NPC open the window I made for my quest.

    I copied other quest NPCs' gen code and it won't work. 0.o

    Can someone tell me how to call quests through NPCs?


  2. #2
    Account Upgraded | Title Enabled! puppi is offline
    MemberRank
    Jan 2006 Join Date
    282Posts
    maybe I'll make a guide for this this week if I find the time to try it all out ;>

  3. #3
    Gamma Nuklear is offline
    MemberRank
    May 2006 Join Date
    EarthLocation
    3,586Posts
    -.-;;

    I can do the guide, but this is the last thing. I added everything, the item, the dialogs, etc. but I just can't get the NPC to start the quest. -.-;;

  4. #4
    Account Upgraded | Title Enabled! puppi is offline
    MemberRank
    Jan 2006 Join Date
    282Posts
    well I haven't tried making quests yet so don't know... But generally, you should be calling some parameter from the NPCs dialogue that calls the quest's code. And there should be some conditions under which you see the quest or you don't... bah but I'm just taking this out of my head, haven't looked in it yet.

  5. #5
    Gamma Nuklear is offline
    MemberRank
    May 2006 Join Date
    EarthLocation
    3,586Posts
    I decided to edit current quests and it worked. :D

  6. #6
    Member NSC is offline
    MemberRank
    Sep 2006 Join Date
    RomaniaLocation
    59Posts
    Nuklear ure geting [ no meet condition] in MainSvr ?

  7. #7
    Account Upgraded | Title Enabled! CptKenpachi is offline
    MemberRank
    Sep 2006 Join Date
    ManchesterLocation
    876Posts
    i think .... that happens when u'r trying to complete a quest that u have already completed like trying to complete the 2nd job change, if u edit in db make urself a hermit then try and do the quest again it says that......

  8. #8
    Account Upgraded | Title Enabled! Keppi is offline
    MemberRank
    Sep 2006 Join Date
    GermanyLocation
    884Posts
    I dont understand his problem can you maybe explain it better because i got lvl 61- 65 quest with guide with items with the droprate etc etc full working maybe i can help ya :)

    edit: ahh maybe i got it the parameter in the task-e is the xy coordinate from your NPC so if you give him the same parameter like your xy coordinates it should aktivate your quest
    Last edited by Keppi; 25-11-06 at 03:57 AM.

  9. #9
    Account Upgraded | Title Enabled! swarm133 is offline
    MemberRank
    Oct 2006 Join Date
    237Posts
    The xy coordinates is for the red dot to appear where you need to go to complete the quest.

    Nuklear
    I figured out how to make my own quests, but there's a problem, I can't make my NPC open the window I made for my quest.

    I copied other quest NPCs' gen code and it won't work. 0.o

    Can someone tell me how to call quests through NPCs?
    I'm assuming it's the part in initnpc where the (quest 8008 1) or whatever you put. when you talk to the npc i assume you get given the 8008 quest with flag of 1.

    BTW this is for the bird event modification. the eggs dropped from boxes. i was going to add them into normal monster droplists but i got a case of lazyness

    Sorry my bird thing is neither a event or a quest. just uses the send quest idea. But easy enough to make it into a quest. with different items.


    in Quest.txt
    PHP Code:
    ;Bird modification for Temp Fort NPC    -----------------------------------------------

    ;;
    Bird
    (quest (index 8008 3)
        (case (if (
    item (3004 10)))
            (
    then (item (out 3004 10)(in 3003 0 1)) ))
        (case (
    then (html 300402)))

    in inititem.txt and dat..
    PHP Code:
    (item
        
    (name 3003)
        (
    Index 3003)
        (
    Image "item3003")
        (
    desc 402)
        (class 
    general etc)
        (
    code 4 8 0 0)
        (
    country 0)
        (use 
    1)
        (
    plural 1)
        (
    cooltime 1300)
        (
    buy 0)
        (
    sell 0)
        (
    specialty
            
    (buff 103 0 0)
        )
    )
    (
    item
        
    (name 3004)
        (
    Index 3004)
        (
    Image "item3004")
        (
    desc 403)
        (class 
    general etc)
        (
    code 4 9 0 0)
        (
    country 0)
        (
    plural 1)
        (
    buy 0)
        (
    sell 0)

    in initNPC.txt

    PHP Code:
    ;Bird Npc
    (gennpc
        
    (index 973)
        (
    country 0)
        (
    kind 1)
        (
    shape 24)
        (
    html 300404)
        (
    map 0)
        (
    xy 267479 242638 19630)
        (
    dir 267492 242637)

    in message-e.dat

    PHP Code:
    (itemname 3003 "Caged Bird for Bird Event")
    (
    itemname 3004 "[Event]Bird Egg")

    (
    itemdesc 3003 "Use the Bird item to release the bird#nYou will recieve a random bird with a random buff.#nThe Bird will last for 2 hours #nand the buff will last for 10 minutes")
    (
    itemdesc 3004 "This is a Egg for getting a bird egg#nyou must collect 10 eggs#nTake the eggs to [Cantc Mebird] in temp fort for your bird.")

    ;
    Bird Event NPC
    (npcname 973 "Bird Event NPC [Cantc-Mebird]"
    files in e.pk

    PHP Code:
    "Two files"

    "*** s300402.dat as followed ***"

    (filechk file_ver (country_type ENG) (filename s300402))
    (
    background
        
    (font 12
        (
    wrap 270)
        (
    link system param width 270) ( height 250) ( style title edge system vscroll) ( caption "Talk") ( layout script) ))
    )

    frame font 12)
        ( 
    line "")
        ( 
    line "You need more eggs.")
        ( 
    line "Come back when you have 10.")
        ( 
    line "")
        ( 
    link close text "[Talk End] I'll come back again." ))
    )


    "*** s300404.dat as followed ***"

    (filechk file_ver (country_type ENG) (filename s300404))
    (
    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 "[Bird Hatcher] Cantc Mebird")
        ( 
    line "Please help us. our eggs were stolen")
        ( 
    line "Please bring 10 eggs back to us and we will reward you with a bird to help you")
        ( 
    line "The monsters locked the eggs up in Boxes.")
        ( 
    line "")
        ( 
    link text "[Hatch egg] Yes here are my 10 eggs.") ( param send quest 8008 3 ))
        ( 
    line "")
        ( 
    line "(The bird will be invisable to prevent the 1hh from being exploited)")
        ( 
    line "")
        ( 
    link close text "[Talk End] No, I'm leaving."))

    in InitMonster.txt (The Boxes)
    (1049 is a group i made. if you used it allready just modify the number. 2140 is used too. same comment as before)
    PHP Code:
    (monster
        
    (name 291)
        (
    index 291)
        (
    country 0 2)
        (
    race 4)
        (
    level 1)
        (
    itemgroup 1018 1)
        (
    itemgroup 1049 1)
    )
    (
    monster
        
    (name 292)
        (
    index 292)
        (
    country 0 2)
        (
    race 4)
        (
    level 1)
        (
    itemgroup 1019 1)
        (
    itemgroup 1049 1)
    )
    (
    monster
        
    (name 293)
        (
    index 293)
        (
    country 0 2)
        (
    race 4)
        (
    level 1)
        (
    itemgroup 1020 1)
        (
    itemgroup 1049 1)
    )
    (
    monster
        
    (name 294)
        (
    index 294)
        (
    country 0 2)
        (
    race 4)
        (
    level 1)
        (
    itemgroup 1021 1)
        (
    itemgroup 1049 1)
    )
    (
    monster
        
    (name 295)
        (
    index 295)
        (
    country 0 2)
        (
    race 4)
        (
    level 1)
        (
    itemgroup 1022 1)
        (
    itemgroup 1049 1)
    )
    (
    monster
        
    (name 296)
        (
    index 296)
        (
    country 0 2)
        (
    race 4)
        (
    level 1)
        (
    itemgroup 1023 1)
        (
    itemgroup 1049 1)
    )
    (
    monster
        
    (name 297)
        (
    index 297)
        (
    country 0 2)
        (
    race 4)
        (
    level 1)
        (
    itemgroup 1024 1)
        (
    itemgroup 1049 1)

    in ItemGroup.txt
    PHP Code:
    (group(index 2140)(item(1000 3004 0)))

    (
    itemgroup(index 1049)(group(1000 2140))) 
    Unfortunatly you cant see the bird. but the buff is there.

    Sorry it's a little off topic. and the images you will have to make yourself. i used a enlarged bird buff image(buff096.bmp) and also one of the images already there that looks like a cool egg(item247.bmp) :)

    Hope this helps somone.

  10. #10
    Gamma Nuklear is offline
    MemberRank
    May 2006 Join Date
    EarthLocation
    3,586Posts
    This is old lol, wouldn't you think I already figured it out?

    Otherwise, nice guide. =)

  11. #11
    Account Upgraded | Title Enabled! swarm133 is offline
    MemberRank
    Oct 2006 Join Date
    237Posts
    my bad. didn't nottice the date.

  12. #12
    Member NSC is offline
    MemberRank
    Sep 2006 Join Date
    RomaniaLocation
    59Posts
    Yeah but still is good info for everyone. Thank you Swarm.

  13. #13
    Enthusiast MadeInHell is offline
    MemberRank
    Dec 2006 Join Date
    39Posts
    i know its old old topic but nuke how u fixed this problem?
    i have same problem - cant press on npc

  14. #14
    Valued Member roul04 is offline
    MemberRank
    Nov 2006 Join Date
    106Posts
    i think our d4 teleport npc is a good example:

    initnpc.txt
    Code:
    (gennpc (index 605) (country 0) (kind 3) (shape 3) (quest 9601 1) (map 0) (xy 267833 242212 19630) (dir 267201 243438))
    Quest.txt
    Code:
    ;teleportagent D4 -------------------------------------------------------
    
    (quest (index 9601 1)
    	(case (then (html 910001)))
    )
    (quest (index 9601 2)
    	(case (then (teleport 4 35333 34321)))
    )
    (quest (index 9601 3)
    	(case (then (teleport 4 36851 50889)))
    )
    910001.dat
    Code:
    (filechk file_ver (country_type ENG) (filename s910001))
    (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 Agent: I am the Teleport NPC to Dungeon 4.")
    	( line "")
    
    	( link ( text "I'd like to go to Dungeon 4 Floor 1") ( param send quest 9601 2))
    	( link ( text "I'd like to go to Dungeon 4 Floor 3") ( param send quest 9601 3))
    	( link close ( text "[Talk End] No Thanks."))
    )
    if you can't find your needed information inside tell more about your problem :)
    Last edited by roul04; 01-01-07 at 08:00 PM.

  15. #15
    Enthusiast MadeInHell is offline
    MemberRank
    Dec 2006 Join Date
    39Posts
    i dont need tele npc -.-

    i need quest that i can make only once

    i did same as nuke and i have same problem
    Last edited by MadeInHell; 01-01-07 at 09:08 PM.

  16. #16
    Valued Member roul04 is offline
    MemberRank
    Nov 2006 Join Date
    106Posts
    first, why you ?? Nuklear started this thread!
    second that teleport npc is build as quest and i think Nuklear can see the information he needs

  17. #17
    Apprentice KAMLOTTON is offline
    MemberRank
    Jan 2007 Join Date
    17Posts
    is it possible to set that quest NPC give to me one item from itemgroup??

  18. #18
    Account Upgraded | Title Enabled! twist3dhaz3 is offline
    MemberRank
    Oct 2006 Join Date
    232Posts
    why not just make the new item group with the item you need? O.o

    I dont have kal stuff so i dont know exactly about quests, but if a reward works a different way, why not just change what it gives? <.<

  19. #19
    Apprentice KAMLOTTON is offline
    MemberRank
    Jan 2007 Join Date
    17Posts
    i mean what comand i need to use to give item from itemgroup ^^

    btw. i got one little problem... i can,t see NPC even i change shape to my own :\ any idea how to fix it?

  20. #20
    Gamma Nuklear is offline
    MemberRank
    May 2006 Join Date
    EarthLocation
    3,586Posts
    Everyone, I know I'm damn sexy, but it doesn't mean you can search for every topics or posts I make and post it in the topic. It doesn't make your penis bigger so stop bumping my topics.



Advertisement