Jump to content

who can help


Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/14/16
  • Last Seen:  

../custom/atcommand.inc:37:34: error: request for member ‘Alias’ in ‘atcommand_alias_db’, which is of pointer type ‘DBMap*’ (maybe you meant to use ‘->’ ?)
  parent_cmd = atcommand_alias_db.Alias(command + 1);
                                  ^
make[1]: *** [obj/atcommand.o] Error 1

 


+ACMD_FUNC(equipoff) {
+    int value = 0;
+    char type[CHAT_SIZE_MAX];
+
+    nullpo_retr(-1, sd);
+
+    if (map_getmapflag(sd->bl.m, MF_NOEQUIP_OFF) || map_getmapflag(sd->bl.m, MF_EQUIP_HIDE)) {
+        clif_displaymessage(fd, msg_txt(sd, 1525));
+        return -1;
+    }
+
+    parent_cmd = atcommand_alias_db.checkAlias(command + 1);
+
+    if (strcmp(parent_cmd, "equipoff") == 0) {
+        if ((sscanf(message, "%s", &type)) < 1) {
+            clif_displaymessage(fd, msg_txt(sd, 1523)); // Syntax: @equipoff <type>
+            clif_displaymessage(fd, msg_txt(sd, 1524)); // Type: all - all players | others - other players
+            return -1;
+        }
+
 

Edited by DevilingKing
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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