Nessiesson

Untitled

Aug 10th, 2013
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. /invenchant [$player=''] [$id=''] [$enchantment=''] = >>>
  2.  
  3. # if(_nisadmin(player())) { die('Unknown command. Type "/help" for help.') }
  4. if($player == '') {
  5. msg(color(RED). 'Player name not provided.')
  6. die(color(RED). 'Usage /invenchant <Playername> <ID> <Enchantment>')
  7. }
  8. if($id == '') {
  9. msg(color(RED). 'ID to enchant not provided.')
  10. die(color(RED). 'Usage /invenchant <Playername> <ID> <Enchantment>')
  11. }
  12. if($enchantment == '') {
  13. msg(color(RED). 'Enchantment not provided.')
  14. die(color(RED). 'Usage /invenchant <Playername> <ID> <Enchantment>')
  15. }
  16.  
  17. #Assigns array @invslots to pitem_slot($player, $id))
  18. assign(@invslots, pitem_slot($player, $id))
  19. # msg('@invslots')
  20.  
  21.  
  22.  
  23. <<<
Advertisement
Add Comment
Please, Sign In to add comment