-
Content Count
363 -
Joined
-
Days Won
46
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by meko
-
Quand tu vois "Closed connection" ça veut seulement dire qu'un joueur s'est déconnecté de ton serveur de connection (Login), ce qui est normal car le joueur passe de Login à Char puis à Map mais ne maintient pas la connection du server précédent, donc quand il est rendu à Char il se déconnecte de Login. Les scripts qui vérifient si ton serveur fonctionne (ON/OFF) se connectent momentannément à login/char/map pour vérifier si le serveur répond, puis se déconnectent aussitôt Pour ce qui est de CeresCP je ne l'utilise pas donc je ne peux pas t'aider, mais tu pourrais essayer FluxCP
-
Then you might want to read more about it: https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt#L755 https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt#L8020
-
OnTalkNearby: .@str$ = $@p0$; if (.@str$ ~= "your regex here") { // do something } else if (.@str$ ~= "another regex") { // do something else } // etc end; OnInit: .pid = 1; // regex pattern id defpattern(.pid, "^(.*)$", "OnTalkNearby"); activatepset(.pid);
-
defpattern is case insentive, but pcre_match (and the regex operator) is not. This means you could just use "^(.*)$" with defpattern and then filter a second time (the variable is $@p0$) with pcre_match (or ~=) when the event is invoked.
-
Hercules sends whatever you pass to cutin() unchanged so there's nothing wrong with the emulator version. However the packet doesn't have variable size so the cutin file name can have a maximum of 63 characters, after which it's being truncated.
-
rAthena tables are not compatible with Hercules table If what you meant is running a rAthena login server with a Hercules char + map servers that isn't compatible either If you want to migrate data you will have to export to a .sql file, change the structure to match Hercules's then import in the Herc db
- 9 replies
-
- conf
- inter-server
-
(and 2 more)
Tagged with:
-
see conf/global/sql_connection.conf and conf/common/inter-server.conf
- 9 replies
-
- conf
- inter-server
-
(and 2 more)
Tagged with:
-
In buyingstore.c the map flag has precedence over cell flags so if novending is true for the map it won't even bother checking the cells. A workaround would be to setcell the whole map with novending, and then using setcell to remove novending on the cells you want to allow
-
It does have checkcell() though so one could just do a while() loop that randomize the coordinates until a cell is cell_chkpass
-
how to migrate server from old vps to new vps
meko replied to IndieRO's question in General Server Support
To move your files in bulk, just use rsync. When it's done, install the dependencies and re-compile Hercules on the new server. To move your databases, you will need to first export to a .sql file and then import it on the new server. If you need help for this step I believe @Habilis would be best suited to help you. -
any config in conf/* can be put in conf/import Simply add the pincode block inside the char_configuration block Let's say this is your default conf: char_configuration: { // See conf/char/char-server.conf for details } You would add pincode at the end, before the final curly bracket char_configuration: { // See conf/char/char-server.conf for details pincode: { // A window is opened before you can select your character and you will have to enter a pincode by using only your mouse // NOTE: Requires client 2011-03-09aragexeRE or newer. // 0: disabled // 1: enabled enabled: false // Request Pincode only on login or on everytime char select is accessed? // 0: only on login (default) // 1: everytime the char select window is accessed request: 0 // How often does a user have to change his pincode? // Default: 0 // 0: never // X: every X minutes change_time: 0 // How often can a user enter the wrong password? // Default: 3 // Maximum allowed by clientside: 3 max_tries: 3 } }
-
function Array manipulation functions
meko commented on meko's file in Quest, Shops, Functions & Algorithms
-
function Array manipulation functions
meko commented on meko's file in Quest, Shops, Functions & Algorithms
-
it basically means your game client must be from 9 March 2011 or later version
-
It's not getting overwritten; reference_uid() is var, index. In this case "count" is the index, and it's being incremented every time (count++). To iterate through those variables in script, a simple for() loop will do the trick just fine. See also:
-
function Date and Time functions
meko posted a topic in Quest, Shops, Functions & Algorithms Releases
View File Date and Time functions This script provides functions to easily calculate date and time. More functions might be added in the future. now() a shorthand function to get the current time > returns the number of seconds elapsed since the Unix epoch now() // => 1497119219 (example, increments every second) time_from_ms(<delta>) calculates a Unix timestamp relative to the current time > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> ms time_from_ms(0) // => 1497119219 (example, increments every second) time_from_ms(+1000) // => 1497119220 time_from_ms(-1000) // => 1497119218 time_from_seconds(<delta>) calculates a Unix timestamp relative to the current time > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> seconds time_from_seconds(0) // => 1497119219 (example, increments every second) time_from_seconds(+1) // => 1497119220 time_from_seconds(-1) // => 1497119218 time_from_minutes(<delta>) calculates a Unix timestamp relative to the current time > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> minutes time_from_minutes(0) // => 1497119219 (example, increments every second) time_from_minutes(+1) // => 1497119279 time_from_minutes(-1) // => 1497119159 time_from_hours(<delta>) calculates a Unix timestamp relative to the current time > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> hours time_from_hours(0) // => 1497119219 (example, increments every second) time_from_hours(+1) // => 1497122819 time_from_hours(-1) // => 1497115619 time_from_days(<delta>) calculates a Unix timestamp relative to the current time > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> days time_from_days(0) // => 1497119219 (example, increments every second) time_from_days(+1) // => 1497205619 time_from_days(-1) // => 1497032819 FuzzyTime(<unix timestamp>) converts a Unix timestamp to a human-readable format > returns human-friendly relative time FuzzyTime(0) // => 47 years, 172 days, 18 hours, 52 minutes, and 28 seconds ago FuzzyTime(time_from_hours(+28)) // => in 1 day and 4 hours -------------------------------------------------------------------------------------- This script was made by me, for The Mana World + Evol. License: public domain (CC0) Submitter meko Submitted 06/10/17 Category Quest, Shops, Functions & Algorithms -
Version v1
60 downloads
This script provides functions to easily calculate date and time. More functions might be added in the future. now() a shorthand function to get the current time > returns the number of seconds elapsed since the Unix epoch now() // => 1497119219 (example, increments every second) time_from_ms(<delta>) calculates a Unix timestamp relative to the current time > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> ms time_from_ms(0) // => 1497119219 (example, increments every second) time_from_ms(+1000) // => 1497119220 time_from_ms(-1000) // => 1497119218 time_from_seconds(<delta>) calculates a Unix timestamp relative to the current time > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> seconds time_from_seconds(0) // => 1497119219 (example, increments every second) time_from_seconds(+1) // => 1497119220 time_from_seconds(-1) // => 1497119218 time_from_minutes(<delta>) calculates a Unix timestamp relative to the current time > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> minutes time_from_minutes(0) // => 1497119219 (example, increments every second) time_from_minutes(+1) // => 1497119279 time_from_minutes(-1) // => 1497119159 time_from_hours(<delta>) calculates a Unix timestamp relative to the current time > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> hours time_from_hours(0) // => 1497119219 (example, increments every second) time_from_hours(+1) // => 1497122819 time_from_hours(-1) // => 1497115619 time_from_days(<delta>) calculates a Unix timestamp relative to the current time > returns the number of seconds elapsed since the Unix epoch, plus or minus <delta> days time_from_days(0) // => 1497119219 (example, increments every second) time_from_days(+1) // => 1497205619 time_from_days(-1) // => 1497032819 FuzzyTime(<unix timestamp>) converts a Unix timestamp to a human-readable format > returns human-friendly relative time FuzzyTime(0) // => 47 years, 172 days, 18 hours, 52 minutes, and 28 seconds ago FuzzyTime(time_from_hours(+28)) // => in 1 day and 4 hours -------------------------------------------------------------------------------------- This script was made by me, for The Mana World + Evol. License: public domain (CC0) -
this error stems from you putting a space between "monster" and the parentheses; to get a return value you need parentheses right after the command.. your .@mobGID var never gets assigned because of the way you call the monster command (statement vs function)
-
Update: June 9 2017 New script commands: add_group_command isstr getarrayindex Modified script commands: readparam specialeffect can_use_command Deprecated script commands: specialeffect2 superseded by specialeffect misceffect superseded by specialeffect pow superseded by the exponentiation operator
-
function Array manipulation functions
meko commented on meko's file in Quest, Shops, Functions & Algorithms
-
Try making a template npc and then cloning it with a duplicate() header and in OnInit use setunitdata to change its appearance
-
Script that runs a custom monster for testing.
meko replied to Like it~*'s question in Script Requests
Sorry, I'm not able to help further here. Please fill a bug report explaining your problem (ie frozen mobs can still use abilities): https://github.com/HerculesWS/Hercules/issues/new -
General Posting Guidelines Posts may not contain SPAM. Spam is one word posts, posts with no meaning to the topic, or double/triple posts without reason. Posts in the support sections may be bumped with more information no less than 24 hours after the last post; if you have new information within less than 24h, edit your previous post. http://herc.ws/board/guidelines/ Sorry, I'm not able to help further as the engine does not support what you are trying to accomplish Please fill an issue here if you would like a new feature to be added (ie trading events): https://github.com/HerculesWS/Hercules/issues/new
-
in Mode add Assist: true More details here: https://github.com/HerculesWS/Hercules/blob/master/doc/mob_db_mode_list.txt