Jump to content

Luciar

Members
  • Posts

    177
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Luciar

  1. Luciar

    Reload Command

    This belongs in source requests, not a scriptable feature.
  2. Edit: nevermind, see above post "costume" is not a script command in rAthena
  3. Change your event label to something other than the NPC's name
  4. I have made a few changes, find my revisions here: [paste=27uxm2jof4qp] Changes: 1) The use of the file extension ".gat" is not needed in the map name for rAthena and was removed. 2) $@npcname_mpq$ is a temporary global variable. You only need to use a temporary scope variable (prefix .@) 3) The use of menu is not incorrect, but I updated to use select, you can view here: Select 4) Removed .@amount == 100 from the logic statement below. This way players will be able to offer any number of berries they may have. (specifically allows for a donation of exactly 100 berries): if ( .@amount == 100 || countitem(607) < .@amount ) 5) Updated delitem 607 ,100; to remove the actual number of berries, not always 100. It will remove the integer division of the amount by 100 (e.g. 350 / 100 = 3). The player will retain the remainder of that division (i.e. 50). I don't have a test server but my revisions should work correctly. Let me know if it doesn't!
  5. if ((.@map$ != prontera || change to if ((.@map$ != "prontera" ||
  6. Add the event labels OnTue2200: OnWed2200: disablenpc strnpcinfo(0); end; OnTue2230: OnWed2230: enablenpc strnpcinfo(0); end;
  7. if ((.@map$ != prontera || .@x < 202 - 8 || .@x < 202 + 8 || .@y < 167 - 8 || .@y < 167 + 8)) Your operators are all "less than." and you need quotes around the string "prontera" if ((.@map$ != "prontera" || .@x < 194 || .@x > 210 || .@y < 159 || .@y > 175)) Instead? (I have removed unnecessary calculations from your logic)
  8. Change: addtimer 1000, strnpcinfo(3)+"OnKillable"; // Will check after a second to addtimer 1000, strnpcinfo(3)+"::OnKillable"; // Will check after a second And else addtimercount 1000, strnpcinfo(3)+"OnKillable"; // Will check again after a second to else addtimercount 1000, strnpcinfo(3)+"::OnKillable"; // Will check again after a second
  9. Found a few mistakes, here's the updated version: [paste=cd1ad6jfqw4] The coordinates you set up are basically a box (x1 -> x2 by y1 -> y2) and monsters will spawn anywhere within that area. The reward NPC will only give a player a reward if he or she kills at least one monster.
  10. To clarify, shouldn't the NPC only reward those who participated in the invasion? Here is a initial version. I do not have a test server, but I believe it is error free. Let me know if it doesn't work! [paste=8qvazgg2e5b] You will need to configure the area spawn under the Config section. Also you will need to place the reward NPC to your liking. The invasion will automatically start at the times you provided. However, these times will be based on your server time. Make sure your server is set to GMT + 3 to have the event start at the correct time
  11. How would you like players to qualify for a reward? Simply kill a mob from the invasion? How many mobs of each kind do you want at once? Should they be condensed to a specific area of the towns or all over? Get back to me and I'll look into writing this.
  12. Check the wiki, there are extensive guides there! Simply follow the wiki guide to install a server on your local machine. Then follow the guide on starting and connecting to your server. You will need to set up your client to connect to the loopback IP (127.0.0.1). Then log in and play!
  13. I'm not sure what you're asking for. To add custom items read about it here.
  14. Going to need a lot more information. What do you want the quest to require? Will the player have to kill monsters, hunt items, etc? If so which and how many? Any other requirements (such as minimum level or job to complete)?
  15. You are missing the tables required for SQL logging. Be sure to execute sql-files/logs.sql on your server (same way you loaded main.sql). Check your map_athena.conf as well, ensure you configured the server IP there. Edit: Also this is not a support thread. See http://rathena.org/board/forum-2/announcement-1-this-section-is-not-a-support-section/
  16. This script isn't complete. It calls a function "rent_entrada" that is not defined in the paste you have posted above. From what you have posted, the script only informs the user of the rent at line 6. Please post the rest of the script, if you have it.
  17. You could use: atcommand "@fakename "+.@title$+" "+strcharinfo(0);
  18. You can use this to have the NPC speak in chat. Apply it to the script where you want it. OnWhisperGlobal is a label used to receive arguments via the PM system. It isn't for what you're trying to do.
  19. +1 This would be a great addition
  20. Did you make an account on your MySQL server with the username and password both equal to "ragnarok"? If not you need to do that, though I wouldn't use the default info unless this is strictly offline!
  21. if ( strcharinfo(3) != "guild_vs3" || "pvp_n_6-5" || "pvp_y_2-2" || "prtg_cas01" || "aldeg_cas03" || "payg_cas03" || "payg_cas03" || @pvpl_kills || @pvpl_deaths ) end; Change to: if ( strcharinfo(3) != "guild_vs3" || strcharinfo(3) != "pvp_n_6-5" || strcharinfo(3) != "pvp_y_2-2" || strcharinfo(3) != "prtg_cas01" || strcharinfo(3) != "aldeg_cas03" || strcharinfo(3) != "payg_cas03" || strcharinfo(3) != "payg_cas03" || @pvpl_kills || @pvpl_deaths ) end;
  22. Make sure you have set the SQL server password, not just the server intercommunication password. File: conf/inter_athena.conf // Global SQL settings // overriden by local settings when the hostname is defined there // (currently only the login-server reads/obeys these settings) sql.db_hostname: 127.0.0.1 sql.db_port: 3306 sql.db_username: ragnarok sql.db_password: ragnarok sql.db_database: ragnarok sql.codepage: // MySQL Character SQL server char_server_ip: 127.0.0.1 char_server_port: 3306 char_server_id: ragnarok char_server_pw: ragnarok char_server_db: ragnarok // MySQL Map SQL Server map_server_ip: 127.0.0.1 map_server_port: 3306 map_server_id: ragnarok map_server_pw: ragnarok map_server_db: ragnarok // MySQL Log SQL Database log_db_ip: 127.0.0.1 log_db_port: 3306 log_db_id: ragnarok log_db_pw: ragnarok log_db_db: ragnarok log_codepage: log_login_db: loginlog If this doesn't work, make sure you've configured your MySQL server to accept connections locally
  23. Luciar

    Jail

    This is not a script modification, but a source mod. Anyways, open src/common/mapindex.h Find #define MAP_JAIL "sec_pri" and change it to #define MAP_JAIL "que_moon" You'll also need to ensure that que_moon is configured with the correct mapflags to ensure players remain jailed on that map. (Look at the mapflags set on sec_pri and copy them over) Edit: Aww Anakid beat me xP
  24. The server will automatically warp an instance party member to the instanced version of the map
  25. What? Switches and menus are very much not interchangeable. Switches can be used to produce menus with switch(select()) but that isn't the purpose of the switch in my script. The problem isn't with switch, as described in my original post. The first group to create an instance does so successfully.
×
×
  • Create New...