Advertisement
idontusemyphone

Untitled

Nov 15th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1. AMCD(do_user_actions)
  2. {
  3.     char arg1[256];
  4.     one_argument(argument, arg1, sizeof(arg1));
  5.  
  6.     if (*arg1)
  7.     {
  8.         switch(LOWER(*arg1))
  9.         {
  10.             case 'p': // poly
  11.                 {
  12.                     if (!(ch->IsPolymorphed()))
  13.                         return;
  14.  
  15.                     ch->SetPolymorph(0);
  16.                     ch->RemoveAffect(AFFECT_POLYMORPH);
  17.                 }
  18.                 break;
  19.             case 'e': // exp
  20.                 {
  21.  
  22.                 }
  23.                 break;
  24.             default;
  25.                 ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("±×·± ¸í·Éľî´Â ľř˝Ŕ´Ď´Ů"));
  26.                 break;
  27.         }
  28.     }
  29.     else
  30.         ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("±×·± ¸í·Éľî´Â ľř˝Ŕ´Ď´Ů"));
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement