Questfunction

07/25/2012 15:12 skurto#1
Hi community,
I hope that someone can help me...
I'd like to use quest_function 'game.drop_item_with_ownership', but i haven't one part for this function and that's for questlib.lua..
Have someone this part?
Thanks for every help and every advice..
Skurto
07/25/2012 15:26 Sp0ngeb0b ist cool#2
You have to write 'game.drop_item_with_ownership' in the quest_function and you are finished.

Quote:
Originally Posted by skurto View Post
but i haven't one part for this function and that's for questlib.lua..
Have someone this part?
Ehm, this func is specify in the gamefile ;)
07/25/2012 16:35 skurto#3
Quote:
Originally Posted by Sp0ngeb0b ist cool View Post
You have to write 'game.drop_item_with_ownership' in the quest_function and you are finished.



Ehm, this func is specify in the gamefile ;)
You sad that the func is in the gamefile,I added 'game.drop_item_with_ownership' to the quest_functions, but ingame the syntax doesn't func...
07/25/2012 16:42 xXKimariXx#4
I think you have a old gamefile, wich serverfiles use you?
07/26/2012 02:42 skurto#5
I use rev2089
07/26/2012 10:02 Sp0ngeb0b ist cool#6
Hmm normally is the func specify in this file (2089)...

How did you test the function? Show me the Quest ;)
07/26/2012 14:21 skurto#7
Quote:
Originally Posted by Sp0ngeb0b ist cool View Post
Hmm normally is the func specify in this file (2089)...

How did you test the function? Show me the Quest ;)
It's a part of Nova's DC quest..

Code:
        when kill with pc.get_map_index() == special.dc_map_index and pc.countitem(30311) < 1 begin
            local rnd = number(1,30)
            if rnd == 1 then
                game.drop_item_with_ownership(30311, 1)
            end
        end
Without '_with_ownership' is the quest functional..