Jump to content

Prevent Switch Bot


Saddler

Recommended Posts

M2 Download Center

This is the hidden content, please
( Internal )

Hey, here's my old quest to prevent switch bot:

quest switch begin
	state start begin
		function switchItem()
			local a = number(1, table.getn(item_list))
			local item_list = {X,X,X,X,X,X,X,X,X,X}
			local give = true
			
			for k,v in ipairs(item_list) do
				if pc.count_item(v) >= 1 then
					give = false
				end
			end
			
			if give == false or pc.get_empty_inventory_count() < 1 then
				say_title("Title")
				say("")
				say_reward("Message error for dont have more than 1 pack on inventory")
				return
			end
			pc.give_item2(item_list[a], 50) -- you can set here the quantity of received item
		end
			
		when X.use begin -- dont forget to set here a NPC or item
			switch.switchItem()
		end
	end
end

After add the quest to server

 

Go to item_proto client/server

Search for 71084, copy the line

Then change only the ID's you put in the quest.

The name can be the same in all, just change the ID's

 

You need to give path in item_list and item_desc, just change the ID's.

 

 

Thanks to Mr. 'Avenue™ for a small fix.

Kind Regards

  • Metin2 Dev 9
  • Think 1
  • Confused 1
  • Good 3
  • Love 3
Link to comment
Share on other sites

Saddler, watch your language.

 

kforce, it would be more helpful if you explained how, rather than just stating that it can be bypassed.

 

Sorry Shogun, but that guy come from "other" forum when rules don't exist trying to put me down.

I don't like that.

I just share the quest for prevent. Not full protection of switch bot.

 

On my old system i have all structure of python modified, hackshield, that quest, and other small stuff.

Link to comment
Share on other sites

Sorry Shogun, but that guy come from "other" forum when rules don't exist trying to put me down.

I don't like that.

I just share the quest for prevent. Not full protection of switch bot.

 

On my old system i have all structure of python modified, hackshield, that quest, and other small stuff.

Is this forum you mentioned the same where your previous post would be considered an insult? It's not his fault you can't control yourself. He could have been more constructive, how does that allow you to insult him? Also, and on topic: this quest prevents nothing nor it protects, it's a nice little "protection" but easily bypassable.
Link to comment
Share on other sites

Is this forum you mentioned the same where your previous post would be considered an insult? It's not his fault you can't control yourself. He could have been more constructive, how does that allow you to insult him? Also, and on topic: this quest prevents nothing nor it protects, it's a nice little "protection" but easily bypassable.

 

That's ok.

 

 

Link to comment
Share on other sites

  • 3 weeks later...

Announcements



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