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.