Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest voucher begin
- state start begin
- function GetItems()
- local table_data = {
- [WARRIOR] = {469, 3199},
- [ASSASSIN] = {1349, 2379},
- [SURA] = {479},
- [SHAMAN] = {5349, 7379},
- [WOLFMAN] = {0}
- }
- local stl_container = table_data[pc.get_job()]
- pc.give_item2(stl_container[math.random(1, table.getn(stl_container))], 1)
- end
- when 40248.use begin
- voucher.GetItems()
- pc.remove_item(item.get_vnum(), 1)
- set_state(__COMPLETE__)
- end
- end
- state __COMPLETE__ begin
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment