Guest User

Untitled

a guest
Jun 24th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. quest Rybki begin
  2. state start begin
  3. when 20013.chat."Chcę wymienić martwe rybki.." or 9009.chat."Chcę wymienić martwe rybki.." begin
  4. local ilosc = pc.count_item(27833)+pc.count_item(27834)+pc.count_item(27835)+pc.count_item(27836)+pc.count_item(27837)+pc.count_item(27838)+pc.count_item(27839)+pc.count_item(27840)+pc.count_item(27841)+pc.count_item(27842)+pc.count_item(27843)+pc.count_item(27844)+pc.count_item(27845)+pc.count_item(27846)+pc.count_item(27847)+pc.count_item(27848)+pc.count_item(27849)+pc.count_item(27850)+pc.count_item(27851)+pc.count_item(27852)+pc.count_item(27853)
  5. say_title(mob_name(npc.get_race())..":")
  6. say()
  7. say("Witaj!")
  8. say()
  9. say("Chętnie przyjmę od Ciebie wszystkie martwe rybki,")
  10. say("które możesz złowić w naszych wodach.")
  11. say("Za każdą martwą rybkę dam Ci 5kk Yang.")
  12. say()
  13. say("Obecnie możesz otrzymać: "..ilosc*5 .." milionów Yang.")
  14. say()
  15. say_reward("Czy chcesz się wymienić?")
  16. say()
  17. local s = select("Tak!", "Nie.")
  18. if s == 2 then return else
  19. if pc.get_gold() + ilosc*5*1000 > 2000000000 then
  20. say_title(mob_name(npc.get_race())..":")
  21. say()
  22. say("Masz za duzo Yang w ekwipunku!")
  23. say()
  24. return
  25. end
  26.  
  27. say_title(mob_name(npc.get_race())..":")
  28. say()
  29. say("Dziękuje za te rybki! Oto Twoje Yangi!")
  30. say()
  31. pc.remove_item(27833, pc.count_item(27833))
  32. pc.remove_item(27834, pc.count_item(27834))
  33. pc.remove_item(27835, pc.count_item(27835))
  34. pc.remove_item(27836, pc.count_item(27836))
  35. pc.remove_item(27837, pc.count_item(27837))
  36. pc.remove_item(27838, pc.count_item(27838))
  37. pc.remove_item(27839, pc.count_item(27839))
  38. pc.remove_item(27840, pc.count_item(27840))
  39. pc.remove_item(27841, pc.count_item(27841))
  40. pc.remove_item(27842, pc.count_item(27842))
  41. pc.remove_item(27843, pc.count_item(27843))
  42. pc.remove_item(27844, pc.count_item(27844))
  43. pc.remove_item(27845, pc.count_item(27845))
  44. pc.remove_item(27846, pc.count_item(27846))
  45. pc.remove_item(27847, pc.count_item(27847))
  46. pc.remove_item(27848, pc.count_item(27848))
  47. pc.remove_item(27849, pc.count_item(27849))
  48. pc.remove_item(27850, pc.count_item(27850))
  49. pc.remove_item(27851, pc.count_item(27851))
  50. pc.remove_item(27852, pc.count_item(27852))
  51. pc.remove_item(27853, pc.count_item(27853))
  52. say_reward("Otrzymałeś: "..ilosc*5 .." milionów Yang!")
  53. pc.give_gold(ilosc*5*1000000)
  54. say()
  55. end
  56. end
  57. end
  58. end
Advertisement
Add Comment
Please, Sign In to add comment