Jump to content
Akroma

Baul del Aprendiz

Recommended Posts

mm cierto, eso se me paso lo del baul de abrir, i demas mm, la modificare.

 

De todos modos pa que veas como se podria acortar:

 

when login begin
local cofres = {
[1] = {id1},
[10] = {id2},
[20] = {id3},
[30] = {id4},
[40] = {id5},
[50] = {id6}
}
pc.give_item2(cofres[pc.get_level()][1],1)
end

Share this post


Link to post
Share on other sites

debe de ser todo

quest baul begin
state start begin		
	when login or levelup begin
		local a={1,10,20,30,40,50,60,70,80,90,100}
		local lvl=10
		for i=1,table.getn(a) do
			if a[i]==lvl then
				if pc.getqf("last_flag")<lvl then
					local i=i-1
					if lvl==100 then
						pc.give_item2(10..i)
						pc.setqf("last_flag",lvl)
						chat("Has recibido el baul del aprendiz")
						return
					end
					pc.give_item2(100..i)
					pc.setqf("last_flag",lvl)
				end
			end
		end
		chat("Has recibido el baul del aprendiz")
	end
	when 1000.use or 1001.use or 1002.use or 1003.use or 1004.use or 1005.use or 1006.use or 1007.use or 1008.use or 1009.use or 1010.use begin
		local drop = {[1000] = {9999, 8888, 7777},
			[1001] = {9999, 8888, 7777},
			[1002] = {9999, 8888, 7777},
			[1003] = {9999, 8888, 7777},
			[1004] = {9999, 8888, 7777},
			[1005] = {9999, 8888, 7777},
			[1006] = {9999, 8888, 7777},
			[1007] = {9999, 8888, 7777},         
			[1008] = {9999, 8888, 7777},
			[1009] = {9999, 8888, 7777}
			}
		chat(item_name(item.get_vnum()).." usado")
		for _,i in next,drop[item.get_vnum()] do
			chat("Has recibido "..item_name(i))
			pc.give_item2(i,1)
		end
	end
end
end

Share this post


Link to post
Share on other sites

Croqueta , realmente cojes las quest , y las disminuyes en un 99% XDDDDDDDDDDDDDDDDDDd

 

De eso se trata ¬¬ xD, pero Croqueta es un crack en eso *-* por eso lo admiro, a él, Keko, y Akroma xD

Share this post


Link to post
Share on other sites

Pero yo no mas por probar uso el código en mi cliente para sacarlo por comando y el baúl 1 por ejemplo que es 1000 me da una daga+0 ._. no un baúl...

Share this post


Link to post
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.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...