Jump to content
  • 0

@duel in 1 map only


foenne524

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  07/29/20
  • Last Seen:  

How can i enable @duel on 1 map only. 

Example : Duel only works in Prontera

I saw a script but its the opposite. what i need is @duel command that only works in 1 map.

Spoiler

 

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  07/29/20
  • Last Seen:  

nevermind. got it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  215
  • Reputation:   45
  • Joined:  05/03/13
  • Last Seen:  

Hello,

@foenne524 you could post how you did it so if someone has the same problem and see your post, they have the answer too :).

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  07/29/20
  • Last Seen:  

Sure thing. Just download the file and edit the given code from this

Spoiler

+    if(sd->bl.m == map_mapname2mapid("prontera")) {
+        clif_displaymessage(fd, "You can not duel in Prontera.");
+        return 0;
+    }

to this

Spoiler

+    if(sd->bl.m != map_mapname2mapid("prontera")) {
+        clif_displaymessage(fd, "Duels are not available in this map");
+        return 0;
+    }

 

 

Edited by foenne524
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   1
  • Joined:  04/08/14
  • Last Seen:  

On 8/16/2020 at 11:36 PM, foenne524 said:

Sure thing. Just download the file and edit the given code from this

  Hide contents

+    if(sd->bl.m == map_mapname2mapid("prontera")) {
+        clif_displaymessage(fd, "You can not duel in Prontera.");
+        return 0;
+    }

to this

  Hide contents

+    if(sd->bl.m != map_mapname2mapid("prontera")) {
+        clif_displaymessage(fd, "Duels are not available in this map");
+        return 0;
+    }

 

 


Hi, Which file did you add this one?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  07/29/20
  • Last Seen:  

2 hours ago, jayvz17 said:


Hi, Which file did you add this one?

Spoiler

 

src then atcommand.c

Edited by foenne524
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...