Jump to content
  • 0

New @go


JulioCF

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  224
  • Reputation:   58
  • Joined:  12/30/11
  • Last Seen:  

I'm trying to implement a new command

@go vip

Have edited atcommand.c

Line 2002:

{ MAP_SEC_IN01,   170, 168 }, // 36=sala vip

Line 2126 and 2127

} else if (strncmp(map_name, "vip", 3) == 0) {
town = 36;

Line 2194

{ MAP_SEC_IN01,   170, 168 }, // 29=sala vip

Line

2304 and 2305

} else if (strncmp(map_name, "vip", 3) == 0) {
town = 29;

mapindex.h

Line 49

#define MAP_SEC_IN01 "vip"

Error: Map not found

Thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

#define MAP_SEC_IN01 "sec_in01"

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  224
  • Reputation:   58
  • Joined:  12/30/11
  • Last Seen:  

Thanks.

I am obliged to take a parameter?

ex:

} else if (strncmp(map_name, "vip", 3) == 0) {
town = 35;

>

} else if (strncmp(map_name, "vip", 3) == 0) {
town = 40;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

yes, that will be the number when you use @go

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  224
  • Reputation:   58
  • Joined:  12/30/11
  • Last Seen:  

Ok, thanks.

Locked.

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
Answer this question...

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