Jump to content
  • 0

Script Ivion Antibot Source and modification of Ea / rA Latest


Profe_Meza

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  11/15/12
  • Last Seen:  

Such a good day Hello everyone I have a little problem with the script Antibot Ivion what happens is that sometimes modifice the source of my rathena and always compiled fine (I also mark the same error eA), spent months and not modification is that rathena are made​​, well the point is that I get this error:


1> .. \ src \ map \ script.c (12597): error C2084: function 'int buildin_charat (script_state *)' already has a body
1> .. \ src \ map \ script.c (3879): see previous definition of 'buildin_charat'

There any way to know how to solve it!? This has traumatized me and I fear for the safety of my server, this antibot to my taste is very good and I use it like I could help resolve this error will not let me compile.

THANKS!!!

Script Ivion Antibot Link! http://www.eathena.ws/board/index.php?showtopic=233642

Edited by Profe_Meza
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

there may be other function with the same function name & parameters.

Edited by Magnetix
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  11/15/12
  • Last Seen:  

actually it seems, I can do?

These are the codes to edit:

./src/map/map.c

if (sd->npc_timer_id != -1) //Cancel the event timer.
 npc_timerevent_quit(sd);
while(sd->npc_id) npc_event_dequeue(sd);
npc_script_event(sd, NPCE_LOGOUT);

./src/map/script.c

#define BUILDIN_DEF2(x,x2,args) { buildin_ ## x , x2 , args }
#define BUILDIN_FUNC(x) int buildin_ ## x (struct script_state* st)
// [ToastOfDoom]
// Returns the character at the specified position in a string.
// charat <str>,<index>;
BUILDIN_FUNC(charat)
{
const char *str = script_getstr(st,2);
int pos = script_getnum(st,3);
char *output;
output = (char*)aMallocA(2*sizeof(char));
output[0] = '\0';
if(str && pos >= 0 && (unsigned int)pos < strlen(str))
 sprintf(output, "%c", str[pos]);
script_pushstr(st, output);
return 0;
}

./src/map/script.c

struct script_function buildin_func[] = {
BUILDIN_DEF(charat, "si"), // [ToastOfDoom]
Edited by Profe_Meza
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

the warning say already exists a script command called 'charat' in ea/ra

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  11/15/12
  • Last Seen:  

I know what I want to correct that, but I think it would have to modify the script too :/

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