Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Foob

  1. Is it possible to remove the window name? And just show the web part itself?
  2. Try this (Reference Bootstrap) <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> on header.php <?php if ($message=$session->getMessage()): ?> <script type="text/javascript"> $(document).ready(function(){ $("#testModal").delay(2000).modal('show'); }); </script> <?php endif ?> The message will appear 2seconds after the document is ready.
  3. Check default theme and under header, you can find the line. Since its custom I don't know where to put it. But ideally, I would put it like a modal so that it will appear in-front of the theme.
  4. You are missing this definition on the theme <?php if ($message=$session->getMessage()): ?> The line above shows the message. If its a custom theme, make sure that you have a space for it or add a modal that will show once condition is met.
  5. Not sure but try this. Find SC_ANKLE in skill_block_check, add sc_end for the critical explosion and add check skill_id for body reloc + sc status of critical explosion.
  6. Tried the the same, it only opens the same window with the patcher. Doesn't open a new internet explorer. I only have edge, does this matter? How to make it open a default browser?
  7. Is it normal that if I add <a href="google.com" target="_blank">Click Me</a> in the bootstrap or page it won't work? It's not clickable in the exe.
  8. The answer is in post #1. Just read it carefully.
  9. I have did this already via php.ini and or via .htaccess setting date.timezone it still doesn't work. When V4P checks the time it still uses VPS Shared Hosting date which is in UTC. And to add, I cannot change the time of it since its a shared hosting. Fixed. Need to update SQL timezone.
  10. Hi, I'm having a difficulty setting the correct time for the vote for points and fluxcp. I have currently configured this application.php 'DateDefaultTimezone' => 'Asia/Singapore', However, my web-host server (shared hosting) is currently in UTC. The problem is that whenever I use VoteForPoints in the logs (database) it shows correct time (GMT+8 format). However, when the time already passed (timestamp_expire) is greater than the Singapore time I still can't vote. (Normally you should be able to vote). I found the problem where the shared hosting time which is in UTC is being used by the VPS. So if I set the interval for every vote to 8 hours, it will automatically add additional 8 hours since UTC is 00:00 while SGT is +08:00. What I already did: Force timezone via PHP Configuration to Asia/Singapore - via SO answer In application.php its also Asia/Singapore - Fluxcp default timezone config I've tried to google it but can't find any or I'm misreading something. P.S. I asked here in 3rd party support since the V4P is not a default flux function. If I'm wrong kindly move to proper forum.
  11. @DrakeSky no idea with pre-renewal.
  12. I thinks it's much better to tell if you're running on pre-re or renewal mode. But yeah, 2020-03-04RagexeRE or 2020-04-01 is a good choice when running on renewal. It works fine
  13. I have this problem when select menu has many entry such as 50+ menu. e.g. setarray [email protected]_list[0],1,2,3,4,5,6,up-to,100; [email protected] = getarraysize([email protected]_list); for( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) and so on.. In-game it will only appear up-to 50 and other will not show. Is there a way to paginate select lets say for example per page is 30 menu then next is 30?
  14. @Chaos92 You don't need to delete the .env file however you can add .htaccess to prevent public users to view it. Also, you don't need to use port :8000 if you didn't change the port on your http daemon. This link (external) might help you.
  15. If you're having problem after loading at map-server, it's either mapinfo_true/sak is missing and the font.
  16. Weird if the script is too long because if I remove one of the bvariablecastrate it has no error
  17. I have this bonus script. [email protected] = getrefine(); bonus bMdef,15; bonus bDelayrate,-10+(getskilllv("SU_NYANGGRASS")>4?-20:0); bonus2 bMagicAddClass,Class_Boss,getskilllv("SU_MEOWMEOW")>4?25:0; bonus2 bSkillAtk,"SU_CN_METEOR",[email protected]>8?50:([email protected]>6?25:10); bonus2 bSkillAtk,"SU_SV_STEMSPEAR",[email protected]>8?50:([email protected]>6?25:10); bonus2 bVariableCastrate,"SU_STOOP",[email protected]>8?-100:([email protected]>6?-50:0); bonus2 bVariableCastrate,"SU_LOPE",[email protected]>8?-100:([email protected]>6?-50:0); if([email protected] >=10 ){ autobonus " bonus bUseSPrate,-100; ",10,20000,BF_MAGIC|BF_SKILL; } bonus bHPGainValue,[email protected]*30; bonus bLongHPGainValue,[email protected]*30; bonus bMagicHPGainValue,[email protected]*30; bonus bSPGainValue,[email protected]*3; bonus bLongSPGainValue,[email protected]*3; bonus bMagicSPGainValue,[email protected]*3; if(getskilllv("SU_SPIRITOFLAND")>=1){ bonus2 bVariableCastrate,"SU_CN_METEOR",-4*(getskilllv("SU_CN_METEOR")+getskilllv("SU_SV_STEMSPEAR")+getskilllv("SU_NYANGGRASS")+getskilllv("SU_CN_POWDERING")+getskilllv("SU_SV_ROOTTWIST")); bonus2 bVariableCastrate,"SU_SV_STEMSPEAR",-4*(getskilllv("SU_CN_METEOR")+getskilllv("SU_SV_STEMSPEAR")+getskilllv("SU_NYANGGRASS")+getskilllv("SU_CN_POWDERING")+getskilllv("SU_SV_ROOTTWIST")); } And results an error below. However, if I use the same script removing one line of bonus2 bVariableCastrate,"SU_SV_STEMSPEAR",-4*(getskilllv("SU_CN_METEOR")+getskilllv("SU_SV_STEMSPEAR")+getskilllv("SU_NYANGGRASS")+getskilllv("SU_CN_POWDERING")+getskilllv("SU_SV_ROOTTWIST")); it works perfectly. What am I missing on the bonus? So the error only shows if I use 2 "bonus2 bVariableCastrate,sk,n;"
  18. Hello, Anyone has an updated proxy patch for newer client such as 2020-04-01? The current patch is making the client crash upon login or entering credentials. EnableProxySupport.qs I'm using the problematic patch attached above.
  19. @HaARiZz you are unable to find it in git right now since its closed already and has been pushed to master branch. However some of the updates that are from 16th anniversary onwards are available in PR such as update/rune_knight and etc. You just have to merge it with your current branch.
  20. Is it possible that player who have have global var such as #mute will not receive any announcement via announce "This is a test message",bc_all;
  21. Foob


    Hello, I'm trying to edit clif_broadcast function from clif.cpp to work with player who has var like example below. void clif_broadcast(struct block_list* bl, const char* mes, int len, int type, enum send_target target) { nullpo_retv(mes); if (len < 2) return; int lp = (type&BC_COLOR_MASK) ? 4 : 0; std::unique_ptr<unsigned char> buf(new unsigned char[4+lp+len]); WBUFW(buf.get(),0) = 0x9a; WBUFW(buf.get(),2) = 4 + lp + len; if (type&BC_BLUE) WBUFL(buf.get(),4) = 0x65756c62; //If there's "blue" at the beginning of the message, game client will display it in blue instead of yellow. else if (type&BC_WOE) WBUFL(buf.get(),4) = 0x73737373; //If there's "ssss", game client will recognize message as 'WoE broadcast'. memcpy(WBUFP(buf.get(), 4 + lp), mes, len); struct map_session_data* sd; nullpo_retv(sd); int counter = static_cast<int>(pc_readreg2( sd, MY_VAR )); if(counter < 1) clif_send(buf.get(), WBUFW(buf.get(),2), bl, target); } When I compile, there's a problem where it says: "uninitialized local variable 'sd' used" The server will start but come broadcast it will crash and will point out to the line. What am I missing? Is this possible?
  22. And it goes up. Taking chances where to sort this out.
  • Create New...

Important Information

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