This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] A map.dbc entry only allowed in with an item.  (Read 1912 times)

Soldan

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 159
    • View Profile
[QUESTION] A map.dbc entry only allowed in with an item.
« on: April 14, 2012, 01:09:12 am »
Hey guys.

I had the idea of making a zone that you can only enter via a Portal if you have a certain item in your inventory.

I know it's possible, I'm just not sure if it's a column in the map.dbc file..

I have my custom map (5010) called the Abyssal Isle, and it's part of a Quest Chain... I know ithere are easier ways of doing it, like, only being able to be teleported after competing a quest (Having the teleport in a quest chain, ofc).

But what I really want is to make it quite profesional, and have it so that you can only enter that map with said item...

If anyone has any knowledge on the subject, and decides to share it...
I will love you forever <3

Soldan
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

fellfoxen2

  • Registred Member
  • Race Changer
  • *****
  • Posts: 28
    • View Profile
Re: [QUESTION] A map.dbc entry only allowed in with an item.
« Reply #1 on: April 14, 2012, 01:14:51 am »
There is not an entry in the client files for this function. However, (this depends on your database) find 'worldmap_info' and find the column 'required_item' and stick the itemID there. You can also make it possible that a certain quest is required as well. I haven't tested it, but it should work.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Soldan

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 159
    • View Profile
Re: [QUESTION] A map.dbc entry only allowed in with an item.
« Reply #2 on: April 14, 2012, 01:18:50 am »
Aha! I love you so much.

That must be ArcEmu though. I found it in trinity db -> Access_Requirement

"Mapid....difficulty... level_min..level_max...item...item2...quest_done"

etc etc

Ty man!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [QUESTION] A map.dbc entry only allowed in with an item.
« Reply #3 on: April 14, 2012, 09:25:45 am »
You can also modify the portal to cast the spell only if you have the item. This way players can get ther other ways but to use the portal you need the item.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954