Jump to content
  • 0
foenne524

@duel in 1 map only

Question

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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.