Advertisement
Guest User

Quest - Galet

a guest
Sep 9th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.44 KB | None | 0 0
  1.     quest buydada2115 begin
  2.             state start begin
  3.                     when 20092.chat."Titre" with pc.get_map_index() == 1 or pc.get_map_index() == 21 or pc.get_map_index() == 41 begin
  4.                             local s = select("Choix 1", "Choix 2", "Fermer")
  5.                             if s == 1 then
  6.                                 if pc.count_item(90013) >=45 and pc.count_item(27994) >=2 then
  7.                                     say_title(""..mob_name(20092).." :")
  8.                                     say("")
  9.                                     say("Vous avez ce qu'il faut")
  10.                                     say("")
  11.                                 elseif pc.count_item(90013) <=45 then
  12.                                     say_title(""..mob_name(20092).." :")
  13.                                     say("")
  14.                                     say("Vous n'avez pas ce qu'il faut")
  15.                                     say("")
  16.                                 elseif pc.count_item(27994) <=2 then
  17.                                     say_title(""..mob_name(20092).." :")
  18.                                     say("")
  19.                                     say("Vous n'avez pas ce qu'il faut")
  20.                                     say("")
  21.                                 end
  22.                             elseif s == 2 then
  23.                                 if pc.count_item(90013) >=45 and pc.count_item(27994) >=2 then
  24.                                     say_title(""..mob_name(20092).." :")
  25.                                     say("")
  26.                                     say("Vous avez ce qu'il faut")
  27.                                     say("")
  28.                                 elseif pc.count_item(90013) <= 45 then
  29.                                     say_title(""..mob_name(20092).." :")
  30.                                     say("")
  31.                                     say("Vous n'avez pas ce qu'il faut")
  32.                                     say("")
  33.                                 elseif pc.count_item(27994) <= 2 then
  34.                                     say_title(""..mob_name(20092).." :")
  35.                                     say("")
  36.                                     say("Vous n'avez pas ce qu'il faut")
  37.                                     say("")
  38.                                 end
  39.                         elseif s == 3 then
  40.                             return
  41.                         end
  42.                     end
  43.             end
  44.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement