Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest exygo_bonus begin
- state start begin
- function give_item_bonus(vnum, tabel)
- pc.give_item2_select(vnum, 1);
- for i in tabel do
- local arg = tabel[i];
- item.set_attribute(i-1, arg[1], arg[2]);
- end -- for
- end -- function
- function give_full(tab)
- for i in tab do
- local vnum = 0;
- for v in tab[i] do
- if (v ~= "socket") then
- vnum = v;
- end -- if
- end -- for
- exygo_bonus.give_item_bonus(vnum, tab[i][vnum]);
- local socket_list = tab[i]["socket"];
- if (socket_list ~= nil) then
- for s in socket_list do
- local arg = socket_list[s];
- item.set_socket(arg[1], arg[2]);
- end -- for
- end -- if
- end -- for
- end -- function
- when 70030.use begin
- say_title(string.format("%s:[ENTER]", item_name(item.get_vnum())))
- say("What do you want to do?[ENTER]")
- local selection = select(
- "Max my secondary skills",
- "Give me the default items",
- "Give me the Warrior equipment",
- "Give me the Ninja equipment",
- "Give me the Sura equipment",
- "Give me the Shaman equipment",
- "Nothing"
- );
- if (selection == 1) then
- pc.set_skill_level(121, 40);
- pc.set_skill_level(122, 2);
- pc.set_skill_level(124, 20);
- pc.set_skill_level(126, 20);
- pc.set_skill_level(127, 20);
- pc.set_skill_level(128, 20);
- pc.set_skill_level(129, 40);
- pc.set_skill_level(130, 21);
- pc.set_skill_level(131, 10);
- pc.set_skill_level(137, 20);
- pc.set_skill_level(138, 20);
- pc.set_skill_level(139, 20);
- pc.set_skill_level(140, 20);
- elseif (selection == 2) then
- local default_items = {{27001, 1}, {27002, 100}}; -- Insert the default items (like Potions) you want to give to the player.
- for i in default_items do
- local arg = default_items[i];
- pc.give_item2(arg[1], arg[2]);
- end -- for
- elseif (selection ~= 7) then
- local equipment = {
- [3] = {
- {
- [11299] = { -- Item Vnum
- {1, 3000}, -- First bonus
- {29, 20}, -- Second bonus
- {30, 20}, -- Third bonus
- {31, 20}, -- Fourth bonus
- {34, 20}, -- Fifth bonus
- },
- ["socket"] = {
- {0, 28708}, -- First Stone Vnum
- {1, 28711}, -- Second Stone Vnum
- {2, 28712}, -- Third Stone Vnum
- }
- },
- -- Insert the items you want to give to the warrior players.
- }
- [4] = {
- {
- [11499] = { -- Item Vnum
- {1, 3000}, -- First bonus
- {29, 20}, -- Second bonus
- {30, 20}, -- Third bonus
- {31, 20}, -- Fourth bonus
- {34, 20}, -- Fifth bonus
- },
- ["socket"] = {
- {0, 28708}, -- First Stone Vnum
- {1, 28711}, -- Second Stone Vnum
- {2, 28712}, -- Third Stone Vnum
- }
- },
- -- Insert the items you want to give to the ninja players.
- },
- [5] = {
- {
- [11699] = { -- Item Vnum
- {1, 3000}, -- First bonus
- {29, 20}, -- Second bonus
- {30, 20}, -- Third bonus
- {31, 20}, -- Fourth bonus
- {34, 20}, -- Fifth bonus
- },
- ["socket"] = {
- {0, 28708}, -- First Stone Vnum
- {1, 28711}, -- Second Stone Vnum
- {2, 28712}, -- Third Stone Vnum
- }
- },
- -- Insert the items you want to give to the sura players.
- },
- [6] = {
- {
- [11899] = { -- Item Vnum
- {1, 3000}, -- First bonus
- {29, 20}, -- Second bonus
- {30, 20}, -- Third bonus
- {31, 20}, -- Fourth bonus
- {34, 20}, -- Fifth bonus
- },
- ["socket"] = {
- {0, 28708}, -- First Stone Vnum
- {1, 28711}, -- Second Stone Vnum
- {2, 28712}, -- Third Stone Vnum
- }
- },
- -- Insert the items you want to give to the shaman players.
- }
- };
- exygo_bonus.give_full(equipment[selection]);
- end -- if/elseif
- end -- when
- end -- state
- end -- quest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement