Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

NPC quest scroll above their heads

Newbie Spellweaver
Joined
Mar 17, 2007
Messages
74
Reaction score
0
Hello,

how can I add the green and yellow scrolls above a head of a npc? I mean the scrolls which shows if u are able to accept a new quest or able to finish the quest.
I am using revolutions released files.

Thanks!
 
Experienced Elementalist
Joined
Oct 9, 2012
Messages
282
Reaction score
77
if im right, the scrolls are only objects that will be added via macro.dat (npcinfo or npcbone not sure which one) with the particle function.
 
Upvote 0
Newbie Spellweaver
Joined
Mar 17, 2007
Messages
74
Reaction score
0
okay worked now, but the npc scroll does not turn yellow when I have all the items.
At first the npc scroll looks like this:

Then I accept the quest and the npc turns to this:



After I got the requiered items the scroll does not change to yellow.
My question now: How can I activate the yellow scroll above the npc´s head when I go all requiered items?

task.dat:
Code:
( task 
        ( key 1100)
        ( name "level 40 mission")
        ( desc "Go to the forest and kill the Devil Troop of Desire.")
    ( npcindex 4312 )        
        ( flag 
                ( key 1)
                ( desc "Get 10 information about the event.")
                ( param 256068 289118)
        ( item 1 16 1 )
        ( npcdesc "Beginner Quest#n")
        ( level 40 )
        ( npcindex 4312 )
        (targetrect 1
            (index 16 (item) (color 0 255 0)
                (rect    (7976 8136 8131 8260)
                    (8086 7970 8220 8083)
                )
            )
        )
        )
)

quest.txt:
Code:
(quest (index 1100 0)    
    
    (case (if (notclear 1100))
            (then (link 1100 1)))
    
    (case (then (html 100001)))
)


(quest (index 1100 1) 
     (case (if (clear 1100)) ;if already completed
               (then (html 150001))); thanks

                     (case (if (quest 1100 0));if not done + previous quest completed
                       (then (link 1100 2))); check lvl

                     (case (if (quest 1100 1));if active
                       (then (link 1100 4))); check for items

                     (case (then (html 150003))) ;act like nothing happened
)

(quest (index 1100 2) 
     (case (if (level 40)) ;check lvl
               (then (html 150000))) ;show first window
     (case (then (html 150003))) ;too low lvl
)
(quest (index 1100 3) ;accept quest
     (case (if (quest 1100 0) (level 40));check lvl
               (then (save 1100 1)));start quest
)
(quest (index 1100 4)
     (case (if (item (16 1)))
               (then (item (out 16 1)) (exp 161577) (contribute 2) (supoint 1) (clear 1100 2) (html 150001))) ;reward
     (case (then (html 150002)))
)
 
Upvote 0
Back
Top