Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest sprzedazRybek begin
- state start begin
- when 20013.chat."Chcę wymienić martwe ryby..." or 9009.chat."Chcę wymienić martwe ryby..." begin
- 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)
- say_title(mob_name(npc.get_race())..":")
- say()
- say("Witaj!")
- say()
- say("Chętnie przyjmę od Ciebie wszystkie martwe rybki,")
- say("które możesz złowić w naszych wodach.")
- say("Za każdą martwą rybę dam Ci 5.000 Yang.")
- say()
- say("Obecnie możesz otrzymać: "..ilosc*5 .." tysięcy Yang.")
- say()
- say_reward("Czy chcesz się wymienić?")
- say()
- local s = select("Tak!", "Nie.")
- if s == 2 then return else
- if pc.get_gold() + ilosc*5*1000 > 2000000000 then
- say_title(mob_name(npc.get_race())..":")
- say()
- say("Masz za duzo Yang w ekwipunku!")
- say()
- return
- end
- say_title(mob_name(npc.get_race())..":")
- say()
- say("Dziekuję za te ryby! Oto Twoje Yang!")
- say()
- pc.remove_item(27833, pc.count_item(27833))
- pc.remove_item(27834, pc.count_item(27834))
- pc.remove_item(27835, pc.count_item(27835))
- pc.remove_item(27836, pc.count_item(27836))
- pc.remove_item(27837, pc.count_item(27837))
- pc.remove_item(27838, pc.count_item(27838))
- pc.remove_item(27839, pc.count_item(27839))
- pc.remove_item(27840, pc.count_item(27840))
- pc.remove_item(27841, pc.count_item(27841))
- pc.remove_item(27842, pc.count_item(27842))
- pc.remove_item(27843, pc.count_item(27843))
- pc.remove_item(27844, pc.count_item(27844))
- pc.remove_item(27845, pc.count_item(27845))
- pc.remove_item(27846, pc.count_item(27846))
- pc.remove_item(27847, pc.count_item(27847))
- pc.remove_item(27848, pc.count_item(27848))
- pc.remove_item(27849, pc.count_item(27849))
- pc.remove_item(27850, pc.count_item(27850))
- pc.remove_item(27851, pc.count_item(27851))
- pc.remove_item(27852, pc.count_item(27852))
- pc.remove_item(27853, pc.count_item(27853))
- say_reward("Otrzymałeś: "..ilosc*5 .." tysięcy Yang!")
- pc.give_gold(ilosc*5*1000)
- say()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment