Jump to content

Snaehild

Members
  • Posts

    72
  • Joined

  • Last visited

Everything posted by Snaehild

  1. Hi @Fhaarnius Thank you for the response. I was able to make it work by importing older SQL files from the repo But there's still an error on MVP rankings I'm using the SQL files from 10b5965d1dae1defa4ae50c79824babc0e07335e which worked both for my mob & items db. I'm not sure if it's related to this. Error: PDOException Message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ragnarok.monsters' doesn't exist File: E:\xampp\htdocs\flux\lib\Flux\Connection\Statement.php:50 File Line Function/Method E:\xampp\htdocs\flux\lib\Flux\Connection\Statement.php 50 PDOStatement::execute() E:\xampp\htdocs\flux\themes\th1\main\rightbar.php 166 Flux_Connection_Statement::execute() E:\xampp\htdocs\flux\themes\th1\footer.php 5 include() E:\xampp\htdocs\flux\lib\Flux\Template.php 403 include() E:\xampp\htdocs\flux\lib\Flux\Dispatcher.php 170 Flux_Template::render() E:\xampp\htdocs\flux\index.php 169 Flux_Dispatcher::dispatch() Exception Trace As String #0 E:\xampp\htdocs\flux\lib\Flux\Connection\Statement.php(50): PDOStatement->execute(NULL) #1 E:\xampp\htdocs\flux\themes\th1\main\rightbar.php(166): Flux_Connection_Statement->execute() #2 E:\xampp\htdocs\flux\themes\th1\footer.php(5): include('E:\\xampp\\htdocs...') #3 E:\xampp\htdocs\flux\lib\Flux\Template.php(403): include('E:\\xampp\\htdocs...') #4 E:\xampp\htdocs\flux\lib\Flux\Dispatcher.php(170): Flux_Template->render() #5 E:\xampp\htdocs\flux\index.php(169): Flux_Dispatcher->dispatch(Array) #6 {main}
  2. Hi, I know there's been a bunch of floating rates support thread already. I tried most of the suggested scripts there but I can't seem to find any that has no downtime/disconnection. I saw some servers that has their floating rates/happy hours with no downtimes. Here's my modified script: //===== rAthena Script ======================================= //= Floating Server Rates //===== By: ================================================== //= Lupus //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= It's a simply example of setbattleflag //= This script will change your server rates from 1x to 1.5x every 6 hours //= Note: It doesn't affect Card granted drops, MVP & Treasure Chests drops ^_- //= It also doesn't affect CARD drops, because they are just 0.01% //===== Additional Comments: ================================= //= You can make incredible scripts with 'setbattleflag'! //============================================================ - script FloatingRates -1,{ //add any other HOURS OnMon0100: set $@brate,3000; set $@jrate,3000; set $@drate,3000; //Base exp setbattleflag("base_exp_rate",$@brate); //Job exp setbattleflag("job_exp_rate",$@jrate); //Drops setbattleflag("item_rate_common",$@drate); setbattleflag("item_rate_heal",$@drate); setbattleflag("item_rate_use",$@drate); setbattleflag("item_rate_equip",$@drate,true); // Apply new rates to configs set above //we don't change card drops rate, because these values won't change them anyway announce "Current rates are: 1."+($@brate-100)+"x 1."+($@jrate-100)+"x 1."+($@drate-100)+"x",bc_all,0xFF6060; end; OnInit: OnFri0100: //------------------- set $@brate,4500; set $@jrate,4500; set $@drate,4500; //Base exp setbattleflag("base_exp_rate",$@brate); //Job exp setbattleflag("job_exp_rate",$@jrate); //Drops setbattleflag("item_rate_common",$@drate); setbattleflag("item_rate_heal",$@drate); setbattleflag("item_rate_use",$@drate); setbattleflag("item_rate_equip",$@drate,true); // Apply new rates to configs set above //we don't change card drops rate, because these values won't change them anyway announce "Current rates are: 1."+($@brate-100)+"x 1."+($@jrate-100)+"x 1."+($@drate-100)+"x",bc_all,0xFF6060; end; }
  3. Hi @cook1e Thank you for this. I got it to work by diffing with WARP instead of Nemo. I'll try this as well.
  4. Any idea why I can't connect to my server with 20180621 client? I used to use 20200401 without any problems. Added this to defines_pre.hpp #define PACKETVER 20180621 On packets.hpp changed it to #define PACKETVER 20180621 My clientinfo was changed as well <packetver>20180621</packetver> My mapserver recognizes this: [Status]: Using packet version: 20180621. [Status]: Packet Obfuscation: Enabled. Keys: 0x00000000, 0x00000000, 0x00000000 After selecting a character, I only get this: [Info]: Character 'Asss' logged off. [Info]: 'Asss' logged in. (AID/CID: '2000001/150001', IP: '127.0.0.1', Group '0').
  5. Hi @Akkarin Any idea about the error below? I'm using the SQL files from 10b5965d1dae1defa4ae50c79824babc0e07335e which worked both for my mob & items db. Error: PDOException Message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ragnarok.monsters' doesn't exist File: E:\xampp\htdocs\flux\lib\Flux\Connection\Statement.php:50 File Line Function/Method E:\xampp\htdocs\flux\lib\Flux\Connection\Statement.php 50 PDOStatement::execute() E:\xampp\htdocs\flux\themes\th1\main\rightbar.php 166 Flux_Connection_Statement::execute() E:\xampp\htdocs\flux\themes\th1\footer.php 5 include() E:\xampp\htdocs\flux\lib\Flux\Template.php 403 include() E:\xampp\htdocs\flux\lib\Flux\Dispatcher.php 170 Flux_Template::render() E:\xampp\htdocs\flux\index.php 169 Flux_Dispatcher::dispatch() Exception Trace As String #0 E:\xampp\htdocs\flux\lib\Flux\Connection\Statement.php(50): PDOStatement->execute(NULL) #1 E:\xampp\htdocs\flux\themes\th1\main\rightbar.php(166): Flux_Connection_Statement->execute() #2 E:\xampp\htdocs\flux\themes\th1\footer.php(5): include('E:\\xampp\\htdocs...') #3 E:\xampp\htdocs\flux\lib\Flux\Template.php(403): include('E:\\xampp\\htdocs...') #4 E:\xampp\htdocs\flux\lib\Flux\Dispatcher.php(170): Flux_Template->render() #5 E:\xampp\htdocs\flux\index.php(169): Flux_Dispatcher->dispatch(Array) #6 {main}
  6. Hi, I'm getting these error when trying to access Mob & Items pages on FluxCP. I have imported the SQL files already from rathena/sql-files/ Error: Flux_Error Message: MySQL error (SQLSTATE: 42S22, ERROR: 1054): Unknown column 'equip_locations' in 'where clause' Message: MySQL error (SQLSTATE: 42S22, ERROR: 1054): Unknown column 'Scale' in 'where clause'
  7. Any idea about this error? SPR::open() - Incorrect file size, shoulnot be a SPR file
  8. Thanks @mihaamiharu I still get an error by using OnWarpact [Error]: npc_parsesrcfile: Unknown syntax in file '/warps_launch.txt', line '8'. Stopping... * w1=OnWarpact: - script day_night_npc -1,{ OnInit: bindatcmd("summonwarps", strnpcinfo(3) +"::OnWarpact"); } //OnClock1151: //OnInit: OnWarpact: sleep 1; // if you want to use different script file, then slow down the script execution
  9. I was playing around on AnnieRuru's code here, as I want to spawn warps on a specific day and time and bind it to an atcommand in case that fails. I'm getting this error [Error]: npc_event: event not found [day_night_npc::Warpact] - script day_night_npc -1,{ OnInit: bindatcmd("summonwarps", strnpcinfo(3) +"::Warpact"); } //OnClock1151: //OnInit: OnWarpact: sleep 1; // if you want to use different script file, then slow down the script execution if(gettime(DT_DAYOFMONTH)==10) { // day warp enablenpc "launchwarp#1"; disablenpc "nightwarp#1"; } else { enablenpc "nightwarp#1"; disablenpc "launchwarp#1"; } end; } map,90,87,0 warp launchwarp#1 1,1,iz_int,18,26 //test
  10. Tried it on theme/purple_themes/header.php No luck. Tried the other skyzone theme as well and it works exactly the same. I guess, i'll just switch to other themes <?php if (!defined('FLUX_ROOT')) exit; ?> <?php require_once (FLUX_THEME_DIR."/purple_themes/skyzone_config.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <?php if (isset($metaRefresh)): ?> <meta http-equiv="refresh" content="<?php echo $metaRefresh['seconds'] ?>; URL=<?php echo $metaRefresh['location'] ?>" /> <?php endif ?> <title><?php echo Flux::config('SiteTitle'); if (isset($title)) echo ": $title" ?></title> <!-- favicons --> <link rel="shortcut icon" href="<?php echo $this->themePath('favicon.ico') ?>" type="image/x-icon"> <link rel="icon" href="<?php echo $this->themePath('favicon.ico') ?>" type="image/x-icon"> <link rel="stylesheet" href="<?php echo $this->themePath('css/flux.css') ?>" type="text/css" media="screen" title="" charset="utf-8" /> <link href="<?php echo $this->themePath('css/flux/unitip.css') ?>" rel="stylesheet" type="text/css" media="screen" title="" charset="utf-8" /> <?php if (Flux::config('EnableReCaptcha')): ?> <script src='https://www.google.com/recaptcha/api.js'></script> <?php endif ?> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- CSS --> <link rel="stylesheet" href="<?php echo $this->themePath('css/base.css') ?>"> <link rel="stylesheet" href="<?php echo $this->themePath('css/vendor.css') ?>"> <link rel="stylesheet" href="<?php echo $this->themePath('css/main.css') ?>"> <link rel="stylesheet" href="<?php echo $this->themePath('css/choco_main.css') ?>"> <!-- script --> <script src="<?php echo $this->themePath('js/modernizr.js') ?>"></script> <script src="<?php echo $this->themePath('js/pace.min.js') ?>"></script> </head> <body id="top"> <div id="fb-root"></div> <script async defer crossorigin="anonymous" src="https://connect.facebook.net/pt_EN/sdk.js#xfbml=1&version=v3.3"></script> <!-- Fixed navbar --> <?php //include $this->themePath('main/navbar.php', true) ?> <!-- header --> <header id="header" class="row" style=""> <div class="header-logo"> <a href="<?php echo $this->url('main'); ?>"><img src="img/logo-min.svg" alt="" title="" /></a> <a class="hide-ros" href="<?php echo $this->url('main'); ?>"><?php echo $config['server_name'];?></a> </div> <nav id="header-nav-wrap"> <ul class="header-main-nav"> <?php foreach($config['nav_index'] as $navi): ?> <li class="<?php echo $navi[0]; ?>"> <a class="<?php echo $navi[1]; ?>" href="<?php echo $navi[2]; ?>"> <?php echo $navi[3]; ?> </a> </li> <?php endforeach; ?> </ul> <div class="btn-group text-left"> <a type="button" class="button button-primary cta dropdown-toggle" data-toggle = "dropdown"> Control Panel <span class = "caret"></span> </a> <ul class="dropdown-menu pull-right"> <?php foreach($config['nav_panel'] as $cp): ?> <li> <a href="<?php echo $cp[2]; ?>" title="<?php echo $cp[0]; ?>" class="text-primary"><?php echo $cp[0]; ?></a> </li> <?php endforeach; ?> </ul> </div> <?php $adminMenuItems = $this->getAdminMenuItems(); ?> <?php if (!empty($adminMenuItems) && Flux::config('AdminMenuNewStyle')): ?> <div class="btn-group text-left"> <a type="button" class="button button-primary cta dropdown-toggle" data-toggle = "dropdown"> Admin Panel <span class = "caret"></span> </a> <ul class="dropdown-menu pull-right"> <?php foreach ($adminMenuItems as $menuItem): ?> <li> <a href="<?php echo $this->url($menuItem['module'], $menuItem['action']) ?>"><?php echo htmlspecialchars(Flux::message($menuItem['name'])) ?></a> </li> <?php endforeach; ?> </ul> </div> <?php endif ?> </nav> <a class="header-menu-toggle" href="#"><span>Menu</span></a> </header> <!-- /header --> <?php if(!($params->get('module') == 'main' && $params->get('action') == 'index')){ ?> <section id="home" style="padding-top:100px; padding-button:100px;"> <div class="container" style="background-color:#FFF; border-radius:10px; padding:10px;"> <?php if (Flux::config('DebugMode') && @gethostbyname(Flux::config('ServerAddress')) == '127.0.0.1'): ?> <p class="notice">Please change your <strong>ServerAddress</strong> directive in your application config to your server's real address (e.g., myserver.com).</p> <?php endif ?> <!-- Messages --> <?php if ($message=$session->getMessage()): ?> <p class="message"><?php echo htmlspecialchars($message) ?></p> <?php endif ?> <div class="modal" id="testModal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Modal title</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <p><?php echo htmlspecialchars($message) ?></p> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div> </div> </div> <?php if ($message=$session->getMessage()): ?> <script type="text/javascript"> $(document).ready(function(){ $("#testModal").delay(2000).modal('show'); }); </script> <?php endif ?> <!-- Sub menu --> <?php include $this->themePath('main/submenu.php', true) ?> <!-- Page menu --> <?php include $this->themePath('main/pagemenu.php', true) ?> <!-- Credit balance --> <?php //if (in_array($params->get('module'), array('donate', 'purchase'))) include 'main/balance.php' ?> <?php } ?>
  11. Found it. This is actually on the header file <?php if ($message=$session->getMessage()): ?> <p class="message"><?php echo htmlspecialchars($message) ?></p> <?php endif ?> Do you have any sample on the modal approach?
  12. Hi @Foob Thank you for your response. Is this supposed to go on /account/create.php ? <?php if (!defined('FLUX_ROOT')) exit; ?> <h3><?php echo htmlspecialchars(Flux::message('AccountCreateHeading')) ?></h3> <p><?php printf(htmlspecialchars(Flux::message('AccountCreateInfo')), '<a href="'.$this->url('service', 'tos').'">'.Flux::message('AccountCreateTerms').'</a>') ?></p> <?php if (isset($errorMessage)): ?> <p class="red" style="font-weight: bold"><?php echo htmlspecialchars($errorMessage) ?></p> <?php endif ?> <div class="row"> <div class="col col-lg-6"> <form action="<?php echo $this->url ?>" method="post" class="generic-form"> <?php if (count($serverNames) === 1): ?> <input type="hidden" name="server" value="<?php echo htmlspecialchars($session->loginAthenaGroup->serverName) ?>"> <?php endif ?> <?php if (count($serverNames) > 1): ?> <div class="form-group"> <label for="register_server"><?php echo htmlspecialchars(Flux::message('AccountServerLabel')) ?></label> <select name="server" id="register_server"<?php if (count($serverNames) === 1) echo ' disabled="disabled"' ?>> <?php foreach ($serverNames as $serverName): ?> <option value="<?php echo htmlspecialchars($serverName) ?>"<?php if ($params->get('server') == $serverName) echo ' selected="selected"' ?>><?php echo htmlspecialchars($serverName) ?></option> <?php endforeach ?> </select> </div> <?php endif ?> <div class="form-group"> <label for="register_username"><?php echo htmlspecialchars(Flux::message('AccountUsernameLabel')) ?></label> <input required class="text-primary form-control" type="text" name="username" id="register_username" value="<?php echo htmlspecialchars($params->get('username')) ?>" /> </div> <div class="form-group"> <label for="register_password"><?php echo htmlspecialchars(Flux::message('AccountPasswordLabel')) ?></label> <input required class="text-primary form-control" type="password" name="password" id="register_password" /> </div> <div class="form-group"> <label for="register_confirm_password"><?php echo htmlspecialchars(Flux::message('AccountPassConfirmLabel')) ?></label> <input required class="text-primary form-control" type="password" name="confirm_password" id="register_confirm_password" /> </div> <div class="form-group"> <label for="register_email_address"><?php echo htmlspecialchars(Flux::message('AccountEmailLabel')) ?></label> <input required class="text-primary form-control" type="text" name="email_address" id="register_email_address" value="<?php echo htmlspecialchars($params->get('email_address')) ?>" /> </div> <div class="form-group"> <label for="register_email_address"><?php echo htmlspecialchars(Flux::message('AccountEmailLabel2')) ?></label> <input required class="text-primary form-control" type="text" name="email_address2" id="register_email_address2" value="<?php echo htmlspecialchars($params->get('email_address2')) ?>" /> </div> <div class="form-group gender"> <label><?php echo htmlspecialchars(Flux::message('AccountGenderLabel')) ?></label> <div class="gender-m" style="display:inline-block; width:45%; text-align:center;"><label><input checked class="text-primary form-control" type="radio" name="gender" id="register_gender_m" value="M"<?php if ($params->get('gender') === 'M') echo ' checked="checked"' ?> /> <?php echo $this->genderText('M') ?></label></div> <div class="gender-f" style="display:inline-block; width:45%; text-align:center;"><label><input class="text-primary form-control" type="radio" name="gender" id="register_gender_f" value="F"<?php if ($params->get('gender') === 'F') echo ' checked="checked"' ?> /> <?php echo $this->genderText('F') ?></label></div> <strong title="<?php echo htmlspecialchars(Flux::message('AccountCreateGenderInfo')) ?>"></strong> </div> <div class="form-group" style="display:none;"> <label><?php echo htmlspecialchars(Flux::message('AccountBirthdateLabel')) ?></label> <?php echo $this->dateField('birthdate',null,0) ?> </div> <?php if (Flux::config('UseCaptcha')): ?> <?php if (Flux::config('EnableReCaptcha')): ?> <div class="form-group"> <label for="register_security_code"><?php echo htmlspecialchars(Flux::message('AccountSecurityLabel')) ?></label> <div class="g-recaptcha" data-theme = "<?php echo $theme;?>" data-sitekey="<?php echo $recaptcha ?>"></div> </div> <?php else: ?> <div class="form-group"> <label for=""><?php echo htmlspecialchars(Flux::message('AccountSecurityLabel')) ?></label> <div class="security-code"> <img src="<?php echo $this->url('captcha') ?>" /> </div> </div> <div class="form-group"> <input required class="text-primary form-control" type="text" name="security_code" id="register_security_code"> </div> <div class="form-group"> <strong> <a href="javascript:refreshSecurityCode('.security-code img')"> <?php echo htmlspecialchars(Flux::message('RefreshSecurityCode')) ?> </a> </strong> </div> <?php endif ?> <?php endif ?> <div class="form-group"> <div style="margin-bottom:;"> <?php printf(htmlspecialchars(Flux::message('AccountCreateInfo2')), '<a href="'.$this->url('service', 'tos').'">'.Flux::message('AccountCreateTerms').'</a>') ?> </div> </div> <div class="form-group"> <button class="button button-primary btn-block" type="submit"> <strong><?php echo htmlspecialchars(Flux::message('AccountCreateButton')) ?></strong> </button> </div> </form> </div> <div class="col col-lg-6"> <p><?php printf(htmlspecialchars(Flux::message('AccountCreateInfo')), '<a href="'.$this->url('service', 'tos').'">'.Flux::message('AccountCreateTerms').'</a>') ?></p> <?php if (Flux::config('RequireEmailConfirm')): ?> <p><strong>Note:</strong> You will need to provide a working e-mail address to confirm your account before you can log-in.</p> <?php endif ?> <p><strong>Note:</strong> Your forum account will be tied to your e-mail address. For your security, you can change your forums display name on your <a href="https://roslayers.com/forums/settings/username/" target="_blank">forums' account settings</a> once every 60 days.</p> <p><strong>Note:</strong> <?php echo sprintf("Your password must be between %d and %d characters.", Flux::config('MinPasswordLength'), Flux::config('MaxPasswordLength')) ?></p> <?php if (Flux::config('PasswordMinUpper') > 0): ?> <p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedUpper'), Flux::config('PasswordMinUpper')) ?></p> <?php endif ?> <?php if (Flux::config('PasswordMinLower') > 0): ?> <p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedLower'), Flux::config('PasswordMinLower')) ?></p> <?php endif ?> <?php if (Flux::config('PasswordMinNumber') > 0): ?> <p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedNumber'), Flux::config('PasswordMinNumber')) ?></p> <?php endif ?> <?php if (Flux::config('PasswordMinSymbol') > 0): ?> <p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedSymbol'), Flux::config('PasswordMinSymbol')) ?></p> <?php endif ?> <?php if (!Flux::config('AllowUserInPassword')): ?> <p><strong>Note:</strong> <?php echo Flux::message('PasswordContainsUser') ?></p> <?php endif ?> </div> </div> Edit: Renamed the /theme/account folder to something else , assuming the default registration script will work but same result.
  13. Hi, I know this question has been asked a few times already (here and here) but I had no luck finding a working solution so far. I'm using purple theme by Skyzone, and registration redirects us to homepage w/o any message after registration. Any help is greatly appreciated.
  14. Perfect. Thank you! Do you by any chance know a fix about these missing NPCs?
  15. Hi, I know this issue has been posted for a bunch of times already but I can't seem to find a workaround that works for me. I am using an updated 2020-04-01 client. data files based of ROEnglishRE Things i've tried: Added iz_ac01 & 02 files to the data folder. Used Tokei's Mapcache' editor and added the same files. Ran the mapcache.exe on rathena's repo. But adding those files to my grf is throwing me this error: Am I missing something?
  16. Sorry, what do you mean? Here's line 23 doevent strnpcnfo(0) + "::OnCompendium";
  17. Hi @sader1992 Thank you for the response. I did test it. I probably just didn't notice the error script error on npc/custom/*/Compendium1.1.c line 23 parse_line: expected ';' 22 : { * 23 : doevent strnpcnfo'('0) + "::OnCompendium"; 24 : end; 25 : 26 : OnInit: 27 : //== General Data ==| 28 : .compendium_id = 30580; [Info]: Done loading '20980' NPCs: The same error as the last posts on the post.
  18. Hello mga sir/mam Saan iniinstall mga .c utility scripts? I was trying to install this: https://rathena.org/board/topic/126669-utility-compendium/?tab=comments#comment-397115
  19. Thank you. It's actually the new pront map, I guess.
  20. Hi @Rivers Edit: Fixed the previous error by updating plist. Now i'm getting this error:
  21. Hi, I hope topics like this are okay, if not feel free to let me know. We're interested to have a Prontera design similar to the screenshot below. If anyone knows the designer of that map I would appreciate a referral.
  22. Where do we normally install .c scripts? Do they go under npc folder as well?
×
×
  • Create New...