Greek
-
Content Count
19 -
Joined
-
Last visited
Posts posted by Greek
-
-
hahaha, I'm all over the place /huh
As for your last post:
Last line:
return 0;
change to:
return true;
bro Xgear i still got problem,
why other staff is same in broadcast?
like this
Geek GM Lvl is 4
and Marj GM Lvl is 3
else if(pc->get_group_level(sd) == 3){
sprintf(atcmd_output, "[script Manager] %s : %s", sd->status.name, message);
intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);
}
else if(pc->get_group_level(sd) == 4){
sprintf(atcmd_output, "[Event Manager] %s : %s", sd->status.name, message);
intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0xFF66FF, 0x190, 12, 0, 0);
Help again
-
HAHA
btw thanks again -
Change:
ACMD_FUNC(sann)
to
ACMD(sann)
how to fix this,
-
Argggggg you again bro Xgear
HAHA Thanks -
I just compile it and i got this error
Here's the script./*==========================================
* @sann by Donatien - Lain Ragnarok Online
* Custom Staff Announce Command for rAthena
* Rev. 17134
*------------------------------------------*/
ACMD_FUNC(sann)
{
nullpo_retr(-1, sd);
memset(atcmd_output, '0', sizeof(atcmd_output));
if(!message || !*message) {
clif->message(fd, "Please, enter a message (usage: @sann <message>).");
return false;
}
if(pc->get_group_level(sd) == 1){
sprintf(atcmd_output, "[super User] %s : %s", sd->status.name, message);
intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF9900, 0x190, 12, 0, 0);
}
if(pc->get_group_level(sd) == 2){
sprintf(atcmd_output, "[super User] %s : %s", sd->status.name, message);
intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF9900, 0x190, 12, 0, 0);
}
if(pc->get_group_level(sd) == 3){
sprintf(atcmd_output, "[GM] %s : %s", sd->status.name, message);
intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);
}
if(pc->get_group_level(sd) == 4){
sprintf(atcmd_output, "[GM] %s : %s", sd->status.name, message);
intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);
}
if(pc->get_group_level(sd) == 10){
sprintf(atcmd_output, "[GM] %s : %s", sd->status.name, message);
intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);
}
else if(pc->get_group_level(sd) == 99){
sprintf(atcmd_output, "[Admin] %s : %s", sd->status.name, message);
intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x99CCFF, 0x190, 12, 0, 0);
}
return 0;
}
Here's the error i got after i compile it.
Hope you help me again -
nice bro 10/10
-
Thanks Xgear and jaBote it's working now!
-
Thanks sir, already compile it but i still have one more error.
-
Here's the script
if( !pc_get_group_level(sd) && DIFF_TICK(iTimer->gettick();,sd->canlog_tick) < 5000 ) {
clif_displaymessage(fd,"@warp cannot be issued since you were into battle recently");
return false;
}
if (pc->setpos(sd, mapindex, x, y, CLR_TELEPORT) != 0) {
clif->message(fd, msg_txt(1)); // Map not found.
return false;
And then i got this error when i compile -
i got error when i compile it
-
@Zopokx here's my script.
src/map/atcommand.cclif_displaymessage(fd, msg_txt(248));
return -1;
}
+ if( !pc_get_group_level(sd) && DIFF_TICK(gettick(),sd->canlog_tick) < 5000 ) {
+ clif_displaymessage(fd,"@warp cannot be issued since you were into battle recently");
+ return -1;
+ }
if (pc_setpos(sd, mapindex, x, y, CLR_TELEPORT) != 0) {
clif_displaymessage(fd, msg_txt(1)); // Map not found.
return -1;return 0;
}
+ if( !pc_get_group_level(sd) && DIFF_TICK(gettick(),sd->canlog_tick) < 5000 ) {
+ clif_displaymessage(fd,"@go cannot be issued since you were into battle recently");
+ return -1;
+ }
+
memset(map_name, '0', sizeof(map_name));
memset(atcmd_output, '0', sizeof(atcmd_output));
src/map/pc.cpet_target_check(sd,src,1);
sd->canlog_tick = gettick();
+ if( src->type == BL_PC )
+ ((TBL_PC*)src)->canlog_tick = gettick();
}
int pc_dead(struct map_session_data *sd,struct block_list *src)
Please help me to fix the script -
nice job for this
-
cool!
-
Please help, i try to use the script in rathena but it gives error
m noobie in Hercules SVN please help
Thanks in advance -
any updates for this topic, i got the same problem too
-
Oh i see,
Thanks -
Help to fix this script
m adding the 5 Seconds Delay to @warp and @go when hit but the script got error,
Thanks in advance
R> Hercules version of this
in Source Requests
Posted · Edited by Greek
You mean like this one?
http://www.ro-services.com/ro-scr-mod-warp-go-5-secs-delay-2/