Nero 20 Posted March 2, 2017 Share Posted March 2, 2017 Hi guys, do you know how to set shop restriction in some maps? For example : Players can't make shops in map1, no one of them. I would like if someone of you can do this for me, I don't want complex systems, I don't want texts on chat or things like this, just to be impossible to make a shop in a map. Have a nice day and thank you in advance! PS : I have shop offline system. Link to comment Share on other sites More sharing options...
Nero 20 Posted March 6, 2017 Author Share Posted March 6, 2017 Up Link to comment Share on other sites More sharing options...
Abigo 7 Posted March 6, 2017 Share Posted March 6, 2017 if (GetMapIndex() == index_map) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't open a shop in this map")); return; } add this in the open shop function 1 Link to comment Share on other sites More sharing options...
Nero 20 Posted March 6, 2017 Author Share Posted March 6, 2017 3 hours ago, Abigo said: if (GetMapIndex() == index_map) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't open a shop in this map")); return; } add this in the open shop function works with shop offline ? Link to comment Share on other sites More sharing options...
Abigo 7 Posted March 6, 2017 Share Posted March 6, 2017 1 minute ago, Nero said: works with shop offline ? yes 1 Link to comment Share on other sites More sharing options...
Nero 20 Posted March 6, 2017 Author Share Posted March 6, 2017 Just now, Abigo said: yes thank you very much then ! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now