Jump to content

Block warp scroll


Go to solution Solved by Ken,

Recommended Posts

You should be look at char_item.cpp and search this ; 

					case USE_TALISMAN:

For block ;

							// gm_guild_build, oxevent ¸Ê¿¡¼­ ±ÍȯºÎ ±Íȯ±â¾ïºÎ ¸¦ »ç¿ë¸øÇÏ°Ô ¸·À½
							if (GetMapIndex() == 200 || GetMapIndex() == 113 || GetMapIndex() == newMapIndex)
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ÇöÀç À§Ä¡¿¡¼­ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
								return false;
							}

Best Regards

Ellie

Do not be sorry, be better.

Link to comment
Share on other sites

  • Premium

You should be look at char_item.cpp and search this ; 

					case USE_TALISMAN:

For block ;

							// gm_guild_build, oxevent ¸Ê¿¡¼­ ±ÍȯºÎ ±Íȯ±â¾ïºÎ ¸¦ »ç¿ë¸øÇÏ°Ô ¸·À½
							if (GetMapIndex() == 200 || GetMapIndex() == 113 || GetMapIndex() == newMapIndex)
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ÇöÀç À§Ä¡¿¡¼­ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
								return false;
							}

Best Regards

Ellie

Thanks

Link to comment
Share on other sites

  • Premium

 

You should be look at char_item.cpp and search this ; 

					case USE_TALISMAN:

For block ;

							// gm_guild_build, oxevent ¸Ê¿¡¼­ ±ÍȯºÎ ±Íȯ±â¾ïºÎ ¸¦ »ç¿ë¸øÇÏ°Ô ¸·À½
							if (GetMapIndex() == 200 || GetMapIndex() == 113 || GetMapIndex() == newMapIndex)
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ÇöÀç À§Ä¡¿¡¼­ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
								return false;
							}

Best Regards

Ellie

Thanks

 

Is there solution for rev. 2089? I'm planning 40k core for my root server, but i need block warp scrolls quickly on some maps. Preparing 40k core takes weeks/months...

 

Thanks, and sorry for my english.

Link to comment
Share on other sites

  • Premium

 

At 2089 you can do it via quest

when login begin
	local indexes = {1,21,41} --map indexes
	for x = 1,table.getn(indexes),1 do
		if pc.get_map_index() == indexes[i] then warp_to_village() end
	end
end

Thanks, but i need block only warp using warp-scroll, this quest will warp player everytime when he login (relog, respawn in town, warp by NPC)

 

Again, sorry for my english, and thanks.

Link to comment
Share on other sites

  • Solution
quest block_warpscroll begin
	state start begin
		when click with item.vnum >= 22000 and item.vnum <= 22050 begin
			if(item.get_sub_type() >= 3) then
				local index = {1,21,41}
				for i = 1,table.getn(index),1 do
					if(pc.get_map_index() >= index[i]) then
						syschat("You can't use to this warp scroll on this map..")
						return
					end
				end
			end
		end
	end
end

Best Regards

Ellie

  • Love 1

Do not be sorry, be better.

Link to comment
Share on other sites

  • Premium
quest block_warpscroll begin
	state start begin
		when click with item.vnum >= 22000 and item.vnum <= 22050 begin
			if(item.get_sub_type() >= 3) then
				local index = {1,21,41}
				for i = 1,table.getn(index),1 do
					if(pc.get_map_index() >= index[i]) then
						syschat("You can't use to this warp scroll on this map..")
						return
					end
				end
			end
		end
	end
end

Best Regards

Ellie

 

Thanks :)

Link to comment
Share on other sites

  • 4 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 11

      Metin2 Closed Beta Content (2003-2004)

    2. 11

      Metin2 Closed Beta Content (2003-2004)

    3. 0

      Football Ground

    4. 11

      Metin2 Closed Beta Content (2003-2004)

    5. 0

      Error compile binary Zentoria2

    6. 11

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

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