Jump to content

Mapflags noitem and noskill2


Wynn_

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   12
  • Joined:  02/02/12
  • Last Seen:  

This is my first source mod, it allows you to disable multiple items/skills on maps.

<mapa> [TAB] mapflag [TAB] <mapflag> [TAB] <param>,<param>,...

NOITEM:

param:

item id = Only disables item id

1 = Disables all consumable items

2 = Disables and takes off all equipments

4 = Disables all card effects

Example:

prontera mapflag noitem 1222,501,503,505,4001,4033 // Damascus, red, yellow and blue potions disabled, Poring and Poporing cards won't work
geffen mapflag noitem 4,1 // All consumable items are disabled, no card effects.
izlude mapflag noitem 5 // The same as above (4+1)

NOSKILL2:

param:

skill id = Disables the specified skill.

Example:

prontera mapflag noskill2 243,8016 // Can't use "Call Homunculus" and Vanilmirth's "Bio Explosion" skills
geffen mapflag noskill2 83,89,85 // Can't use "Storm Gust", "Meteor Storm" and "Lord of Vermillion"

Mirror: http://paste.pocoo.org/raw/557974/

noitemnoskill.patch

  • Upvote 3
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

This is nice. You don't have set every items you want to block on the same map.

Thanks. :]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

wow thanks will be useful :P

Ms. Wynn can you also do a Global one? that makes all item/usable not to work?

Sorry my bad wasn't reading the Function /hmm works for All too /no1

Thanks works perfectly /thx

Edited by ngek202
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

can you make like this for setcell?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

thanks for sharing. but first param of noskill2 mapflag wont work.

Ex.

prontera mapflag noskill2 243

Skill with ID 243 will work in prontera...

i must add it else:

prontera mapflag noskill2 243,243
Edited by Lilith
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   2
  • Joined:  02/07/12
  • Last Seen:  

Thanks very much for creating this, I was super happy when search actually yielded a return on this xP Now to just get it working >.<

Edited by Lige
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

thanks for sharing. but first param of noskill2 mapflag wont work.

Ex.

prontera mapflag noskill2 243

Skill with ID 243 will work in prontera...

i must add it else:

prontera mapflag noskill2 243,243

Confirm this problem and some skill can work in mapflag

eg. vending skill

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

In file skill.c

ARR_FIND(1,

must be replaced to

ARR_FIND(0,

I think...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

In file skill.c

ARR_FIND(1,

must be replaced to

ARR_FIND(0,

I think...

I have test That work /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

This is my first source mod, it allows you to disable multiple items/skills on maps.

<mapa> [TAB] mapflag [TAB] <mapflag> [TAB] <param>,<param>,...

NOITEM:

param:

item id = Only disables item id

1 = Disables all consumable items

2 = Disables and takes off all equipments

4 = Disables all card effects

Example:

prontera mapflag noitem 1222,501,503,505,4001,4033 // Damascus, red, yellow and blue potions disabled, Poring and Poporing cards won't work
geffen mapflag noitem 4,1 // All consumable items are disabled, no card effects.
izlude mapflag noitem 5 // The same as above (4+1)

NOSKILL2:

param:

skill id = Disables the specified skill.

Example:

prontera mapflag noskill2 243,8016 // Can't use "Call Homunculus" and Vanilmirth's "Bio Explosion" skills
geffen mapflag noskill2 83,89,85 // Can't use "Storm Gust", "Meteor Storm" and "Lord of Vermillion"

where i put this???

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

noitem seems not working with the latest version.

my bad working as it was.

Edited by ngek202
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   2
  • Joined:  07/31/12
  • Last Seen:  

Does it work with the newest SVN ?

I only get an Error:

pc.c:877: error: 'nameid' undeclared (first use in this function)
pc.c:877: error: (Each undeclared identifier is reported only once
pc.c:877: error: for each function it appears in.)
pc.c: In function 'pc_equipitem':
pc.c:7924: error: 'calc_flag' undeclared (first use in this function)

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
Reply to this topic...

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