Hello there,
since I have tried for days and still won't come up with any solution so far, I wanted to ask if anybody would be willing to help me...
I am trying to implement a @buff Command on my Server, but I always get an error when compiling. My src would be this:
ACMD_FUNC(buff)
{
int zeny = 10000;
nullpo_retr(-1, sd);
if(sd->status.zeny < zeny)
{
clif_displaymessage(fd, "Sorry, but you do not have enough Zeny to use @buff. @buff cost = 10k Zeny.");
return -1;
}
if ((map[sd->bl.m].flag.gvg) || (map[sd->bl.m].flag.pvp))
{
clif_displaymessage(fd, "Sorry, but you can't use @buff on PvP or GvG Maps.");
return -1;
}
sd->status.zeny = sd->status.zeny-zeny;
clif_updatestatus(sd, SP_ZENY);
sc_start(&sd->bl,SC_INCREASEAGI,100,10,600000);
sc_start(&sd->bl,SC_ANGELUS,100,10,600000);
sc_start(&sd->bl,SC_BLESSING,100,10,600000);
clif_displaymessage(fd, "You've received Buffs for 10 Minutes, have fun with it!");
return 0;
}
And yes I have added the
ACMD_DEF(buff)
The Compiling Error is as follows:
1>c:\users\roadmin\desktop\ro server\trunk\src\map\atcommand.c(9060): error C2065: 'atcommand_buff': undeclared identifier
1>c:\users\roadmin\desktop\ro server\trunk\src\map\atcommand.c(9060): warning C4047: 'initialization': Number of indirection in 'AtCommandFunc' and 'int' varying
(i am using a german visual studio so i translated it as good as possible, sorry for that.) So if anyone could help me I would be really greatful! :C Thank You very much,
Vainglorious