Jump to content

Euphy

Members
  • Posts

    2997
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Euphy

  1. 1. Player puts on headgear for weight bonus. 2. Player fills inventory to new max weight. 3. Player takes off headgear, and weight is now over the previous limit.
  2. Do you have the noreturn mapflag set? trunk/conf/mapflag/noreturn.txt //= Also restricts "warpparty" and "warpguild" script commands.
  3. I suggested this, but it got abandoned. D: http://rathena.org/board/topic/65277-script-commands-for-offline-characters/
  4. Euphy

    3rd quest NPC

    The downloads work, you just have to log in. Though... why do you need them? We have the official scripts completed. o:
  5. Euphy

    @who and groups

    All atcommand-related code is located in trunk/src/map/atcommand.c.
  6. The custom battlegrounds are old scripts created before we received the official scripts. They work, but they're not as thorough (actually, I'm not too sure why we've kept them XD).
  7. Be aware that you'll be able to go past 100% weight capacity when removing the hat, though.
  8. @Capuche: If you check the condition right before, it already checks if (Class > 21), so you should just delete the entire sub-condition. xP set .@i, select(" ~ ^0055FFRebirth^000000:: ~ ^777777Cancel^000000"); // You can also remove some code below this, but not really needed.
  9. @Lugia: I'll update the script when I have time, it's getting really old... set .ThirdClass,1; // Enable third classes? (1: yes / 0: no)
  10. Tabs aren't processed by the script engine so you can add/remove them wherever (except within words/numbers, of course). You only need them in the script header. prontera,150,180,4 script Test 100,{
  11. Euphy

    broadcaster npc

    /facepalm My apologies, I totally misread that. :x
  12. trunk/doc/script_commands.txt // If gettime(4) is not 0 --> if day is not Sunday if( gettime(4) != 0 ) end;
  13. You must compile with PCRE enabled. It's enabled by default in Windows, but Linux requires further instruction: PCRE
  14. Euphy

    broadcaster npc

    @Capuche: He wanted an NPC cooldown, not player delay timer. Essentially, take any existing broadcast script and after the 'announce' line, add: set .AnnounceDelay, gettimetick(2) + 120; Then, at the beginning, write: if (.AnnounceDelay > gettimetick(2)) { mes "You must wait 2 minutes between announcements."; close; }
  15. // Structure of Database: // SkillID,Flag SkillID is self-explanatory, and the "flag" is what you add into the mapflag for your map: <map_name> mapflag restricted <flag>
  16. Euphy

    Mapflag NPC

    There's already @mapflag (set/remove mapflags) and @mapinfo (display map data, including mapflags). o:
  17. trunk/db/re/skill_nocast_db.txt You'll have to add them all manually, I'm afraid. I'd suggest copying them together out of skill_db and running a script to format them for skill_nocast_db (doing it by hand will probably take you half an hour).
  18. Always check trunk/sql-files/upgrades/ if you receive SQL errors from updating. You're probably missing: trunk/sql-files/upgrades/upgrade_svn17080.sql trunk/sql-files/upgrades/upgrade_svn17086.sql
  19. prontera,150,150,0 script #sample 100,{ // Spawn 20 Porings if none are on the map. if (mobcount("prontera","#sample::OnMyMobDead") == 0) monster "prontera",150,150,"Poring",1002,20,"#sample::OnMyMobDead"; end; OnMyMobDead: // Label is needed to be able to count the monsters. end; }
  20. It's impractical to force users to type in 127 reward IDs. I suggest something more like this: // Daily Prize items (max 64 days): // <itemID>,<amount>, // Day 1 // <itemID>,<amount>, // Day 2 // ...; // * If players login longer than the last set // day, they will keep getting the last prize. setarray .Rewards[0], 512,1, // Day 1 513,2, // Day 2 514,3; // Day 3 I really don't understand .Reminder[1] at all. I think you should remove it. // What does this even do? if( ( LOGINCOUNT + #LOGINCOUNT + $LOGINCOUNT )%.Reminder[1] == 0 ... .Wipe -- This is really not a good feature how it's currently written. Perhaps allow whispering "wipe" execute an SQL query to delete the values, or just let users do it manually. OnWhisperGlobal: if (getgmlevel() >= 99 && @whispervar0$ == "wipe") { query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'LOGINCOUNT'"); query_sql("DELETE FROM `global_reg_value` WHERE `str` = '#LOGINCOUNT'"); query_sql("DELETE FROM `mapreg` WHERE `str` = '$LOGINCOUNT'"); dispbottom "Cleared all login count data."; } end; Your config section is a little confusing, could be formatted better, and needs spell check. Example of an easier-to-read format: // ----------------------------------------------------------- // Login Count & Welcome Message // ----------------------------------------------------------- // Login types to track. // 1: Character | 2: Account | 4: Server // (a bit value, e.g. 5 = character + server) set .LogCount,0; // Number of logins to display welcome message. set .Reminder,3; // Server name to display. set .Servername$,"Server"; // Login message set .Message$,"Before playing, make sure you've read the rules, located in our forum at ^0000FF~TBA~^000000"; Tab properly. In particular, 'else' should always be in-line with 'if'. You don't need to include empty strings in script lines. setd ""+.PointType$+"" --> setd .PointType$
  21. He's requesting modifications of the mail window, though, which (as far as I know) is hardcoded into the clients and/or data files.
  22. You need to separate the condition from the string. ..."Lord Knight:"+((Sex)?"Gypsy":"Clown")+":Paladin..."
  23. Gandalf, for future reference, rudeness significantly hurts your chances of getting a prompt response. Basic_Scripting#Conditions.2C_Variables.2C_and_Set
  24. ^ http://www.eathena.ws/board/index.php?showtopic=275490 I don't think it's possible to create a custom UI for it, though.
×
×
  • Create New...