Jump to content
External pictures are being replaced... ×
×
×
  • Create New...
  • 0

Restrict items on QuickSlots


zeimpekis9

Question

Hey guys i've been investigating a bug thats on most servers. The bug is that when you set an affect on your player i.e the red pot that gives you +20% critical strike for example and then log out, when you login again and your player is kinda invinsible you open fast the inventory and spam again the same potion and get an other affect on your character. This i fixed it with a vegas code i found in a forum(cant remember but if someone has same problem i can find it for him). This bug can be done with an other way, by setting the item on the QuickSlot and before even you login and your char is invinsible (while you re in loading screen) you spam the number and still get the affect. So i want to restrict some certain items on getting to ANY number of the Quickslot 1,2,3,4 and the F buttons in every QuickSlot page. Can anyone help? 

Thanks a lot.

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0
  • Honorable Member

open char_quickslot.cpp and search for:

	if (pItem->IsDragonSoul())
		return;

modify:

if (pItem->IsDragonSoul() || pItem->GetVnum() == YOURITEMID)
  return;

 

If you wanna add more items:

if (pItem->IsDragonSoul() || pItem->GetVnum() == YOURITEMID || pItem->GetVnum() == YOURITEMID2 || pItem->GetVnum() == YOURITEMID3)
  return;

I'm working now so I couldn't test it, but I think it's gonna work.

WRnRW3H.gif

Link to comment
Share on other sites

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
  • Recently Browsing   0 members

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