Jump to content
  • 0

Automatic @pkmode when entering map


Question

Posted (edited)

Is there a way for a player to use a certain command that is disabled in a map?

My @pkmode system: Players can turn their pkmode to on or off ONLY IF they are at a town or non-pk maps.
My @go 15 is our Main PK Grounds so I what I wanted is that all players who enter the area will turn their PK on no matter what.

 

-    script    go15pkmode    -1,{
OnPCLoadMapEvent:
    if (strcharinfo(3) == "new_1-1")
    atcommand "@pkmode 1";
    end;
}
// - Map flags
new_1-1    mapflag    loadevent

Here's what it shows whenever they enter go 15

"Sorry, You Cant Use This Command Your Current Map."

Is there a way to bypass the condition just by using a script?
Thanks!

 


Up

Edited by letstry

7 answers to this question

Recommended Posts

  • 0
Posted

Is there a way for a player to use a certain command that is disabled in a map?

My @pkmode system: Players can turn their pkmode to on or off ONLY IF they are at a town or non-pk maps.

My @go 15 is our Main PK Grounds so I what I wanted is that all players who enter the area will turn their PK on no matter what.

 

-    script    go15pkmode    -1,{
OnPCLoadMapEvent:
    if (strcharinfo(3) == "new_1-1")
    atcommand "@pkmode 1";
    end;
}
// - Map flags
new_1-1    mapflag    loadevent

Here's what it shows whenever they enter go 15

"Sorry, You Cant Use This Command Your Current Map."

Is there a way to bypass the condition just by using a script?

Thanks!

 

Up

all you have to do is set a pvp mapflag on that particular map, you dont have to put some onpcloadmapevent.

 

like this

 

 

new_1-1    mapflag    nocommand    99

new_1-1    mapflag    pvp                      <----------enable pvp in new_1-1 map

new_1-1    mapflag    noreturn              <-------you can also add some other mapflag like this

new_1-1    mapflag    noteleport

new_1-1    mapflag    nomemo

new_1-1    mapflag    nosave    SavePoint

 

all map will behave normally except for the map that you set some mapflags (the map new_1-1 above)

  • 0
Posted

I guess I should've posted this on source support.

Is there a way to fix this?

update your source mod and add the mapflag checking for it.

 

if you're asking for spoonfeeding there isn't much to help since you  never shown your source mod here.

  • 0
Posted (edited)

 

I guess I should've posted this on source support.

Is there a way to fix this?

update your source mod and add the mapflag checking for it.

 

if you're asking for spoonfeeding there isn't much to help since you  never shown your source mod here.

 

 

Maybe his using this...

https://rathena.org/board/topic/67596-pkmode-help/?p=120379

Edited by Lelouch vi Britannia

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