Jump to content
  • 0

@duel in 1 map only


Question

Posted

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

 

 

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • 0
Posted
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?

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...