Jump to content

Antares

Members
  • Posts

    420
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Antares

  1. There is already @mapexit. The rest is batch/bash scripting + task scheduler.
  2. Either restart your server or use @reloadbattleconf. @reloadscript has nothing to to with this kind of things.
  3. I guess the guild emplem (blob) field stores the emblem in base64. So simply read it into a base 64 <img> tag.
  4. On linux we simply use mysqldump -u[user] -p[pass] "schema" | gzip > "filename.gz" I guess theres something similar on windows as well. You may add this into a batch/bash script and add it to a task scheduler to run it frequently, and create another task that deletes the old backups (if neccessary) You can refine it if you wish to dump specific table(s). Also, if you write a crash detect script (log check), you can import the backup automatically, and restart the server.
  5. Every damage should intterupt afaik unless the caller was deviotioned by a crusader
  6. I don't think it's possible to make a float number in script. I think it only supports integers. So you need to trick with integers and string texts. Ofc if you don't want to read the value from your settings, then simply write the value in the text, but I suspect you want to read the val from confs. You can try the following (.@x = rate): announce "The current base rate is: "+ .@x/100 +"."+ .@x-((.@x/100)*100),0; (if the script does the flooring right after the division, then this should return first the integer part, then after the point the rest)
  7. Btw where can you see that drop down menu? I saw it nowhere, especially not in the my content page. I have simple buttins in the header and only sort by last update and name is there.
  8. Are you sure they are regular players and they are not part of some group? I mean I know that many high rate fun servers make it possible to use almost all atcommands and other gm/admin stuff. So are you sure that the basic group don't have permission to bypass equip restrictions? If yes then I suggest to review your source modifications, there might be some broken stuff. We don't have any issue like this with latest GIT version.
  9. Hi To implement somethig like this you would need to alter the client, not the server. So I think it is possible by some hex editing, but honestly that is chinese to me I advise you to ask the same question in the client support/request area. Maybe some pros can make you a diff that you can use. Have a good day!
  10. My first idea is to use the admin skill "Good night sweethart" on the player with an ontouch npc (infinite sleep, no immunity, can't be canceled). Or you can try other statuses as well like silence+magnetic earth, spider web, frozen, sleep, stone curse (but I'm not sure if you can apply them with script so they don't take in account resistances.).
  11. Don't use admin account? Admins can equip everything.
  12. Antares

    Apple of Idun

    I don't see the problem. It's supposed to heal little.
  13. The caster has a bunch of INT, so more MDEF, but since we can't see the sinx's stats I'm just guessing. You may change the item's script that is reflecting (Maya card?).
  14. Oh, use notepad++, it's free. Btw I think you can change encoding in notepad as well when you save, at least you could in either xp or 7.
  15. We use this script, add/alter as you wish: - script #channel_autojoin -1,{ OnPCLoginEvent: atcommand "@join #support"; atcommand "@join #trade"; atcommand "@join #main"; end; } To add: copy the above code in a .txt file like: mainchat_autojoin.txt place the file in your npc/custom/ folder (or any, or no folder inside npc/) open npc/scripts_custom.conf in any text editor (notepad) and add the next new line to the end (use the path where you saved your script): npc: npc/custom/mainchat_autojoin.txt save & close if the server is running use atcommand @reloadscript done
  16. You are welcome ( ●˽●)
  17. Isn't there a portable MSQL version? I'd be surprised if no.
  18. Pz post this in the bug tracker if you don't have any custom mods and you are using the latest GIT version. It can be tracked better over there.
  19. What a pity Note: Next time plz write some more details (what, when, where, how, why), and maybe post in the bug tracker. Note2: It is working for me on latest GIT.
  20. @Winz I feel the same rage This is the 4th post in a row about SVN I'm seeing. Good GIT GIT GIT EVIL BAD SATAN NOOOOOOOO SVN
  21. I sincerely hope you are not using the SVN repo, since it was abandoned. We use GIT. You can use the SVN client to pull from the GIT repo, so there's no problem, but if you used the SVN repo till this point, you will need to check yout a new server from the GIT repo. You can copy-paste your configs and npcs, so those and your stored data will be intact, but source mods will be gone. If you used GIT previously, just do a regular update, and when prompted because of conflicts, choose as you wish (use server version/use your version/merge)
  22. I'm a rookie, but as I understand, you may use variables freely. They consume very little ram, unless you create them in an infinite loop. http://rathena.org/wiki/Variables#Temporal_vs_Permanent I suggest to always use the lowest possible scope for a variable, eg: If a variable is only used during a calculation in an event (like OnPCKillEvent), and it is not required after, then make it a temporary script variable, but of course if you want to store a quest progress, make it a permanent character variable, and if you want a server-wide setting/progress variable make it a permanent global variable. But the wiki is the best description. Read it and you will understand everything http://rathena.org/wiki/Variables
  23. Antares

    MVP Box

    I'm a rookie in scripting, but this does not seem to be right to me: if ( getmonsterinfo( killedrid,22) && getarraysize( .@BOSSID ) ) { getarraysize returns the size of the array, and not whether the item is inside the array or not. You need to do a search in the arrays you defined. Currently you need to loop through the arrays and check every item, but someday this might get into prod http://rathena.org/board/topic/92070-suggestion-new-scriptcommand-search-array/
  24. Pz post a bug report about this in the bug tracker. I couldn't see any part where it is added to moster drops, so this might be bugged or simply missing. Item id 6507
×
×
  • Create New...