Jump to content
Forgot your email address? ×
×
×
  • Create New...

Prevent Switch Bot


Saddler

Recommended Posts

M2 Download Center

Hidden Content

    Give reaction to this post to see the hidden content.
( 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 1
  • Love 2
  • Good 1
Link to comment

What's the sense of the quest?

And why do you use setskin(NOWINDOW)?

That won't change anything.

 

I do that long time ago.

I just share if someone have problems with switch bot, that solve the problem.

 

#Quest edited

Link to comment

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

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

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
  • 3 weeks later...

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 0

      Visual Studio 2010 Ultimate

    2. 1

      Reduce server memory usage

    3. 31

      Metin2 Project - How to create à Metin2 private server on virtual machine

    4. 1

      Use BeltInventory slots without Belt

    5. 47

      Paid service - Vegas Projects

    6. 44

      Changelogs

    7. 79

      3D Shop - Mark Service

  • Recently Browsing

    • No registered users viewing this page.

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.