Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Command to use skill.
- --
- Usage:
- us <skill_id> <arglist>
- */
- include ssv;
- include utils;
- program us(pc, text)
- var args := SplitWords(text);
- if(is_skill(args[1]) and know_skill(pc, args[1]))
- var r := use_skill(pc, args[1], text);
- if(not r)
- error_msg(pc, "Cannot use skill.");
- endif
- else
- error_msg(pc, "Invalid skill.");
- endif
- endprogram
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement