Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest status begin
- state start begin
- function add_collect()
- local dict = {
- [1] = { apply.MAX_HP, 99000, 439200 },
- [2] = { apply.MAX_SP, 99000, 439200 },
- [3] = { apply.INT, 99000, 439200 },
- [4] = { apply.STR, 99000, 439200 },
- [5] = { apply.DEX, 99000, 439200 }
- }
- affect.remove_collect()
- for i = 1, table.getn(dict) do
- affect.add_collect(dict[i][1], dict[i][2], dict[i][3])
- end
- end
- when 40003.use begin
- say_title("Permanently status")
- say(string.format("Hello %s, you want to receive permanently status?[ENTER]", pc.get_name()))
- if (select("Yes", "No") == 1) then
- status.add_collect()
- pc.removeitem(40003, 1)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment