Jump to content
  • 0

How to change @go command . I can't get it working


davyliyang

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   1
  • Joined:  03/08/14
  • Last Seen:  

I want to change a specific location of comodo to @go 0. I follow the wiki, but still couldn't get it working. My steps are following

 

I changed

 

 

 

 

{ MAP_PRONTERA,    156, 191 }, //  0=Prontera

 

to

 

{ MAP_PRONTERA,    156, 191 }, //  8=Prontera

 

 

------------------------------------------------------------

 

{ MAP_COMODO,      177, 309 }, //  8=Comodo

 

to

 

{ MAP_COMODO,      177, 309 }, //  0=Comodo

 

 

 

--------------------------------------------------------------------------

 

if (strncmp(map_name, "prontera", 3) == 0) {
town = 9;
 
to
 
if (strncmp(map_name, "prontera", 3) == 0) {
town = 8;

 

-----------------------------------------------------------------------------

 

} else if (strncmp(map_name, "comodo", 3) == 0) {
town = 8;

 

to

 

} else if (strncmp(map_name, "comodo", 3) == 0) {

 

 

 

 

 

then after i recompile the server. i type @go 0 in game, i still go to prontera. what did i do wrong? am i missing any steps? 

thank you in advance

town = 0;
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   4
  • Joined:  06/23/12
  • Last Seen:  

search

if (strncmp(map_name, "prontera", 3) == 0) {
        town = 0;
    }

change it to ..

if (strncmp(map_name, "comodo", 3) == 0) {
        town = 0;
    }

and search ..

else if (strncmp(map_name, "comodo", 3) == 0) {
        town = 8;
    }

change it to ..

else if (strncmp(map_name, "prontera", 3) == 0) {
        town = 8;
    }

recompile it /no1

maybe it works now /ok

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   1
  • Joined:  03/08/14
  • Last Seen:  

It works again. Thank you.

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