Jump to content

Restrict items on QuickSlots


Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

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