• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

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