Jump to content

[LUA] Chest apprentice - From start server


VegaS™
 Share

Recommended Posts


when 50187.use begin

if not pc.can_warp() then

notice("You can not do that now. Wait 10 seconds.")

elseif pc.get_empty_inventory_count() < 15 then

notice("You must have at least 15 empty spaces in your inventory.")

elseif pc.getqf("chest_01") > 0 then

notice("You have already opened this chest.")

else

item.remove()

pc.setqf("chest_01", 1)

local table_items = {76022, 76005, 27003, 27006, 39026, 27102, 76007, 50188, 71027, 71028, 71029, 71030, 71044, 71045, 27870, 27873, 70005}

local table_count = {1, 1, 200, 200, 50, 50, 200, 1, 5, 5 ,5 ,5, 5, 5, 5, 5, 1}

for szVegas = 1, table.getn(table_items) do

pc.give_item2(table_items[szVegas], table_count[szVegas])

end

end

end

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...