Jump to content
  • 0

Block warp scroll


DemoroCZ

Question

11 answers to this question

Recommended Posts

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

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
  • 0
  • VIP

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
  • 0
  • VIP

 

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

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
Link to comment
  • 0
  • VIP

 

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
  • 0
  • VIP
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

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.