Jump to content

Akkarin

Forum Manager
  • Posts

    3144
  • Joined

  • Last visited

  • Days Won

    212

Everything posted by Akkarin

  1. So remove the part of your post where your selling stuff.
  2. It wouldn't create unless I used quotes, which was weird enough. Maybe I wasn't typing it right. I'll give it another whirl now I've got my head out of rathena/FluxCP lol Update: Still using the same code as above: switch(instance_create("Prison Break",IM_CHAR,getcharid(0))){ case -1: mes "^FF0000-1 Invalid Type^000000."; close; case -2: mes "^FF0000-2 Char/Party/Guild not exist^000000."; close; case -3: mes "^FF0000-3 Instance Already Exists?!^000000."; close; case -4: mes "^FF0000-4 No Free Instances. MAX_INSTANCE?!^000000."; close; default: break; } Removing the " " 's gives me this error on the console: [Error]: instance_create: character 150000 not found for instance 'Prison Break'. And returns error value -2. Very confused.
  3. Oh dear, someone doesn't read rules! This should be in https://rathena.org/board/forum/45-paid-services/
  4. If i'm blind and this already exists, shoot me. It'd be nice to be able to send a message via script to a specific channel. Useful for "this is trade chat only" in #trade or "use #trade for trade messages" in #main announcements and "player x completed quest" to #admin and things like that.
  5. You could parse the values where NULL could be expected through strtolower(); (if ($string === "NULL"){$string = strtolower($string);} ) and use string check functions (or regex if you like) to ensure strings are encased in quotes.
  6. If you don't have a valid SSL Certificate for the domain you're using in your Thor configs, Thor will fail to connect. Use http:// or setup a valid SSL Cert to use http://
  7. Generally means you changed something to a different data type. If it's telling you that "Object of class Flux_Config could not be converted to int" and it's referencing the authorisation file, have a look at what you changed in /config/access.php
  8. Providing error logs is a good start.
  9. A good way to check this would be to use a port script on your website. Throw this code into a php file and visit it in your browser: $timeout = "1"; $portgen[1] = "6900"; $servicegen[1] = "Login:"; $ipgen[1] ="ip"; $portgen[2] = "1234"; $servicegen[2] = "Char:"; $ipgen[2] ="ip"; $portgen[3] = "1235"; $servicegen[3] = "Map:"; $ipgen[3] ="ip"; $portgen[4] = "3306"; $servicegen[4] = "SQL:"; $ipgen[4] ="ip"; $portgen[5] = "80"; $servicegen[5] = "Self:"; $ipgen[5] ="127.0.0.1"; $portsgen = count($portgen); $portsgen = $portsgen + 1; $countgen = 1; $main = ""; while($countgen < $portsgen){ $fpgen = @fsockopen("$ipgen[$countgen]", $portgen[$countgen], $errno, $errstr, $timeout); if (!$fpgen) { $main .= "$servicegen[$countgen] <font color='red'>Offline</font> "; } else { $main .= "$servicegen[$countgen] <font color='green'>Online</font> "; fclose($fpgen); } $countgen++; } $main .= ""; print $main; If the first three say offline, when your server is clearly running, then your webhost has only opened up particular ports (ftp, ssh, sql, etc). This is quite common amongst hosting providers that know what they're doing.
  10. It's in /themes/default/main/loginbox.php starting at line 12.
  11. Contact the creator of that theme.
  12. Speak to the person who designed your theme. That file isn't included within rA's distribution of FluxCP.
  13. So i thought i'd give the new versions of the script commands a try, but i'm failing miserably. switch(instance_create("Prison Break","IM_CHAR",getcharid(0))){ case -1: mes "^FF0000-1 Invalid Type^000000."; close; case -2: mes "^FF0000-2 Char/Party/Guild not exist^000000."; close; case -3: mes "^FF0000-3 Instance Already Exists?!^000000."; close; case -4: mes "^FF0000-4 No Free Instances. MAX_INSTANCE?!^000000."; close; default: break; } switch(instance_enter("Prison Break",-1,-1,getcharid(0))) { case 3: mes "An unknown error has occurred."; debugmes strcharinfo(0) + " / " + instance_id() + " / FAIL CODE 3"; close; case 2: mes "Instance for Prison Break does not exist."; mes "Instance has been destroyed by the Party Leader, or because of the time limit."; debugmes strcharinfo(0) + " / " + instance_id() + " / FAIL CODE 2"; close; case 1: mes "Looking for a party on a single char only instance.."; debugmes strcharinfo(0) + " / " + instance_id() + " / FAIL CODE 1"; close; case 0: debugmes strcharinfo(0) + " / " + instance_id() + " / SUCCESS"; end; } This code works up until i try to enter the instance, and i get the following output from debugmes: 07:02:24:27|[Info]: [Instance] Created: Prison Break (1). 07:02:24:27|[Debug]: script debug : 2000000 110257446 : Akkarin / 0 / FAIL CODE 3 For some reason the instance isn't being attached to my char, but it should be because i'm using IM_CHAR and passing my char_id to instance_create. The instance is setup correctly in the db (changed columns accordingly), and worked perfectly fine when i was in a party on my own before i updated to get the new script commands. It's been a while since i've done any scripting, but i'm pretty sure this should work.. help please
  14. It sounds like the installer is forwarding you to the wrong location. Check config/application.php: 'ServerAddress' => 'localhost', // This value is the hostname:port under which Flux runs. (e.g., example.com or example.com:80) 'BaseURI' => '', // The base URI is the base web root on which your application lies.
  15. Posting your html might help us help you.
  16. Sounds like a permission issue. Ensure your SQL user has the correct permissions from the appropriate host.
  17. There should be an installation guide in the form of a PDF in all Thor downloads. You can ask your host to change the skin (they'll probably want you to pay extra, the thieves) or you can read the install guide. It boils down to making the skin itself, splicing into images, then put the coords in the skin config file, run the thor packing exe to insert the images and the patcher configs.
  18. What addon is this occurring on? Full screenshots would be appreciated..
  19. The code should probably match the item/index.php theme file so the page will only try to show the image if the file is actually there: <?php if ($icon=$this->iconImage($item->item_id)): ?> <td width="24"><img src="<?php echo htmlspecialchars($icon) ?>?nocache=<?php echo rand() ?>" /></td> <td><?php echo htmlspecialchars($item->name) ?></td> <?php else: ?> <td colspan="2"><?php echo htmlspecialchars($item->name) ?></td> <?php endif ?> The images are served from data/items/icons/
  20. Is this officially supported by rathena as a method of support and communication? If it is, where's the announcement/links to it on the forum and in the git readme? If you guys put as much effort into advertising irc (supported method of communication) as you have -another- service, then you'd already have a good user base to work with. Discord is no less cluttered than irc, it gives users the ability to type and so what if it's ancient? It works..
  21. Stop stop stop. Smf provides the code you need without needing any 3rd Party code. Check out your SSI.php file in your forum root. Stop trying to reinvent the well guys.
  22. Essentially, Death Ranking just displays players with the highest 'PC_DIE_COUNTER'. Character Ranking is pulled from SQL - it will update when the charserver saves new information. If it's not working i recommend submitting a new Issue with screenshots/logs/error reports.
  23. This was answered in https://rathena.org/board/topic/103791-how-delete-menu-fluxcp/?p=293064
  24. You just upload the image files to the correct folder in "data/items".
  25. Akkarin

    error register

    There was an image in the first post but it can't be displayed - the image host appears to be having problems. @OP please attach the image to your first post.
×
×
  • Create New...