foenne524 Posted August 16, 2020 Posted August 16, 2020 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 Quote
0 Kreustoo Posted August 16, 2020 Posted August 16, 2020 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 :). Quote
0 foenne524 Posted August 16, 2020 Author Posted August 16, 2020 (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 August 16, 2020 by foenne524 Quote
0 jayvz17 Posted August 27, 2020 Posted August 27, 2020 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? Quote
0 foenne524 Posted August 27, 2020 Author Posted August 27, 2020 (edited) 2 hours ago, jayvz17 said: Hi, Which file did you add this one? Spoiler src then atcommand.c Edited August 27, 2020 by foenne524 Quote
Question
foenne524
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.
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.