Jump to content

Brian

Members
  • Posts

    2223
  • Joined

  • Last visited

  • Days Won

    24

Everything posted by Brian

  1. Did you enabled 'Database' in two places? (LoginServer AND CharMapServers) no i dont done that.. could you tell me what exactly i have to change ? you speak about server.conf's ? The FluxCP file ../config/servers.php (lines 51 and 65).
  2. #2: I believe it's organized like this because the actual warp npc is located in mjolnir, thus it goes in the mjolnir file. Not 100% easy, because say you wanted to remove a Yuno map completely (remove from /db/map_index.txt and /conf/maps_athena.conf). Yes you could easily disable the yuno warps file (to disable all warps TO yuno), but all the warps on the yuno map that warp FROM yuno to somewhere else ... you would have to edit the file of each destination! #1: one Pro of the current organization (duplicates in the city file, not in the original file) is when you want to edit several NPCs in 1 city. Say you want to move the Alberta npcs to make room for a save point or your own npcs. You just open the Alberta city file. However, one Con of the current organization is when you disable the source NPC, all duplicates break. This could be solved by making the source npc a floating one (not on a map) like was done for the custom Healer and Warper. But this raises the question of efficiency: Should an original NPC be made a floating npc if it only has 1 duplicate? 2? 3? What would be the cutoff? (The Healer and Warper have 34 and 48 duplicates, respectively.)
  3. I think more servers use @main than the Integrated *Athena IRC System, that's why ultramage picked the IRC System for removal first.
  4. It's not a custom hook, it's a feature of IPB. Just go to ModeratorCP > Announcements.
  5. Did you enabled 'Database' in two places? (LoginServer AND CharMapServers)
  6. Add a custom hompercentheal script command. http://trac.assembla.com/raijero/changeset/1142/
  7. I believe the limit for permanent string variables was 255 ? (Also, temporary string variables could be longer than 255 because they are not limited by the column length in SQL.) It sounds like you're hitting the 128 limit because you are imploding an array, which is limited to 128 elements.
  8. Hi everyone, The server rAthena is hosted on will be down for maintenance around 5:00 am EST. The forums/wiki will be offline for approximately 1 hour. IRC will still be available during this time. http://go.rathena.org/irc Thank you for your patience. Server maintenance is complete. Forums: ONLINE BuildBot: ONLINE
  9. Here you go: http://rathena.kpaste.net/3e?raw mes "Current Online GM: " + .@online_gm_count; Move that line to where you want it to display, but it must come after the // build menu of GM names block.
  10. Here's one VIP Rental script: vip_rental.txt It can be used in an item script or npc script: { callfunc "F_VIPstart", <ticks>; } ticks = how long their VIP will last, in seconds - 1 day = 86400 - 7 days = 604800 - 14 days = 1209600 etc. Examples: 8036,Ticket_VIP_15,Ticket Vip (15 days),2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_VIPstart", 1296000; },{},{} 8037,Ticket_VIP_30,Ticket Vip (30 days),2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_VIPstart", 2592000; },{},{}
  11. Here's one way: - script auto_healbuff -1,{ OnPCLoadMapEvent: if (getmapflag(strcharinfo(3), mf_town)) { sc_start SC_BLESSING,240000,10; specialeffect2 EF_BLESSING; sc_start SC_INCREASEAGI,240000,10; specialeffect2 EF_INCAGILITY; // add more buffs here percentheal 100,100; } end; } alberta mapflag loadevent aldebaran mapflag loadevent amatsu mapflag loadevent ayothaya mapflag loadevent brasilis mapflag loadevent comodo mapflag loadevent dewata mapflag loadevent dicastes01 mapflag loadevent eclage mapflag loadevent einbech mapflag loadevent einbroch mapflag loadevent geffen mapflag loadevent gonryun mapflag loadevent hugel mapflag loadevent izlude mapflag loadevent lighthalzen mapflag loadevent louyang mapflag loadevent malangdo mapflag loadevent malaya mapflag loadevent moc_ruins mapflag loadevent mora mapflag loadevent payon mapflag loadevent pay_arche mapflag loadevent prontera mapflag loadevent rachel mapflag loadevent umbala mapflag loadevent veins mapflag loadevent yuno mapflag loadevent To add new towns, add the 'loadevent' and 'town' mapflags to that map.
  12. Correct, since this was requested on the rAthena forums, I wrote it for rAthena To use it with eAthena or 3CeAM, just change all group_id to level
  13. OnInit will trigger once when the script loads. To continuously update the getmapusers count, you can either: 1. have the NPC that warps them to PVP trigger 'waitingroom' 2. use OnPCLoadMapEvent on the PVP map to trigger 3. use a timer and have the waitingroom update every X seconds
  14. Your script header had spaces instead of TABs. http://kpaste.net/3a62?raw
  15. Because it's missing a closing curly brace } before the last line. example: heal.txt
  16. Have you considered making the edge cells around the platform walkable (and at a lower elevation so you can "fall" off), then an optional OnTouch script could make players die if they fall off the edge!
  17. If Ctrl+Alt+Backspace closes the X Window System and doesn't restart it, type this at the command prompt: startx You could also reboot the server, and that will restart the X Window System. reboot or shutdown -r now
  18. This is how I used to do it: http://www.eathena.w...ost&pid=1165563 Brainstorm also describes another method in that topic.
  19. But once this NPC reads the guild info from SQL (when the server starts), how will the NPC be updated when guild info changes? Maybe you could just reduce autosave_time so guild info is saved to SQL more frequently (it's already set to 60 seconds). trunk/conf/char_athena.conf // How often should the server save all files? (In seconds) // Note: Applies to all data files on TXT servers. // On SQL servers, it applies to guilds (character save interval is defined on the map config) autosave_time: 60
  20. Here is another way: http://rathena.kpaste.net/1d0?raw prontera,155,188,0 script GM_Status 910,{ if (getgmlevel() >= 99) { if (select("View GM Status:Reload GM list") == 2) { mes "Close this window to reload the GM list."; close2; goto OnInit; } } mes "[GM Checker]"; if (getarraysize(.char_id) == 1) { mes "There is 1 GM."; } else { mes "There are " + getarraysize(.char_id) + " GMs."; } // build menu of GM names for (set .@i,0; .@i < getarraysize(.char_id); set .@i,.@i+1) { if (isloggedin(.account_id[.@i], .char_id[.@i])) { getmapxy .@map$,.@x,.@y,0, .name$[.@i]; set .@menu$, .@menu$ + "^008000"+.name$[.@i]+"^000000 ("+.@map$+"):"; } else { set .@menu$, .@menu$ + "^FF0000"+.name$[.@i]+"^000000:"; } } if (.@menu$ != "") { mes "Select a GM to view more info."; set .@num, select(.@menu$) -1; mes "[GM Checker]"; mes "GM NAME: " + .name$[.@num]; mes "STATUS: " + (isloggedin(.account_id[.@num], .char_id[.@num]) ? "^008000Online" : "^FF0000Offline") + "^000000"; if (checkvending(.name$[.@num]) == 1) mes "(vending)"; else if (checkvending(.name$[.@num]) == 2) mes "(vending with @autotrade)"; mes "Position: " + callsub(S_GMgroup2name,.group_id[.@num]); getmapxy .@map$,.@x,.@y,0, .name$[.@num]; mes "Map: " + .@map$; } close; OnInit: query_sql "SELECT `char`.account_id, `char`.char_id, `char`.`name`, login.group_id " + "FROM login RIGHT JOIN `char` ON login.account_id=`char`.account_id " + "WHERE `group_id` >= 1", .account_id, .char_id, .name$, .group_id; end; S_GMgroup2name: set .@group_id, getarg(0,0); if (.@group_id == 0) set .@title$, ""; else if (.@group_id <= 40) set .@title$, "Police GM"; else if (.@group_id <= 60) set .@title$, "Event GM"; else if (.@group_id <= 90) set .@title$, "Co-owner"; else if (.@group_id <= 99) set .@title$, "Admin"; return .@title$; } * AFK/active check is not implemented (waiting for a getidletime script command)
  21. Is this what you're looking for? eAthena IRC Module, from r13014 I used it over 1 year ago and it worked okay, but sometimes the IRC Bot would get disconnected and the map-server would hang. These changesets show some other things we did with the IRC Module: http://trac.assembla.com/yikes/search?q=IRC
  22. One of our server's hard drives is having issues. I removed it from the RAID to eliminate the bottleneck (forums should be back up to speed now). We will need to schedule downtime for our host to replace the hard drive.
  23. Last night the forums were loading slowly. I turned on IPB's Performance Mode until we figure out the problem.
  24. What guild info do you want to read from SQL? (guilds? guild castles? guild members?) What do you want to do with this information? (read it into a script? and then what?)
×
×
  • Create New...