Jump to content
  • 0

Automatic @pkmode when entering map


letstry

Question


  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

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
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

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)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

The map is already set on PVP.
Server type is PK


UPPPPP

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

Up!

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

a script cant bypass a fixed source mod

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

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

Is there a way to fix this?

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

 

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