Jump to content

MadTiago

Inactive Member
  • Posts

    22
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by MadTiago

  1. You're probably using a different port on sshd_config. To use a ssh tunnel to connect to mysql, you just need to create a local mysql user on your server and then configure navicat to use local user + ssh tunnel like this: [Hidden Content] [Hidden Content] If you changed ssh port, you need to reload/restart ssh daemon: service sshd restart
  2. You don't need to setup IPN on paypal, the return url can be configured on the form. You just need the form and the listener (IPN).
  3. You could improve your coding even more. Try using PDO/MySQLi instead of php's native mysql lib Use some sort of config options instead of harcoding databases/tables names If you declare every function as "public" even if they don't need to be public, it will make no sense to specify it's visibility Try using | as a separator instead of ::: When you write player's cache, you can use a foreach to iterate through player data, no need to write all those lines
  4. To attack you need to change your binary. On InstanceBase.cpp, add your mount vnum to the switch on: UINT CInstanceBase::SHORSE::GetLevel()And to allow damage with that mount, you need to edit your game's pvp.cpp, adding your mount vnum to the switch on: bool CPVPManager::CanAttack(LPCHARACTER pkChr, LPCHARACTER pkVictim)
  5. You're running game file on share directory, when you're not supposed to. The share directory is used to "share" (hence the name) the files with game channels/cores using symbolic links. Think of it as a "common" directory. This method allows you to replace the game/db file on a single directory (in this case it's share) affecting every directory that has a symbolic link poiting to game/db files. When you run the game file, it tries to load the CONFIG file, but that doesn't exist on share dir since each channel/core has a unique CONFIG file (that's why you don't "share" it).
  6. M2 Download Center Download Here ( Internal ) With this modifications to the original make.sh you can comment your locale_list. Prerequisites bash How to use? bash make.sh Source code #!/usr/local/bin/bash LIST_FILE='locale_list' BIN="./qc" if [ -r $LIST_FILE ]; then rm -rdf object mkdir object while read line; do firstChar="${line:0:1}" if [ "$firstChar" != "#" ] && [ -n "$firstChar" ]; then quest=${line%#*} $BIN $quest fi done < $LIST_FILE else echo $LIST_FILE' is missing' fi Example locale_list # First quest quest1.quest quest2.quest # Second quest quest3.quest quest4.quest Hope you like it.
  7. Use crontab -l to check if the cron has been added. And you can also check /var/log/cron. Is "/Backups/auto_back.sh" the full path?
  8. Rename "vanilla_core_x_x" to "game" and "vanilla_dbcache" to "db".
  9. I know the scripts, I was just explaining why you shouldn't use root Btw, songoku, you should read this: [Hidden Content]
  10. Go to share/bin and replace the game and db files with vanilla's or any other revision you want.
  11. You don't need to create it, but it is recommended since root should only be used for server management and not to run services.
  12. That's the vi editor. Click "a" to append text then write the cron line. To save and quit press Esc, then type :wq and hit Return. The cronjob will be automatically installed upon exiting.
  13. You should leave /etc/crontab alone. Use crontab -e instead (no need to specify the user).
  14. Hey. I'm releasing my mysql backup script. Prerequisites mysqldump gzip ncftp ftp server properly set up How does the script works? Dumps and compresses the desired mysql databases Transfers compressed files to remote host Removes local compressed files How to use?This script takes only one argument (mode). Mode defines which databases should be dumped. Run it as: sh backupmysql.sh <mode>Check the source comments for available modes. Running automatically You can also define it to run automatically with a cronjob, and even run different modes on different times. To add a new cronjob, run: crontab -e Example cronjob (once a day): 0 0 * * * sh /usr/home/someuser/backupmysql.sh all Script source:
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.