Creo 26 Posted May 2, 2016 Share Posted May 2, 2016 i have problem with quest, char gets 2 costumes instead one http://wklej.to/Hsauj Link to comment Share on other sites More sharing options...
ZenkoKXO. 29 Posted May 2, 2016 Share Posted May 2, 2016 That's because 'when login' (or) 'when kill' triggers are counted twice instead of once, problem is coming from sources. There's a thread here to solve it, when I have some time (if you didn't find it) i'll find it for you. Before that, you can try: quest costume begin state start begin when login begin timer("give_costume", 3) end when give_costume.timer begin if pc.get_sex() == 0 and pc.get_empire() == 2 then pc.give_item2(41023,1) else pc.give_item2(41024,1) end if pc.get_sex() == 1 and pc.get_empire() == 1 then pc.give_item2(41001,1) else pc.give_item2(41002,1) end set_state(shautia) end end state shautia begin end end Link to comment Share on other sites More sharing options...
Creo 26 Posted May 3, 2016 Author Share Posted May 3, 2016 still nothing :c Link to comment Share on other sites More sharing options...
ZenkoKXO. 29 Posted May 4, 2016 Share Posted May 4, 2016 Do you mean the player gets two times the same item or two differents? In the case 'he gets two differents' : you should change your quest to this one: quest costume begin state start begin when login begin if pc.get_sex() == 0 then if pc.get_empire() == 2 then pc.give_item2(41023,1) else pc.give_item2(41024,1) end elseif pc.get_sex() == 1 then if pc.get_empire() == 1 then pc.give_item2(41001,1) else pc.give_item2(41002,1) end end set_state(shautia) end end state shautia begin end end In the case 'he gets two times the same' : you have to edit your sources, precisely the 'when login' trigger. Are you using sources? Link to comment Share on other sites More sharing options...
Creo 26 Posted July 6, 2016 Author Share Posted July 6, 2016 On 4.05.2016 at 9:10 PM, ZenkoKXO. said: Do you mean the player gets two times the same item or two differents? In the case 'he gets two differents' : you should change your quest to this one: quest costume begin state start begin when login begin if pc.get_sex() == 0 then if pc.get_empire() == 2 then pc.give_item2(41023,1) else pc.give_item2(41024,1) end elseif pc.get_sex() == 1 then if pc.get_empire() == 1 then pc.give_item2(41001,1) else pc.give_item2(41002,1) end end set_state(shautia) end end state shautia begin end end In the case 'he gets two times the same' : you have to edit your sources, precisely the 'when login' trigger. Are you using sources? yep 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