Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 30548

Quest drop

$
0
0
Hello all,

so heres the deal, i created a bunch of quests, and they all work. See them in Q menu etc.
But how can i put them in initmonster so that when the monster goes grey they still drop?

Code:

Initmonster.txt
;Level 30 Quest;Demon Water Dragon Commander
(monster (name 52) (index 24) (country 2) (race 1) (level 30) (ai 2) (range 28) (sight 160 320) (exp 1) (itemgroup )
        (str 101) (hth 35) (int 4) (wis 6) (dex 24) (hp 400) (mp 70) (aspeed 1500) (hit 52) (dodge 30)
        (attack 0 261 261) (magic 0 0) (defense 10 10) (absorb 0) (mspeed 1600 800) (resist 8 20 20 40 40)
        (quest 1 1 1366 100))


Quest.txt
;NPC Sjang-Pi lvl 40,
(quest (index 1 0)
    (case (if (clear 1))
            (then (html 900001)))
    (case (if (quest 1 0))   
            (then (link 1 1)))
    (case (if (quest 1 1))   
            (then (link 1 4)))
)


(quest (index 1 1) (linked 1)
    (case (then (html 133)))
)


(quest (index 1 2)   
    (case (if (quest 1 0))
            (then (save 1 1) (html 157)))
)


(quest (index 1 3)
    (case (if (class 0) (item (1366 40)))
            (then (item (out 1366 40) (in 3353 0 1) (in 3354 0 1) (in 3355 0 1)) (exp 6590050) (clear 1 2) (html 155)))
    (case (if (class 2) (item (1366 40)))
            (then (item (out 1366 40) (in 3383 0 1) (in 3384 0 1) (in 3385 0 1)) (exp 6590050) (clear 1 2) (html 155)))
    (case (if (class 1) (item (1366 40)))
            (then (item (out 1366 40) (in 3386 0 1) (in 3387 0 1) (in 3388 0 1)) (exp 6590050) (clear 1 2) (html 155)))
    (case (then (html 156))))




(quest (index 1 4) (linked 1)   
    (case (then (html 132)))
)

I thought it has to be done like this, but they kinda drop no quest. That they dont drop anything els i know, couse nothing in the dropgroup. Itemitem id that i want to drop is 1366, and i want it to be 100% or even 10X drops would be best. I also added the quest line in the config.pk like this:

Code:

( task    ( key 1)
    ( name "Sjang-Pi, Water Dragon Blood")
    ( desc "Sjang-Pi got lost while traveling to collect some meat for his wife.")
   
    ( flag
        ( key 1)
        ( desc "Kill Water Dragon Commander and collect 40 Water Dragon Meat.")
        ( param 265183 262364)
    )


)

Ow yea no idea what this param 265183 262364 means, just left it there from official files i had.
Some help please :)

Viewing all articles
Browse latest Browse all 30548


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>