Ene Kagerou 6 Posted December 14, 2015 Share Posted December 14, 2015 Hi i added quest with drop of bars, but it doesn't work. Quest is good and i think it's problem with source. This is a syserr error: Dead: QUEST no such pc id : 0 I can give you a quest if i need Link to comment Share on other sites More sharing options...
DarkAng3l 25 Posted December 14, 2015 Share Posted December 14, 2015 The function can't find the character. Maybe is dead. I don't know, what's in the quest. 1 Link to comment Share on other sites More sharing options...
Ene Kagerou 6 Posted December 14, 2015 Author Share Posted December 14, 2015 quest sztabki begin state start begin when kill with not npc.is_pc() begin local count = math.random(10) if count == 10 then pc.give_item2(80007, 1) end end end end That's the quest. Link to comment Share on other sites More sharing options...
DarkAng3l 25 Posted December 14, 2015 Share Posted December 14, 2015 Start server in test mode and search in chat for lua error. Quest looks good, but the error is about get current pc problem. Link to comment Share on other sites More sharing options...
Ene Kagerou 6 Posted December 14, 2015 Author Share Posted December 14, 2015 I was thinking about function in source game, because someone got this problem too ;-; And it was from char_battle.cpp Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted December 14, 2015 Former Staff Share Posted December 14, 2015 Try this quest if you want quest anOS_kill_system begin state start begin when kill begin if game.get_event_flag("anOS_STAT") == 1 and not npc.is_pc() then if math.random(1,50) == 1 then game.drop_item_with_ownership(299) end end end when 20094.chat." GM : drop system CP " with pc.is_gm() begin local STATUS = game.get_event_flag("anOS_STAT") say('Welcome to the drop system CP[ENTER]dropsystem is '..({'activated','deactivated'})[STATUS+1]) if select(({'Activate','Deactivate'})[STATUS+1],'Close') == 2 then return end if STATUS == 0 then syschat'Drop system has been activated' game.set_event_flag("anOS_STAT",1) elseif STATUS == 1 then syschat'Drop system has been deactivated' game.set_event_flag("anOS_STAT",0) end end end end Link to comment Share on other sites More sharing options...
Ene Kagerou 6 Posted December 14, 2015 Author Share Posted December 14, 2015 It's like the same quest but with activation ;-;-;-;-; But i think i found the problem. I have dead event in questmanager should i remove it and try to make game? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now