Jump to content

Diconfrost VaNz

Members
  • Posts

    974
  • Joined

  • Last visited

Everything posted by Diconfrost VaNz

  1. @Kenpachi = so this is the right one? - script WoEKillMessage -1,{ OnPCKillEvent: if((AgitCheck() && CallSub(IsWoE1Map, StrCharInfo(3))) || (AgitCheck2() && CallSub(IsWoE2Map, StrCharInfo(3)))) { DispBottom("You killed " + RID2Name(killedrid) + "."); if(AttachRID(killedrid)) DispBottom("You were killed by " + RID2Name(killerrid) + "."); } End(); IsWoE1Map: for(Set(.@i, GetArraySize(.WoE1Maps$) - 1); .@i >= 0; Set(.@i, .@i - 1)) if(.WoE1Maps$[.@i] == GetArg(0)) return 1; return 0; IsWoE2Map: for(Set(.@i, GetArraySize(.WoE2Maps$) - 1); .@i >= 0; Set(.@i, .@i - 1)) if(.WoE2Maps$[.@i] == GetArg(0)) return 1; return 0; OnInit: SetArray(.WoE1Maps$[0], "aldeg_cas01", "aldeg_cas02", "aldeg_cas03", "aldeg_cas04", "aldeg_cas05" , "gefg_cas01", "gefg_cas02", "gefg_cas03", "gefg_cas04", "gefg_cas05" , "payg_cas01", "payg_cas02", "payg_cas03", "payg_cas04", "payg_cas05" , "prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "prtg_cas05"); SetArray(.WoE2Maps$[0], "arug_cas01", "arug_cas02", "arug_cas03", "arug_cas04", "arug_cas05" , "schg_cas01", "schg_cas02", "schg_cas03", "schg_cas04", "schg_cas05"); End(); } @Emistry = is that one 100% Working also?
  2. oh i see...so the only option here is to disable the /b command? ) or force my GM to use the @broadcast command xD
  3. 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?
  4. 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; }
  5. 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; }
  6. 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; }
  7. i think they're already dead...
  8. then @skilloff ) will the players are able the ground effect even they turn the effects off? /effect
  9. 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.
  10. oh yeah...my bad xD how about @warp lhz_in03 18 99
  11. 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
  12. how to disable the warp portal here? @warp lhz_in03 26 161
  13. okay testing the script that kenpachi made
  14. nothing of the two is working for me? xD
  15. WTF?i thought this one is not this easy!so my code made in my mind was right! btw, thanks miland xD
  16. 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.
  17. Another candidate for a dead thread?
  18. what is the format and the size of a login screen for ragnarok? is it 16bit? 32bit? what size?
  19. Obviously bawal ang double posting...kahit saang forums...common sense lng nmn eh
×
×
  • Create New...