Jump to content

Yuka

Members
  • Posts

    333
  • Joined

  • Last visited

Everything posted by Yuka

  1. maybe this Oh, I haven't found this in the docu, will try right now. Sounds as it was what I am looking for.
  2. Hm.. I am trying to change people's party with changing the "party_id" at the "char" table in my database. But it doesn't refresh, even after relog. x_x Isn't there a way to change people's party?
  3. I get this error: *************** *** 17323,17328 **** return 0; } // declarations that were supposed to be exported from npc_chat.c #ifdef PCRE_SUPPORT BUILDIN_FUNC(defpattern); --- 17323,17402 ---- return 0; } + // createbgid <respawn map>, <respawn x>, <respawn y>, <On Quit event>, <On Death event>; + BUILDIN_FUNC(createbgid) { + unsigned int bg_id; + if ( ( bg_id = bg_create( mapindex_name2id( script_getstr(st,2) ), script_getnum(st,3), script_getnum(st,4), script_getstr(st,5), script_getstr(st,6) ) ) > 0 ) + script_pushint( st, bg_id ); + else + script_pushint( st, 0 ); + return 0; + } + + // setbgid <battleground ID> {, <player name> }; + // setbgid <battleground ID> {, <player account ID> }; + BUILDIN_FUNC(setbgid) { + unsigned int bg_id = script_getnum(st,2); + struct battleground_data *bg = bg_team_search( bg_id ); + struct map_session_data *sd; + if ( script_hasdata( st, 3 ) ) { + if ( data_isstring( script_getdata(st,3) ) ) + sd = map_nick2sd( script_getstr(st,3) ); + else + sd = map_id2sd( script_getnum(st,3) ); + } else + sd = script_rid2sd(st); + if ( !sd ) { + script_pushint( st, -3 ); // player no attach + return 0; + } + if ( !bg && bg_id > 0 ) { + script_pushint( st, -1 ); // battleground team haven't created + return 0; + } + if ( bg_id && sd->bg_id == bg_id ) { + script_pushint( st, -5 ); // the player has already join this battleground team + return 0; + } + if ( sd->bg_id ) + bg_team_leave( sd, 0 ); + if ( bg_id == 0 ) { + script_pushint( st, 0 ); + return 0; + } + if ( !bg_team_join( bg_id, sd ) ) + script_pushint( st, -2 ); // cannot join anymore, because has reached MAX_BG_MEMBERS + else + script_pushint( st, bg_id ); + return 0; + } + + // getbgusers <battleground ID>; + BUILDIN_FUNC(getbgusers) { + struct battleground_data *bg = bg_team_search( script_getnum(st,2) ); + int i; + if ( !bg ) { + script_pushint( st, -1 ); + return 0; + } + for ( i = 0; bg->members[i].sd; i++ ) + mapreg_setreg( reference_uid( add_str("$@arenamembers"), i ), bg->members[i].sd->bl.id ); + mapreg_setreg( add_str("$@arenamembersnum"), i ); + script_pushint( st, i ); + return 0; + } + + // bg_kickall <battleground ID>; + BUILDIN_FUNC(bg_kickall) { + struct battleground_data *bg = bg_team_search( script_getnum(st,2) ); + int i; + if ( bg ) { + for ( i = 0; bg->members[i].sd; i++ ) + bg_team_leave( bg->members[i].sd , 0 ); + } + return 0; + } + // declarations that were supposed to be exported from npc_chat.c #ifdef PCRE_SUPPORT BUILDIN_FUNC(defpattern); *************** *** 17780,17784 **** BUILDIN_DEF(checkquest, "i?"), BUILDIN_DEF(changequest, "ii"), BUILDIN_DEF(showevent, "ii"), {NULL,NULL,NULL}, }; --- 17854,17863 ---- BUILDIN_DEF(checkquest, "i?"), BUILDIN_DEF(changequest, "ii"), BUILDIN_DEF(showevent, "ii"), + + BUILDIN_DEF(createbgid,"siiss"), + BUILDIN_DEF(setbgid,"i?"), + BUILDIN_DEF(getbgusers,"i"), + BUILDIN_DEF(bg_kickall,"i"), {NULL,NULL,NULL}, };
  4. cd /root/rAthena/ yum install patch patch -p1 < battleground_17102.diff So this is what I need to do, right? Do I need to shut the server down for this? Thanks!
  5. Hello, I'd like to patch this diff: http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/ on my root which runs on Centos 5.9 32bit. Can someone help me out? I already tried this: http://rathena.org/wiki/Diff It tells me that the command "patch" was not found. Thanks.
  6. Hello, I am using @addrid in a script but @detachrid won't detach it from all players. So when I execute some other code after this: addrid(1); blabla detachrid; It will be executed as many times as the "blabla" has been executed. But I only want it to execute once..
  7. Sorry, I have never used a .diff to patch my rAthena. I put it on my rAthena directory and did this: cd to where the patch is located patch -p0 < battleground_17102.diff as written here: http://rathena.org/wiki/Diff But it says: -bash: patch: command not found I also tried: cd to where the patch is located patch -p0 < root/rAthena/battleground_17102.diff But it says: -bash: root/rAthena/battleground_17102.diff: No such file or directory But when I use "dir" it shows me the battleground_17102.diff file. :/ My root is running on Centos 5.9 32bit.
  8. It uses the labels OnAgitStart and OnAgitEnd: http://rathena.org/wiki/Agitstart So there shouldn't be a problem if you use any other WoE scripts.
  9. Well, the problem is the "YOUR VARIABLE" is actually two variables. I want to order the data by PvPKDA, but I only want to pick char_ids that have more than 49 kills. So my HAVING needs to look at the variable PvPKills of player X and my ORDER BY CAST needs to look at the variable PvPKDA of player X.
  10. Hello, I am running 20101228 client for my server at the moment, but I am not sure if I shouldn't rather use a newer one. The server is pre-renewal without third jobs. So are there any recommendations for a client for a pre-renewal, no third jobs server? Thanks.
  11. Still, it's not doing much good to run this server-wide every 5 seconds, especially when 99% of people won't be running a timer at any given time. I wouldn't recommend using this as-is for highly-populated servers. This small if statement soaks up so much traffic?
  12. Oh, you're a player of MastelaRo? I know that some of you are used to the violin switch. I am pretty sure I won't implement this easy song switch, but I am interested in how it works. The violin dagger switch is actually how it is supposed to be. The violin switch was a bug fixed my rAthena lately.
  13. Hello, how can I team people up as party or BG group by NPC script? Thanks a lot!
  14. Hi, is it possible to change from Bragih to Apple of Idun for example by pressing the hotkey for Apple of Idun? So if you have F1 - Bragih, F2 - Apple of Idun, F3 - Sunset, you can just press F1 - F2 - F3 and play all songs, ending up with Sunset active? This is a mix of a request and a support, if you tell me where to edit what, I can do it myself. Thanks a lot!
  15. File Name: Advanced WoE Communication + Ping File Submitter: Yuka File Submitted: 09 Apr 2014 File Category: PvP, GvG, WoE, Battleground Content Author: Yuka Yuka's Advanced WoE Communication + Ping I. @p II. Pinging guild members III. Advanced WoE Communication I. @p The script bases on @p. Without attaching something, it will give you a help information about the command like this: For @p <charname>:When used on a player that is offline, it tells you that he/ she is offline. When used on a player that is not on your guild, it tells you that he/ she is not in your guild. When used on a player that is in your guild, but not on your map, it will tell you his current map. For @p <take>|<def>|<empr>|<preempr>|<entrace>: When using while not being the guild leader, it tells you that you are not the guild leader. II. Pinging guild members As player you might know the situation that you are in a WoE castle and want to know where someone of your guild is. You can use @p <charname> and when he/ she is on your map, it will highlight his position with a red X. Otherwise it will tell you that he/ she is offline or on map X. III. Advanced WoE Communication As guild leader you can use @p <take>|<def>|<empr>|<preempr>|<entrace> while on a WoE map to highlight a position on the minimap for all your guild members as well as giving them a personal announce saying: Click here to download this file
  16. File Name: WoE Countdown File Submitter: Yuka File Submitted: 09 Apr 2014 File Category: PvP, GvG, WoE, Battleground Content Author: Yuka Yuka's WoE Countdown As a player I've always been tired by spamming @time to check the remaining WoE time. This script announces the remaining WoE time: Every time you enter a castle by normal or flag warp Every 3 minutes. (configurable) Every 20 seconds within the last 2 minutes. (configurable) Your players can use @woetimer to turn the announce on/ off. Note: This only works for WoEs that last less than an hour and end at Minute 00. So 4-5 for example. Click here to download this file
  17. File Name: Timer File Submitter: Yuka File Submitted: 09 Apr 2014 File Category: Utilities Content Author: Yuka Yuka's Timer Your players can use @timer MM:SS to start a timer. It will inform you about the timer in your chatbox. After the timer has elapsed your players will receive a personal announce. This is good for timing spawns or a lot of other stuff, like your pizza in the oven for example. For not taking too much traffic, the timer has an accuracy of 5 seconds. So when you use @timer :1, your timer will elapse after 1-5 seconds. Click here to download this file
  18. Okay, I've got it. I had to do everything from 1. to 3. Instead of 4. I had to edit src/map/battle.c { "min_hair_style", &battle_config.min_hair_style, 0, 0, INT_MAX, }, { "max_hair_style", &battle_config.max_hair_style, 23, 0, INT_MAX, }, { "min_hair_color", &battle_config.min_hair_color, 0, 0, INT_MAX, }, { "max_hair_color", &battle_config.max_hair_color, 262, 0, INT_MAX, }, { "min_cloth_color", &battle_config.min_cloth_color, 0, 0, INT_MAX, }, { "max_cloth_color", &battle_config.max_cloth_color, 552, 0, INT_MAX, },
  19. It only works for prtg_cas03, to add multiple castles do it like this: setarray .castles$[0],"prtg_cas01","prtg_cas03";
  20. Oh, I see, thank you! What possibilities do I have for payout? (My balance isn't over 4$ at the moment, so it just tells me that I could make a payout if I had more than 4$, but not the methods I could use.)
  21. Hello, I have uploaded a paid file. Now I couldn't find anything about how I will receive the money if someone purchases my file. Do I have to set in somewhere in my account or did I miss something? Thanks a lot!
×
×
  • Create New...