Jump to content
Sign in to follow this  
Saddler

[Quest]Prevent switch bot

Recommended Posts

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

  • Love 2

Share this post


Link to post

What's the sense of the quest?

And why do you use setskin(NOWINDOW)?

That won't change anything.

Share this post


Link to post

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

Share this post


Link to post

I do that long time ago.

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

 

#Quest edited

This doesnt solve the problem, its easy to bypass this "protection".

  • Love 3

Share this post


Link to post

This doesnt solve the problem, its easy to bypass this "protection".

 

That's why in one year nobody bypass on my server.

 

Oh and learn to read the title.

 

"Prevent", stupid.

 

 

Regards.

Share this post


Link to post

Saddler, watch your language.

 

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

Share this post


Link to post

You can easy bypass this with simple python modifikations.

 

 

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

  • Love 1

Share this post


Link to post

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.

Share this post


Link to post

 

 

Only to put this small code into OnUpdate function of any py File:





for i in xrange(90):

   ItemVNum = player.GetItemIndex(i)

   if ItemVNum == BonusItemVnum:

      net.SendItemUsePacket(i)

      return
  • Love 2

Share this post


Link to post

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.

Share this post


Link to post

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.

 

 

Share this post


Link to post

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
Sign in to follow this  
  • Recently Browsing   0 members

    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.