Jump to content
  • 0

[Question]pc.get_sig_items metin2.de


Alecs

Question

Hi, What do this function and number they?

 

local items = {pc.get_sig_items(10032)}

local ticket = nil

 

This function is found in quest ride_ticket_change.quest (metin2.de)

Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

10032 is probably the value of something on special_item_group.txt.

That function inserts on the table the vnum of an item that the player has.

 

That's the same than:

local items = {}
if pc.count_item(19) > 0 then
   table.insert(items, 19)
end

when you return 0 and server doesn't boot:

unknown.png

Link to comment
  • 0
Quest looks like: 
quest ride_ticket_change begin
	state start begin
		when 20349.chat.gameforge.ride_ticket_change._010_npcChat  begin 
			say_title(mob_name (20349))
			say(gameforge.ride_ticket_change._020_say)
			wait()
			local items = {pc.get_sig_items(10032)}
			local ticket = nil
			if table.getn (items) > 1 then
				for i, v in ipairs (items) do
					item.select (v)
					say_title(mob_name(20349))
					say (gameforge.ride_ticket_change._030_say)
					say_item_vnum (item.vnum)
					say (gameforge.ride_ticket_change._040_say)
					local s = select (locale.yes, locale.no, locale.cancel)
					if s == 3 then
						return
					end
					if s == 1 then 
						ticket = v
						break
					end
				end
			else
				ticket = items [1]
			end
			if ticket == nil then
				say_title (mob_name (20349))
				say (gameforge.ride_ticket_change._050_say)
				return 
			end
			say_title (mob_name (20349))
			say(gameforge.ride_ticket_change._060_say)
			item.select (ticket)
			local s = select (gameforge.ride_ticket_change._070_say, gameforge.ride_ticket_change._080_say,gameforge.ride_ticket_change._090_say, gameforge.ride_ticket_change._100_say, gameforge.ride_ticket_change._110_say, gameforge.ride_ticket_change._120_say)
			if s == 6 then
				say_title (mob_name (20349))
				say (gameforge.ride_ticket_change._130_say)
				return
			end
			local summon_item = item.get_value (s-1)
			say_title (mob_name (20349))
			say(gameforge.ride_ticket_change._140_say)
			if pc.give_item2 (summon_item) == 0 then
				say_title (mob_name (20349))
				say (gameforge.ride_ticket_change._150_say)
				return
			end
			
			item.remove()

		end
	end
end
--52701 Àü°©»çÀÚ ±³È¯±Ç     ¸¶±¸°£°æºñº´¿¡°Ô °¡Á®°¡¸é Àü°©»çÀÚ·Î ±³È¯ÇÏ¿© ÁÝ´Ï´Ù.
--52702 Àü°©È£ ±³È¯±Ç        ¸¶±¸°£°æºñº´¿¡°Ô °¡Á®°¡¸é Àü°©È£·Î ±³È¯ÇÏ¿© ÁÝ´Ï´Ù.
--52703 Àü°©¿ø ±³È¯±Ç        ¸¶±¸°£°æºñº´¿¡°Ô °¡Á®°¡¸é Àü°©¿øÀ¸·Î ±³È¯ÇÏ¿© ÁÝ´Ï´Ù.
--52704 Àü°©¶û ±³È¯±Ç        ¸¶±¸°£°æºñº´¿¡°Ô °¡Á®°¡¸é Àü°©¶ûÀ¸·Î ±³È¯ÇÏ¿© ÁÝ´Ï´Ù.
--52705	Àü°©¼ý¼ø·Ï ±³È¯±Ç	¸¶±¸°£°æºñº´¿¡°Ô °¡Á®°¡¸é Àü°©»çÀÚ·Î ±³È¯ÇÏ¿© ÁÝ´Ï´Ù.
--52706	Àü°©¾Ï¼ø·Ï ±³È¯±Ç	¸¶±¸°£°æºñº´¿¡°Ô °¡Á®°¡¸é Àü°©È£·Î ±³È¯ÇÏ¿© ÁÝ´Ï´Ù.
--52707	Àü°©¼®·æÀÚ ±³È¯±Ç	¸¶±¸°£°æºñº´¿¡°Ô °¡Á®°¡¸é Àü°©È£·Î ±³È¯ÇÏ¿© ÁÝ´Ï´Ù.
--52708	Àü°©¸ÍÁ¶ ±³È¯±Ç	¸¶±¸°£°æºñº´¿¡°Ô °¡Á®°¡¸é Àü°©È£·Î ±³È¯ÇÏ¿© ÁÝ´Ï´Ù.

 

 

Link to comment

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


×
×
  • 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.