Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --**Quest by Luzzo
- --**Data: 10/01/2015
- quest npc_item begin
- state start begin
- when 9003.chat."Npc Item" begin
- local item_list = {19,19,19,19,19,19}
- local prezzo = 5000000
- say_title("Npc Item")
- say("Avventuriero puoi comprare item")
- say("ad un prezzo stracciato.")
- say("L'oggetto sara' random.")
- say_reward("Vuoi tentare l'azzardo?")
- if select("Si","No Grazie") == 2 then
- return
- end
- if pc.get_gold() >= prezzo then
- pc.changegold(-prezzo)
- pc.give_item2(item_list[number(1,table.getn(item_list))],1)
- return
- else
- syschat("Non possiedi abbastanza yang.")
- return
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement