Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /invenchant [$player=''] [$id=''] [$enchantment=''] = >>>
- # if(_nisadmin(player())) { die('Unknown command. Type "/help" for help.') }
- if($player == '') {
- msg(color(RED). 'Player name not provided.')
- die(color(RED). 'Usage /invenchant <Playername> <ID> <Enchantment>')
- }
- if($id == '') {
- msg(color(RED). 'ID to enchant not provided.')
- die(color(RED). 'Usage /invenchant <Playername> <ID> <Enchantment>')
- }
- if($enchantment == '') {
- msg(color(RED). 'Enchantment not provided.')
- die(color(RED). 'Usage /invenchant <Playername> <ID> <Enchantment>')
- }
- #Assigns array @invslots to pitem_slot($player, $id))
- assign(@invslots, pitem_slot($player, $id))
- # msg('@invslots')
- <<<
Advertisement
Add Comment
Please, Sign In to add comment