Jump to content
  • 0

how to block @load, @warp, @go and @die in pvp?


Question

9 answers to this question

Recommended Posts

Posted

can do src mod, but can do function with sql too, that when a player warps to pvp map, change the group id of the player to a group that has no command privilege, then when player moves out of the map, return him to the group with ur typical available @cmds.

about the src, find in src\map\atcommand.c the functions of load, warp, go and die and put there a checker if player state is on pvp, when they use the command, return -1;

Posted

You can also block warp and go by : https://rathena.svn....flag/nowarp.txt and @load by: https://rathena.svn....ag/noreturn.txt

Is this a script that I install just like a normal script or do I add this in some kind of document?

No, not a NPC script, just add your map to the desired mapflag. Example:

Look for those files inside the conf/mapflag/nowarp.txt and noreturn.txt

Just add your map in there and follow the format of course...

Like

guild_vs3<tab>mapflag<tab>nowarp

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