Jump to content

astralprojection

Members
  • Content Count

    333
  • Joined

  • Last visited

  • Days Won

    8

Reputation Activity

  1. Upvote
    astralprojection reacted to Asheraf in How to enclose qoutation to string variable   
    use
    atcommand(sprintf("#warp \"%s\" %s 22 50", .@playername$, .arena_map$));  
  2. Upvote
    astralprojection reacted to Asheraf in Questinfo / SetQuestInfo   
    @astralprojection I have pushed an update to #2218 which added support for specifying an item amount range (0 should be allowed), feel free to test it and tell me if you found any issues.
  3. Upvote
    astralprojection got a reaction from Heroic in Hercules Revision for Live Server   
    don't just wipe achievement_db.conf, it should contain these data.
     
  4. Upvote
    astralprojection reacted to Rebel in Check Job Level   
    if (sd->status.job_level < 40) return false;  
  5. Upvote
    astralprojection got a reaction from LipESprY in Mapcache guides?   
    linux:
    4. login to your linux machine
    5. change directory to Hercules or your custom folder and make tools then use mapcache to compile it.
    $ cd Hercules
    Hercules]$ make tools
    Hercules]$ ./mapcache
     
  6. Upvote
    astralprojection reacted to bWolfie in How to convert pet_db2.txt   
    Locate to tools folder where it's located and run
    ./petdbconverter.py pre-re ../ ../db/pet_db2.txt > pet_db2.conf
    should generate conf file in the tools folder
    change pre-re to re if renewal
  7. Upvote
    astralprojection got a reaction from master@ragna in [Yug-WebDev] Services [Web-Dev] [Server-Dev]   
    @Master@Ragna helped me cleaned up my website and added cool features.  I can rate 5/5 on this service based on availability, his expertise, affordability and his dedication to meet best expectation on every costumer. Yes, you can contact him anytime for adjustment even the job is completed already, unlike that other blood sucking web dev, after completion you will not be entertained anymore. 
    Keep up the good work!!!  
  8. Upvote
    astralprojection reacted to bWolfie in How to filter getinventorylist   
    How about this? It should store every non-bound item in a new array .@ID[]
    getinventorylist(); for (.@i = 0; .@i < @inventorylist_count; .@i++) { /* Filter only items that is not bound */ if (!@inventorylist_bound[.@i]){ .@itemname$ = callfunc( "getitemname2", @inventorylist_id[.@i], @inventorylist_identify[.@i], @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i], @inventorylist_bound[.@i]); .@menu$ += sprintf("%s %s:", @itemname2_info$, .@itemname$); .@ID[.@j] = @inventorylist_id[.@i]; .@j++; } } .@menu$ += "Cancel"; .@s = select(.@menu$) -1; if (.@s == .@j) close; /* Now display ItemID of selected inventory */ mesf("You have selected %d", .@ID[.@s]); // this did not return correct info because it reads [.@s] index from getinventorylist but not the filtered menu.  
  9. Upvote
    astralprojection got a reaction from grimmm in Hercules Battlegrounds   
    i figure it out, just change to

    count += (map->addflooritem(bl, &item_tmp, 1, m, mx, my, 0, 0, 0, 4, false) != 0) ? 1 : 0;
    Asheraf committed 26 days ago  Add support for new drop packet 0xadd for zero clients 
  10. Upvote
    astralprojection reacted to ljsb in Hercules Battlegrounds   
    On what client does this error occur?
  11. Upvote
    astralprojection reacted to ljsb in Hercules Battlegrounds   
    Fixed in pull #36, f963865
    Awaiting @Smoke approval. 
  12. Upvote
    astralprojection got a reaction from Ridley in [Collection] Official Full Clients + latest kRO   
    can you add Ragnarok Zero client?
  13. Upvote
    astralprojection reacted to 4144 in Send Old Mail To RoDex   
    See values for status here: https://github.com/HerculesWS/Hercules/blob/master/src/common/mmo.h#L657-L659
    First one is 0, then 1, then 2
  14. Upvote
    astralprojection got a reaction from Khazou in Cannot Convert Korean to Ascii in Notepad++   
    Encoding > Character Sets > Western European > ISO 8859-1
  15. Upvote
    astralprojection got a reaction from bWolfie in Mapcache guides?   
    linux:
    4. login to your linux machine
    5. change directory to Hercules or your custom folder and make tools then use mapcache to compile it.
    $ cd Hercules
    Hercules]$ make tools
    Hercules]$ ./mapcache
     
  16. Upvote
    astralprojection got a reaction from Ridley in Cash Transaction Log (pick_logs)   
    I hope to get this added, it is a very important to track and monitor cash movement of players
     
    case LOG_TYPE_REFINE: return '2'; // Refine case LOG_TYPE_OTHER: return 'X'; // Other case LOG_TYPE_CASH: return '$'; // Cash Points }
  17. Upvote
    astralprojection reacted to Dastgir in [Pre-Release] Payment Wall - FluxCP addon   
    That point was made w.r.t this page: https://www.paymentwall.com/en/faq/payment-verification/196
    It probably seems it is talking about the one who is paying
     
    Edit:
    They list this as well:
    There is a $100 minimum payout threshold. Once the $100 threshold is met, we will automatically send you the payout as long as all compliance documents are uploaded and approved.
     
    We send out payouts as we collect your revenues from our payment partners. It would depend on the payment method utilized by the users and release time of our payment partners which usually vary between 30 to 60 days. To view your payout schedule, please click here
     
    The payout can also be put on hold for a specific amount of time if we see that you have stopped processing payments. This is to cover any possible chargebacks the users may file. Once the prescriptive period is over, we will pay you your remaining balance minus any refunds or chargebacks
     
    Reference: https://www.paymentwall.com/en/faq/payouts/194
     
    So 30-60 days is hell lot, and 100$ minimum for payout..
  18. Upvote
    astralprojection got a reaction from Functor in Gepard Shield invalid file has been detected? cps.dll   
    newer version of gepard will now auto trash unnecessary files
  19. Upvote
    astralprojection reacted to Tranquility in server status   
    There is another way, however, you'll require some tweaks to pull it off.
     
    I personally have separated the information in two files (one config, one navigation), however, you can merge it into one.
    Alter the $host, $user, $pwd & $db variables as needed.
    Here's the config file:
    // Server Timedate_default_timezone_set('America/Chicago'); //Change your timezone to your server's timezone.$today = date("H:i", time());// Server configuration$host = "SERVER_IP";$user = "SQL_USER";$pwd = "SQL_PASS";$db = "SQL_DATABASE";// Login, Char & Map Server ports$login = 6900;$char = 6121;$map = 5121;//PHP Data Objects -> onlinePlayersCount & serverOnline// Players Online$server = new PDO("mysql:host={$host};dbname={$db}",$user,$pwd);$sql = "SELECT COUNT(*) AS players_online FROM main.char WHERE online > 0";$onlinePlayersCount = $server->query($sql)->fetchColumn();// Server Statusfunction getServerStatus() { //global $host,$login,$char,$map; $host = "SERVER_IP"; $login = 6900; $char = 6121; $map = 5121; $loginStatus = @fsockopen($host,$login,$errno,$errstr); $charStatus = @fsockopen($host,$char,$errno,$errstr); $mapStatus = @fsockopen($host,$map,$errno,$errstr); if($loginStatus == false || $charStatus == false || $mapStatus == false){ return false; }else{ fclose($loginStatus); fclose($charStatus); fclose($mapStatus); return true; }}$serverOnline = getServerStatus();?> And here's my navigation file:
    <?phprequire_once('serv_config.php');?><ul class="pull-right"> <li>Time: <?php echo $today; ?></li> <li><span>Players: <?php echo $onlinePlayersCount; ?></span></li> <li><span>Server: <span id="<?php if($serverOnline == true) { echo "server-online";} else {echo "server-offline";}?>"><?php if($serverOnline == true) {echo "Online";} else {echo "Offline";} ?></span></span></li></ul> <!-- pull-right --> The CSS for the online/offline indicators (green&red):
    .main-navigation #server-online { color: green;}.main-navigation #server-offline { color: red;} All these tweaks I have applied to Herc's FluxCP with the emphaino theme. There's more CSS involved with this, however, it's not relevant for the code you wanted and just visual positioning etc.
    Good luck.
  20. Upvote
    astralprojection reacted to vBrenth in [debian] Warning: File `3rdparty/mt19937ar/Makefile.in' has modification time 2.7e+07 s in the future   
    Go to ur trunk directory and type this..
    find -exec touch {} ;
  21. Upvote
    astralprojection reacted to Mhalicot in Costume Item Plugins   
    @@Axl, that error has been resolved already.. please download the latest version which is 3.4 Thanks!
  22. Upvote
    astralprojection got a reaction from vBrenth in Introducing Hercules Channel System   
    How about adding <option> to make channel READ-ONLY?
    - Players can't send message in this channel, only read message.
     
    This will be useful for script, GM etc. announcements.
     

  23. Upvote
    astralprojection got a reaction from Mhalicot in [AtCommand] afk   
    testing this, it works great so far.
    #include <stdio.h>#include <stdlib.h>#include <string.h>#include "../common/HPMi.h"#include "../common/timer.h"#include "../map/script.h"#include "../map/pc.h"#include "../map/channel.h"#include "../map/clif.h"#include "../map/battle.h"#include "../map/status.h"#include "../common/HPMDataCheck.h"/*1.0 Initial Script [Mhalicot] Topic: http://goo.gl/vbmQnr2.0 Added Map restriction "izlude", GVG/PVP. You can't use @afk when your dead. [Mhalicot]2.1 Update compilation compatibility in latest rev. 13300 [Mhalicot]2.2 Fixed bug when using @afk. [Mhalicot]2.3 Fixed map crash when using @afk [Mhalicot]3.0 Added unable to use @afk when receiving damage. [Mhalicot]3.1 Fixed Compiling Error, Thanks to quesoph4.0 Added AFK Timeout. Chars will be kicked from the server. [Mhalicot]*/HPExport struct hplugin_info pinfo = { "afk", // Plugin name SERVER_TYPE_MAP, // Which server types this plugin works with? "4.0", // Plugin version HPM_VERSION, // HPM Version (don't change, macro is automatically updated)};// Set this to the amount of minutes afk chars will be kicked from the server. 720 = 12 hoursint afk_timeout = 0;void parse_my_setting(const char *val) { afk_timeout = atoi(val);}ACMD(afk) { if(sd->bl.m == map->mapname2mapid("izlude")) { clif->message(fd, "@afk is not allowed on this map."); return true; } if( pc_isdead(sd) ) { clif->message(fd, "Cannot use @afk if you are dead."); return true; } //<- (10s)10000ms delay to edit look for conf/battle/player.conf search for prevent_logout if(DIFF_TICK(timer->gettick(),sd->canlog_tick) < battle->bc->prevent_logout) { clif->message(fd, "Failed to use @afk, please try again later."); return true; } if( map->list[sd->bl.m].flag.autotrade == battle->bc->autotrade_mapflag ) { if(map->list[sd->bl.m].flag.pvp || map->list[sd->bl.m].flag.gvg){ clif->message(fd, "You may not use the @afk maps PVP or GVG."); return true; } sd->state.autotrade = 1; sd->state.monster_ignore = 1; pc_setsit(sd); skill->sit(sd,1); clif->sitting(&sd->bl); clif->changelook(&sd->bl,LOOK_HEAD_TOP,471); // Change 471 to any headgear view ID you want. clif->specialeffect(&sd->bl, 234,AREA); if( afk_timeout ) { int timeout = atoi(message); status->change_start(NULL, &sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,afk_timeout) : afk_timeout)*60000,0); } channel->quit(sd); clif->authfail_fd(sd->fd, 15); } else clif->message(fd, "@afk is not allowed on this map."); return true;}/* triggered when server starts loading, before any server-specific data is set */HPExport void server_preinit (void) { /* makes map server listen to mysetting:value in any "battleconf" file (including imported or custom ones) */ /* value is not limited to numbers, its passed to our plugins handler (parse_my_setting) as const char *, * and thus can be manipulated at will */ addBattleConf("parse_my_setting",parse_my_setting);};/* Server Startup */HPExport void plugin_init (void){ script = GET_SYMBOL("script"); battle = GET_SYMBOL("battle"); status = GET_SYMBOL("status"); timer = GET_SYMBOL("timer"); skill = GET_SYMBOL("skill"); clif = GET_SYMBOL("clif"); channel = GET_SYMBOL("channel"); map = GET_SYMBOL("map"); pc = GET_SYMBOL("pc"); addAtcommand("afk",afk);}
  24. Upvote
    astralprojection reacted to Patskie in Ip to Mac Address Reward.   
    query_sql "SELECT `last_mac` FROM `login` WHERE `account_id` = '" + .@aid[ .@j ] + "' LIMIT 1", .@mac$;
  25. Upvote
    astralprojection reacted to zackdreaver in Client Translation Project   
    you have to put item_db.txt to "data" folder so it can read classnum.
     
    wew, i forgot, to update my last translate with classnum,
    i will update it later.
     
     
    edit:
    i made a PR with fixs
    https://github.com/ROClientSide/Translation/pull/15
×
×
  • Create New...

Important Information

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