Jump to content

block horse/items on war map


Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

To block potions you have to go in char_item.cpp where potions are used and add a check like this:
if (ch->GetMapIndex() == 110)
     return false; // or something blocking the rest of code in which he makes the pot working(same thing elixirs)

To block Horse as well you have to make a check like that before in the function that makes you ride the horse, maybe HorseRide (i can t look on now)
To block mounts you have to add a check in your quest that calls them like this:
if pc.get_map_index() == 110 then
     return -- or something blocking the rest of the code in which mount are called
 

If you have problems managing it by yourself I could help you on skype-> xelbrujoox 

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



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