-
Posts
177 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Luciar
-
This belongs in source requests, not a scriptable feature.
-
Edit: nevermind, see above post "costume" is not a script command in rAthena
-
PK Area, script not functioning as it should
Luciar replied to HristDead's question in Scripting Support
Change your event label to something other than the NPC's name -
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!
-
PK Area, script not functioning as it should
Luciar replied to HristDead's question in Scripting Support
if ((.@map$ != prontera || change to if ((.@map$ != "prontera" || -
Add the event labels OnTue2200: OnWed2200: disablenpc strnpcinfo(0); end; OnTue2230: OnWed2230: enablenpc strnpcinfo(0); end;
-
PK Area, script not functioning as it should
Luciar replied to HristDead's question in Scripting Support
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) -
PK Area, script not functioning as it should
Luciar replied to HristDead's question in Scripting Support
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 -
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.
-
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
-
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.
-
how to make ragnarok offline server?(newbie)
Luciar replied to lelouchandlight's question in Client-side Support
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! -
I'm not sure what you're asking for. To add custom items read about it here.
-
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)?
-
[Resolvido]helpMy server is giving error that table does anyone know to resolve?
Luciar replied to GameOver's question in Database Support
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/ -
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.
-
You could use: atcommand "@fakename "+.@title$+" "+strcharinfo(0);
-
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.
-
+1 This would be a great addition
-
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!
-
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;
-
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
-
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
-
The server will automatically warp an instance party member to the instanced version of the map
-
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.