-
Content Count
363 -
Joined
-
Days Won
46
Posts posted by meko
-
-
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
-
-
-
10 hours ago, Legend said:@Tokeiburu Thanks for sharing that.
Herc. doesn't have getfreecell command https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txtIt does have checkcell() though so one could just do a while() loop that randomize the coordinates until a cell is cell_chkpass
-
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 blockLet'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 } }
-
it basically means your game client must be from 9 March 2011 or later version
-
-
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 epochnow() // => 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> mstime_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> secondstime_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> minutestime_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> hourstime_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> daystime_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 timeFuzzyTime(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
-
Submitted06/10/17
-
Category
-
-
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:
Modified script commands:
Deprecated script commands:
-
specialeffect2
- superseded by specialeffect
-
misceffect
- superseded by specialeffect
-
pow
- superseded by the exponentiation operator
-
specialeffect2
-
Try making a template npc and then cloning it with a duplicate() header and in OnInit use setunitdata to change its appearance
-
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 -
25 minutes ago, kairu said:Bump
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
-
Just now, Myriad said:does it matter? maybe they want to add a counter for each time player trades. or bring a mes() window.
It's just that there's likely another way to accomplish what they try to do without modifying the source or making a plugin. But for that we need to know what the original intent is.
-
What exactly would that function be needed for?
-
That's very cool! Does it mean now we can have shared storage, ie a chest on a map in which anyone can put or retrieve items?
-
26 minutes ago, Myriad said:Just found out I need to hold shift
to go to next line linewithout skipping.
wow that's weird.. thanks for the tip
-
I still don't understand why you have to do it from plugin... You do know you can iterate over an array from scripts, right?
.@size = getarraysize(mob2kill[0]); for (.@i = 0; .@i < .@size; ++.@i) { specialeffect(EF_HIT1, SELF, mob2kill[.@i], playerattached()); }
If you insist on using a plugin, look at the source of copyarray()
-
Besides the avatar issue, here's what I noticed so far:
-
Newlines in code snippets for downloads seem broken. FIXED Example: -
^ Clicking the download button yields "file not found"FIXED -
^ The actual files of the previous versions of the file are goneFIXED-
for some reason version 1 and version 2 seem fine, but version 3 and 4 are not found (I re-uploaded version 4 though)FIXED
-
-
It is no longer possible to remove previous versionsFIXED -
The screenshots for ALL downloads are goneFIXED -
You can no longer see who gave +1 reputation on postsFIXED -
The reputation page is gone from profiles altogetherFIXED -
The reputation page on profiles shows no posts at allFIXED -
When you edit posts, even if you don't check "Show that the message has been edited" it still shows as editedNOT A BUG -
When clicking the Documentation tab in the page header it says "Wiki (Achieved)"FIXED -
On profile pages the bar that says content count, joined, last visited partially covers the member titleFIXED -
The ability to set a profile background is gone... but I guess this has been superseded by the cover featureNOT A BUG -
The nested bulleted lists are broken for Announcements; they show the [*] bbcode as plaintextFIXED -
Embedded downloads (ie the one embedded in this very post) show "0 comments", even though there's no way to comment on download pagesFIXED -
The navigation links for IRC and moderation logs are goneWON'T FIX -
There is no margin in between the green star icon of featured topics and the title of said topics in the sidebar widget. We could give it a margin-right of ~4px but since the widget already says "featured" it's redundant, so I feel this icon should just be removed or hidden from the widget.FIXED
-
-
List of deprecated script commands and Hercules features
(2017)Future deprecations:
⚠️ Please avoid using those commands in new scripts
- menu()
-
Trying to set an effect on mobs as in using specialeffect() on them? well good news, because this commands now works on any kind of unit (including mobs), so you don't need to do this from plugins
See http://herc.ws/board/topic/14848-deprecation-specialeffect2-misceffect/
defpattern: regexp, my old ennemy
in Script Support
Posted
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.