Jump to content
  • 0
arsenlupin

problem with opening box

Question

When i click on box i got mesage 

 

"You recived noting."

 

 

 

what files need to edit to change drop from box

 

Apertince chest

 

and all other

 

 

ty

 

 

i edit specila_item_group.txt

 

 

but i got 1 item how i can add more item   2 or more

 

 

Share this post


Link to post

8 answers to this question

Recommended Posts

  • 0

Use a quest for it, and the type of the box should be 18 if i remember corectly.

quest levelup_boxes begin
	state start begin
		when login begin
			pc.give_item2(50187)
			set_state(run)
		end
	end
	
	state run begin
		when 50187.use or 50188.use or 50189.use or 50190.use or 50191.use or 50192.use or 50193.use or 50194.use or 50195.use or 50196.use or 50212.use or 50213.use begin
			local weapon = 10
			if pc.job == 3 then
				weapon = 7000
			elseif pc.job == 1 then
				weapon = 1000
			end
			local box_num = item.vnum-50186
			local rewards = {
				{1,6,50188,1,weapon,1,76004,1,76021,1,76012,20,76018,20},
				{10,5,50189,1,76007,5,76011,1,76003,10,76006,1},
				{20,5,50190,1,76005,1,76022,1,76000,200,76008,10},
				{30,5,50191,1,76013,200,76014,200,76015,1,71107,1},
				{40,5,50192,1,72724,1,72728,1,76020,20,71081,5},
				{50,5,50193,1,71020,10,27987,10,72725,1,72729,1},
				{60,5,50194,1,50513,30,27992,1,27993,1,27994,1},
				{70,5,50195,1,72726,1,72730,1,71161,1,50135,1},
				{80,5,50196,1,71043,1,71082,10,71017,1,30319,5},
				{90,4,50212,1,70004,1,38050,1,76000,200},
				{100,4,50213,1,71153,1,38055,1,70056,200},
				{105,3,71148,1,71149,1,70056,200},
				}
				
			if rewards[box_num][1] == nil then
				syschat("The seal on this chest is too strong. No matter what you do, it won't budge.")
			elseif pc.get_level() < rewards[box_num][1] then
				syschat("Your Level does not suffice to open this box.")
			elseif pc.get_empty_inventory_count() < rewards[box_num][2] then
				syschat("You do not have enough free inventory space to open this box.")
			else
				for i = 1,rewards[box_num][2],1 do
					pc.give_item2(rewards[box_num][3+2*(i-1)],rewards[box_num][4+2*(i-1)])
				end
				item.remove()
			end
		end
	end
end

 

  • Love 1

Share this post


Link to post
  • 0

If you want to use the boxes with special_item_group.txt, you have to add type 23 for it.

Share this post


Link to post
  • 0

was 23  but i need to use quest function  i changed in 18  type but same error

Share this post


Link to post
  • 0

if you use type 18 you need to specify drops in a quest

Share this post


Link to post
  • 0

If there stand you received nothing.

 

Chek Your database and special Drop.txt  if all item which are in Drop.txt   also aviable in the DB.

 

Sometimes  "Gold/Yang" have ID/Number 0    but it should be 1 i think.

Share this post


Link to post
  • 0

i need from quest give item

 

and again 

 

you recived noting

 

if i edit special_item_group.txt    i got but 1 item  no mores  i need few items

Share this post


Link to post
  • 0

i need from quest give item

 

and again 

 

you recived noting

 

if i edit special_item_group.txt    i got but 1 item  no mores  i need few items

Create a quest...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.