Jump to content

Diconfrost VaNz

Members
  • Posts

    974
  • Joined

  • Last visited

Everything posted by Diconfrost VaNz

  1. oh i see...so the only option here is to disable the /b command? ) or force my GM to use the @broadcast command xD
  2. yeah...i know...that's why i posted here in the source modification support xD that's a basic common sense xD another problem: it only works on @broadcast...how can i apply it also to /b command? Anyone?
  3. i only understand "remove the +" but the "FYI it's the src not script ok.." thingy...what do you by that? /*========================================== * @broadcast by [Valaris] *------------------------------------------*/ ACMD_FUNC(broadcast) { int gm_lvl = pc_isGM(sd); nullpo_retr(-1, sd); memset(atcmd_output, '0', sizeof(atcmd_output)); if(!message || !*message) { clif_displaymessage(fd, "Please, enter a message (usage: @adm <message>)."); return -1; } if(gm_lvl >= 20 && gm_lvl <=40){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF0000, 0x190, 12, 0, 0); } else if(gm_lvl>=41 && gm_lvl<=60){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0x800000, 0x190, 12, 0, 0); } else if (gm_lvl>=61 && gm_lvl<=80){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0x4B0082, 0x190, 12, 0, 0); } else if (gm_lvl>=81 && gm_lvl<=98){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0x0000FF, 0x190, 12, 0, 0); } else if(gm_lvl== 99){ sprintf(atcmd_output, "[Admin] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF0000, 0x190, 12, 0, 0); } return 0; }
  4. so meaning it will be like this? /*========================================== * @broadcast by [Valaris] *------------------------------------------*/ ACMD_FUNC(broadcast) { + int gm_lvl = pc_isGM(sd); nullpo_retr(-1, sd); memset(atcmd_output, '0', sizeof(atcmd_output)); if(!message || !*message) { clif_displaymessage(fd, "Please, enter a message (usage: @adm <message>)."); return -1; } if(gm_lvl >= 20 && gm_lvl <=40){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF0000, 0x190, 12, 0, 0); } else if(gm_lvl>=41 && gm_lvl<=60){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0x800000, 0x190, 12, 0, 0); } else if (gm_lvl>=61 && gm_lvl<=80){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0x4B0082, 0x190, 12, 0, 0); } else if (gm_lvl>=81 && gm_lvl<=98){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0x0000FF, 0x190, 12, 0, 0); } else if(gm_lvl== 99){ sprintf(atcmd_output, "[Admin] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF0000, 0x190, 12, 0, 0); } return 0; }
  5. An Original Post From http://ro-resources.net/topic/285-broadcast-depending-on-gm-level/ It Doesn't work for me, i dnt know what is the error. I'm using 3ceam revision 650. /*========================================== * @broadcast by [Valaris] * Edited by Jake Red *------------------------------------------*/ ACMD_FUNC(broadcast) { nullpo_retr(-1, sd); memset(atcmd_output, '\0', sizeof(atcmd_output)); if(!message || !*message) { clif_displaymessage(fd, "Please, enter a message (usage: @adm <message>)."); return -1; } if(gm_lvl >= 20 && gm_lvl <=40){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF0000, 0x190, 12, 0, 0); } else if(gm_lvl>=41 && gm_lvl<=60){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0x800000, 0x190, 12, 0, 0); } else if (gm_lvl>=61 && gm_lvl<=80){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0x4B0082, 0x190, 12, 0, 0); } else if (gm_lvl>=81 && gm_lvl<=98){ sprintf(atcmd_output, "[support and Order] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0x0000FF, 0x190, 12, 0, 0); } else if(gm_lvl== 99){ sprintf(atcmd_output, "[Admin] %s : %s", sd->status.name, message); intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF0000, 0x190, 12, 0, 0); } return 0; }
  6. i think they're already dead...
  7. then @skilloff ) will the players are able the ground effect even they turn the effects off? /effect
  8. how about @warp lhz_in03 16 31 i can't find that one okay...i saw it now Thanks problem solved Thanks to everyone. This is the script i'm using now. derived from the script of kenpachi and the idea of miland with a help of Neblim for the warps.
  9. oh yeah...my bad xD how about @warp lhz_in03 18 99
  10. no not the npcs...i mean the warp portal on that room xD or can you suggest a map that i can make as GMs Room
  11. how to disable the warp portal here? @warp lhz_in03 26 161
  12. okay testing the script that kenpachi made
  13. nothing of the two is working for me? xD
  14. WTF?i thought this one is not this easy!so my code made in my mind was right! btw, thanks miland xD
  15. I dn't know if this is a scr or a just a script. Btw, this is the description. Whenever a GM logins ingame, it will warp him to a place(a place to be a GMs Private Room), and it will automatically give the GM the command of @speed 0 and will broadcast to the whole server that this GM is online.
  16. Another candidate for a dead thread?
  17. what is the format and the size of a login screen for ragnarok? is it 16bit? 32bit? what size?
  18. Obviously bawal ang double posting...kahit saang forums...common sense lng nmn eh
×
×
  • Create New...