Jump to content

meko

Core Developers
  • Content Count

    363
  • Joined

  • Days Won

    46

Everything posted by meko

  1. 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.
  2. What exactly would that function be needed for?
  3. 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?
  4. wow that's weird.. thanks for the tip
  5. 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()
  6. 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 gone FIXED 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 versions FIXED The screenshots for ALL downloads are gone FIXED You can no longer see who gave +1 reputation on posts FIXED The reputation page is gone from profiles altogether FIXED The reputation page on profiles shows no posts at all FIXED When you edit posts, even if you don't check "Show that the message has been edited" it still shows as edited NOT 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 title FIXED The ability to set a profile background is gone... but I guess this has been superseded by the cover feature NOT A BUG The nested bulleted lists are broken for Announcements; they show the [*] bbcode as plaintext FIXED Embedded downloads (ie the one embedded in this very post) show "0 comments", even though there's no way to comment on download pages FIXED The navigation links for IRC and moderation logs are gone WON'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
  7. List of deprecated script commands and Hercules features (2017) misceffect() specialeffect2() pow() useatcmd() v2018.06.03 pcblockmove() v2019.03.10 UDT_MAPIDXY and UDT_WALKTOXY constant v2019.04.07 petstat() v2019.05.05 debugmes() v2019.11.17 getguildname() getguildmaster() getguildmasterid() Future deprecations: ⚠️ Please avoid using those commands in new scripts menu()
  8. 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/
  9. This whole script is very ugly, but if you want a quick, dirty patch just change line 125 from .@point = .gold_amount[0]; to .@point = rand(1, .gold_amount[0]); And then on line 45 change the value of .gold_amount to the max value you want (ie 5)
  10. Handling of item storage has been split into a separate packet, but while this fixed a bug, it introduced a race condition, which when exploited allows to duplicate items. A new patch has been issued and the exploit is no longer reproducible. If you are using a version between e8affc4 and f30edc7 (inclusive) make sure you update ASAP to d2af893 (stable) or later version and compile it. Affected versions, from oldest to most recent: e8affc41f106503b530abaa7faa20d6e63b727b8 d966a8e6860d418bb3a235e57928436127eba555 cb3e2f5f3b91d0a1f7711eff9c10ae9a655a74f2 50848cc7f79aa516351e4a4d673df53f4881eb4d 5383a14853327c123cbb037d3680aaa3d8c3e724 8c5b8ac7d87d8d4dc49d3ff1768f8884a0d75d72 7c6673e13fdd75a4137a9d7ef94e04d96e053422 d90e8ce0d8ba8677567a5a5adebb62ba97e8a0b3 b950a589e59e2bf074f67c75aaacf3f82424d4fe 4b208e41d1d5cc995c2816e8f34c1ad8b0a7327d 47a1e679cd35dc2e524fbeb31891d85e497821ce f30edc7f02fb0c290d302d9abc77d970bb05fb62 To know which version you are on: start Hercules (login server, char server or map server) it will say something like the following: [Info]: Git revision (src): 'e6ab2a9ec6f5be8927eeca667ff477086f5e2e8e' If any other issue is found, this post will be updated. Want to receive email notifications about important issues in the future? Go to Repository News and hit the follow button Need help updating to a newer version? You can get free support in the #Hercules channel of the Rizon network.
  11. Another race condition has been found and patched. If you are using a version between e8affc4 and f30edc7 make sure you update ASAP to d2af893 or later version See http://herc.ws/board/topic/14837-race-condition-in-char-server-please-update/
  12. meko

    NPC Giving Skills

    I would need to have a look at your script then
  13. meko

    NPC Giving Skills

    skill(<skill id>, <level>{, <flag>}) For <flag> make sure you put 0 Example: skill(TF_THROWSTONE, 1, 0);
  14. Bots will always be there no matter what you do; even if you manually do botchecks Let's say I am a bot user, even if your questions are unpredictable and change every single time, nothing prevents me from creating a remote-controlled bot. I could set up a bot that automatically farms and whenever a botcheck is performed the bot would stop completely and send me a text message. I would then remotely answer the botcheck question and the bot would resume operation and you would have no way to differentiate this from a normal player. Plus, botchecking only ends up annoying legitimate users: not everybody is good at math, or has good eyesight to solve captchas
  15. meko

    Achievement System

    https://github.com/HerculesWS/Hercules/pull/1666
  16. I concur. Last updated Herc October 2016, seems there's tons of new stuff since then. In the process of getting up to speed. I suggest stay on your version updated one seems very unstable. Actually there was an issue with item cloning; but this was resolved
  17. if you absolutely refuse to use git at all then the only way is to download a zip file (highly not recommended, because you loose the history) else, see http://herc.ws/board/topic/14830-updating-hercules-git-pull-problem/#entry82925 if you don't want to use the command-line interface I recommend Github Desktop instead of TortoiseGIT If you encounter a problem I can give step-by-step instructions on IRC: #Hercules @ Rizon make sure to say "meko" in the channel so I get notified
  18. So the bot killer asks to solve math equations? that's... actually the thing bots are best at
  19. It seems you did not hear my advise and learn the basics of git; The reason you cannot pull is because you do not have a git environment: you downloaded a zip instead of cloning. Do the following: Delete the folder you unzipped to (it's likely too messy by now) Create a github account Make note of your github username Log in to your github account Go to https://github.com/HerculesWS/Hercules and click the Fork button Open an ssh connection to your VPS and use the following commands one by one: git clone --origin upstream git://github.com/HerculesWS/Hercules.git git config --global url."https://".pushinsteadOf git:// cd Hercules git remote add origin git://github.com/<your github username>/Hercules.git git fetch --all Now that you have a clean environment set up, build Hercules from this Hercules directory And thereafter, whenever you want to update: Connect through ssh to your vps: cd Hercules git pull upstream master ... and then build again PS- forking is usually not necessary if you just want to run a vanilla server, but if you ever want to make modifications you'll have this fork ready PS2- I noticed you are logged in to your VPS as root; running a publicly accessible server (ie Hercules) from a superuser account is very bad practice, as if any vulnerability is found the attacker would gain FULL ACCESS to your VPS
  20. If all you want is get the location then getmapxy() works just fine, no need to use more "advanced" commands such as getunitdata
  21. Why not just disable the skills that cause those status instead of disabling the status themselves? And you can easily remove them when the player enters the map with OnPCLoadMapEvent
  22. your .@x and .@y do not get the right data because you call getunitdata() improperly: you have to specify the data type, which would be UDT_MAPIDXY in your case see https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt#L9636
  23. meko

    MOB DAMAGE LIMIT

    This is because 32767 (0x7FFF) is the maximum value of a signed 16-bit integer, but clients after 20071113 do support 32-bit integers for the damage packet
  24. Pas besoin de réinstaller: https://dev.mysql.com/doc/mysql-windows-excerpt/5.7/en/resetting-permissions-windows.html
  25. Si utiliser la console est trop ardu, je te conseille HeidiSQL (100% gratuit) Tu peux importer tes fichiers .sql une fois connecté
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.