Jump to content
  • 0

Help


sevenrosuport

Question


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   1
  • Joined:  07/08/12
  • Last Seen:  

I made this edit it blocks the ability to use the char, but if you equip a mount and then remove it releases the use of skill and enverte I wanted it to not be able to use it in any way.

map/pc.h:

look for this part.

[indent=1]
} special_state;[/indent]

put this.

[indent=1]
unsigned int noskills: 1;
[/indent]

map/skill.c:

look for this part.

[indent=1]
if (pc_has_permission(sd, PC_PERM_SKILL_UNCONDITIONAL))
return 0; // GMs can do any damn thing they want

put this.

if(sd->special_state.noskills)
return 1;
[/indent]

map/script.c

look for this part.

BUILDIN_FUNC(freeloop) {

if( script_getnum(st,2) )
st->freeloop = 1;
else
st->freeloop = 0;

script_pushint(st, st->freeloop);

return 0;
}

put this.

BUILDIN_FUNC(blockskills) {
TBL_PC* sd;
struct script_data *character, *statedat;
int state;

if (script_hasdata(st,3)) {
character = script_getdata(st,3);
if(!data_isstring(character)) return -1;
sd = map_nick2sd(character->u.str);
} else {
sd = script_rid2sd(st);
}
if (!sd) return -1;
if (script_hasdata(st,2)) {
statedat = script_getdata(st,2);
if(data_isint(statedat))
state = (statedat->u.num?1:0);
else
state = (!sd->special_state.noskills?1:0);
} else
state = (!sd->special_state.noskills?1:0);
sd->special_state.noskills = state;
return 0;
}[/indent]

look for this part.

BUILDIN_DEF(makerune,"i"),

put this.

[indent=1]
BUILDIN_DEF(blockskills,"??"),

Edited by sevenrosuport
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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