Jump to content

CyberDevil

Members
  • Posts

    242
  • Joined

  • Last visited

Everything posted by CyberDevil

  1. Thanks Stolao, as always you are an exquisite and kind person! ?
  2. thank you @Aries, you have my highest esteem! ?
  3. If you use a linux server you can use SSMTP like this: https://unix.stackexchange.com/a/37061 On my server work perfectly with STARTTLS activated!
  4. Hi, I have this error (debug: true) when a merchant sell refined potions: This is my viewshop.php (original file without modifications): <?php if (!defined('FLUX_ROOT')) exit; ?> <h2><?php echo htmlspecialchars($title); ?></h2> <?php if ($vending): ?> <h3 style="text-align:right; margin:0; padding:0;font-style: italic"><img style="position:relative;top:7px;" src="<?php echo $this->iconImage(671) ?>?nocache=<?php echo rand() ?>" /> <?php echo $vending->title ?> </h3> <h4 style="text-align:right; color:blue; margin:0; margin-bottom:15px; "> <?php echo $vending->map; ?>, <?php echo $vending->x; ?>, <?php echo $vending->y; ?> </h4> <?php if ($vending_items): ?> <table class="horizontal-table"> <thead> <tr> <th>ID</th> <th>Name</th> <th>Refine</th> <th>Slot</th> <th>Card0</th> <th>Card1</th> <th>Card2</th> <th>Card3</th> <th>Price</th> <th>Amount</th> </tr> </thead> <tbody> <?php foreach ($vending_items as $item): ?> <tr> <td width="50" align="right" style=""> <?php if ($auth->actionAllowed('item', 'view')): ?> <a href="<?php echo $this->url('item', 'view', array("id" => $item->nameid)); ?>"><?php echo $item->nameid; ?></a> <?php else: ?> <?php echo $item->nameid ?> <?php endif ?> </td> <td> <img src="<?php echo $this->iconImage($item->nameid) ?>?nocache=<?php echo rand() ?>" /> <?php if ($auth->actionAllowed('item', 'view')): ?> <a href="<?php echo $this->url('item', 'view', array("id" => $item->nameid)); ?>"><?php echo $item->item_name; ?></a> <?php else: ?> <?php echo $item->item_name ?> <?php endif ?> <?php if ($item->char_name): ?> Of <?php echo $item->char_name ?> <?php endif; ?> </td> <td> <?php if ($item->refine > 0): ?> <img src="<?php echo $this->iconImage(613) ?>?nocache=<?php echo rand() ?>" /> <strong><?php echo $item->refine ?></strong> <?php endif; ?> <?php if ($item->card0 == 255 && intval($item->card1 / 1280) > 0): ?> <?php for ($i = 0; $i < intval($item->card1 / 1280); $i++): ?> Very <?php endfor ?> Strong <?php endif ?> <?php if ($item->card0 == 254 || $item->card0 == 255): ?> <?php if ($item->char_name): ?> <?php if ($auth->actionAllowed('character', 'view') && ($isMine || (!$isMine && $auth->allowedToViewCharacter))): ?> <?php echo $this->linkToCharacter($item->char_id, $item->char_name, $session->serverName) . "'s" ?> <?php else: ?> <?php echo htmlspecialchars($item->char_name . "'s") ?> <?php endif ?> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('UnknownLabel')) ?></span>'s <?php endif ?> <?php endif ?> <?php if ($item->card0 == 255 && array_key_exists($item->card1 % 1280, $itemAttributes)): ?> <?php echo htmlspecialchars($itemAttributes[$item->card1 % 1280]) ?> <?php endif ?> </td> <td> <?php if ($item->slots): ?> <?php echo htmlspecialchars(' [' . $item->slots . ']') ?> <?php endif ?> </td> <td> <?php if ($item->card0 && ($item->type == 4 || $item->type == 5) && $item->card0 != 254 && $item->card0 != 255 && $item->card0 != -256): ?> <?php if (!empty($cards[$item->card0])): ?> <?php echo $this->linkToItem($item->card0, $cards[$item->card0]) ?> <?php else: ?> <?php echo $this->linkToItem($item->card0, $item->card0) ?> <?php endif ?> <?php else: ?> <span class="not-applicable">None</span> <?php endif ?> </td> <td> <?php if ($item->card1 && ($item->type == 4 || $item->type == 5) && $item->card0 != 255 && $item->card0 != -256): ?> <?php if (!empty($cards[$item->card1])): ?> <?php echo $this->linkToItem($item->card1, $cards[$item->card1]) ?> <?php else: ?> <?php echo $this->linkToItem($item->card1, $item->card1) ?> <?php endif ?> <?php else: ?> <span class="not-applicable">None</span> <?php endif ?> </td> <td> <?php if ($item->card2 && ($item->type == 4 || $item->type == 5) && $item->card0 != 254 && $item->card0 != 255 && $item->card0 != -256): ?> <?php if (!empty($cards[$item->card2])): ?> <?php echo $this->linkToItem($item->card2, $cards[$item->card2]) ?> <?php else: ?> <?php echo $this->linkToItem($item->card2, $item->card2) ?> <?php endif ?> <?php else: ?> <span class="not-applicable">None</span> <?php endif ?> </td> <td> <?php if ($item->card3 && ($item->type == 4 || $item->type == 5) && $item->card0 != 254 && $item->card0 != 255 && $item->card0 != -256): ?> <?php if (!empty($cards[$item->card3])): ?> <?php echo $this->linkToItem($item->card3, $cards[$item->card3]) ?> <?php else: ?> <?php echo $this->linkToItem($item->card3, $item->card3) ?> <?php endif ?> <?php else: ?> <span class="not-applicable">None</span> <?php endif ?> </td> <td style="color:goldenrod; text-shadow:1px 1px 0px brown;"> <?php echo number_format($item->price, 0, ',', ' '); ?> z </td> <td> <?php echo $item->amount ?> </td> </tr> <?php endforeach ?> </tbody> </table> <?php else: ?> <p>No Items found. <a href="javascript:history.go(-1)">Go back</a>.</p> <?php endif ?> <?php else: ?> <p>No Vendor found. <a href="javascript:history.go(-1)">Go back</a>.</p> <?php endif ?> and specifically, the line 66 is this: <?php if ($auth->actionAllowed('character', 'view') && ($isMine || (!$isMine && $auth->allowedToViewCharacter))): ?> Can you advise me how to fix this bug?
  5. Thank you @Stolao for your answer. Another easy question... I would like to insert a sound effect (already present in my client) when a player receive the daily prize, but I receive a server-side error if I insert it like this: if(checkweight2(.@itms,.@qnts)){ for(.@x = 0; .@x < .@y; .@x++){ if(.Mode & 128) getitembound .@itms[.@x], .@qnts[.@x], .Bound_Mode; soundeffect "rareItem.wav",0; else getitem .@itms[.@x], .@qnts[.@x]; soundeffect "rareItem.wav",0; } This is the error: (06/13/2018 15:45:10) [ Error ] : script error on npc/custom/DailyReward_v2.txt line 147 parse_line: expect command, missing function name or calling undeclared function 142 : if(checkweight2(.@itms,.@qnts)){ 143 : for(.@x = 0; .@x < .@y; .@x++){ 144 : if(.Mode & 128) 145 : getitembound .@itms[.@x], .@qnts[.@x], .Bound_Mode; 146 : soundeffect "rareItem.wav",0; * 147 : 'e'lse getitem .@itms[.@x], .@qnts[.@x]; 148 : soundeffect "rareItem.wav",0; 149 : } 150 : } else { 151 : message strcharinfo(0),"[Daily Rewards]: You cannot carry the prizes, please use storage and relog."; 152 : continue; where can I put soundeffect "rareItem.wav",0; in your script for not having errors?
  6. ...the links in the txt file no longer work. Someone kept them on their pc?
  7. Can someone post their own collection of missions of the SQL Mission Table (mission_board) with some ready-made quests to get a starting point? Thank you very much for this...
  8. Hi all, a question about buffs... on my server I've been using the 2.1c version for a few days and everything seems to work fine, but I'd like some advice regarding the buffs. At the moment the list of buffs we use is as follows: setarray .BuffInfo ,198,1,60,10 // Day 1: +10% Hp for 60 Mins ,196,2,60,25 // Day 2: +25 Flee for 60 Mins ,260,3,60,1 // Day 3: Life Insurance for 60 Mins ,198,4,60,10 // Day 4: +10% Hp for 60 Mins ,196,5,60,25 // Day 5: +25 Flee for 60 Mins ,260,6,60,1 // Day 6: Life Insurance for 60 Mins ,272,7,60,10 // Day 7: -10% reduction of skill cost for 60 Mins ,198,8,60,10 // Day 8: +10% Hp for 60 Mins ,196,9,60,25 // Day 9: +25 Flee for 60 Mins ,260,10,60,1 // Day 10: Life Insurance for 60 Mins ,198,11,60,10 // Day 11: +10% Hp for 60 Mins ,196,12,60,25 // Day 12: +25 Flee for 60 Mins ,260,13,60,1 // Day 13: Life Insurance for 60 Mins ,272,14,60,10 // Day 14: -10% reduction of skill cost for 60 Mins ,198,15,60,10 // Day 15: +10% Hp for 60 Mins ,196,16,60,25 // Day 16: +25 Flee for 60 Mins ,260,17,60,1 // Day 17: Life Insurance for 60 Mins ,198,18,60,10 // Day 18: +10% Hp for 60 Mins ,196,19,60,25 // Day 19: +25 Flee for 60 Mins ,260,20,60,1 // Day 20: Life Insurance for 60 Mins ,272,21,60,10 // Day 21: -10% reduction of skill cost for 60 Mins. ,198,22,60,10 // Day 22: +10% Hp for 60 Mins ,196,23,60,25 // Day 23: +25 Flee for 60 Mins ,260,24,60,1 // Day 24: Life Insurance for 60 Mins ,198,25,60,10 // Day 25: +10% Hp for 60 Mins ,196,26,60,25 // Day 26: +25 Flee for 60 Mins ,260,27,60,1 // Day 27: Life Insurance for 60 Mins ,272,28,60,10 // Day 28: -10% reduction of skill cost for 60 Mins ,198,29,60,10 // Day 29: +10% Hp for 60 Mins ,196,30,60,25 // Day 30: +25 Flee for 60 Mins ,260,31,60,1; // Day 31: Life Insurance for 60 Mins Some of these buffs, however, do not have a status icon (as it has "Life Insurance" for example) and instead of creating custom status icons (which requires too much work and time for me) I prefer to replace the buffs without the icons with other buffs that have a default status icon already working. Can you suggest me some buffs using the status icons? This is the information of my client: kRO client 2017-06-29 Ragexe 2015-11-04a (diffed) Just for general information these are our daily rewards (psd by gangmusic )
  9. Also for me don't work the hair style #56 female... My client use the same ragexe diffed (2015-11-04aRagexe.exe), but it's very strange because if I select this hair style #56 all work without crash and problems, also if I make another colour (I have 33 colours, customs and officials)... but when I exit and rejoin in the game, my client crash in the selection character window ("Client not responding!")! Very strange!
  10. Hi everyone, I inform you that everything has always worked and that months have not updated FluxCP and no changes have been made to the php code in recent weeks, but for some days the "WebHook" system of Discord does not work anymore via FluxCP, specifically until a few days ago if a user sent a support ticket from FluxCP, in the GM room on Discord appeared the message that a ticket had been opened, same thing for sending the "web commands" as a result of the settings of the file "/config/application.php" as follows: // Discord Webhooks 'DiscordUseWebhook' => true, 'DiscordWebhookURL' => 'https://discordapp.com/api/webhooks/*MY_SERVER*/*MY_WEBHOOK_CODE*', 'DiscordSendOnRegister' => true, 'DiscordSendOnNewTicket' => true, 'DiscordSendOnWebCommand' => true, 'DiscordSendOnMarketing' => true, For example the error that gives me just a "web command" sending is the following (same error when send "thicket support"): This is the file "discordwebhook.php" from GitHub: https://github.com/rathena/FluxCP/blob/master/lib/functions/discordwebhook.php I am 100% sure that FluxCP side we have not made any changes to php files and given the recent changes to the "Privacy Policy" in Europe, we think there has been some change on the servers of Discord but I do not know where to get informations. Does anyone else have this same problem or do you know how to solve it?
  11. Does anyone know how to implement the summoner/doram to display it with ROChargenPHP?
  12. Hi, it's normal that i see this witout any players in the list?!?
  13. *BUMP bAddMonsterIdDropItem does not work for all the items that use it!
  14. sorry if i replay at this topic but I have a best solution that for me work with the last version 1.6c: search prontera,164,203,6 script Quest Shop#1 998,{ callfunc "qshop"; } and for example replace with different NPCs/coords, like: prontera,164,203,6 script Quest Shop#1 998,{ callfunc "qshop", 1; } prontera,166,203,6 script Quest Shop#2 998,{ callfunc "qshop", 2; } prontera,168,203,6 script Quest Shop#3 998,{ callfunc "qshop", 3; } the <shop ID> is the number of the NPC that you want have quests/items, like: // Quests from NPC 1 Add(1,5022,1,0,0,7086,1,969,10,999,40,1003,50,984,2); Add(1,5032,1,0,0,1059,250,2221,1,2227,1,7063,600); Add(1,5027,1,0,0,2252,1,1036,400,7001,50,4052,1); Add(1,5045,1,0,0,2252,1,1054,450,943,1200); // Quests from NPC 2 Add(2,1224,1,0,0,7297,30,969,10,999,50,714,10); Add(2,1225,1,0,0,7292,30,969,10,999,50,714,10); // Quests from NPC 3 Add(3,531,1,3,0,512,1,713,1); Add(3,532,1,3,0,513,1,713,1); Add(3,533,1,3,0,514,1,713,1); Add(3,534,1,3,0,515,1,713,1); someone more experienced can check if I have write errors? I tested it on my server and I do not have any type of console error (ssh)
  15. Edit: I have read that I need to use an URL like this: http://www.mysite.com/?module=donate&action=notify ...but if I use mod_rewrite option??? ('UseCleanUrls' => true,)
  16. Hi, I think this information help me, tnx a lot... but what should be written in the IPN field of Paypal?
  17. Everything seems to work fine but if I try to delete a site I get this error before confirming (debug mode is active): When I press "Yes", this happens: This is my /addons/voteforpoints/themes/default/voteforpoints/delete.php <?php if (!defined('FLUX_ROOT')) exit; ?> <br/> <h2>Delete Voting Site - Administrator</h2> <?php if(count($error)>0){ ?> <h3>Error:</h3> <ul> <?php foreach($error as $err){ ?> <li><?php echo $err; ?></li> <?php } ?> </ul> <?php } ?> <form action="<?php echo $this->url ?>&sid=<?php echo $site_id; ?>&return=edit_site" method="post" enctype="multipart/form-data" class="generic-form"> <table class="vertical-table" width="100%"> <tr> <th align="left"> <?php echo Flux::message('SITE_NAME_LABEL'); ?> </th> <td> <?php echo $vp->site_name; ?> </td> </tr> <tr> <th align="left"> <?php echo Flux::message('ADDRESS_LABEL'); ?> </th> <td> <?php echo $vp->address; ?> </td> </tr> <tr> <th align="left"> <?php echo Flux::message('BANNER_LABEL'); ?> </th> <td> <?php if($vp->banner_url==""): ?> <i><?php echo Flux::message('BANNER_IS_UPLOADED'); ?>. <?php endif; ?> <?php if($vp->banner_url!=""): ?> <?php echo $vp->banner_url; ?> <?php endif; ?> </td> </tr> <tr> <th align="left"> <?php echo Flux::message('BLOCK_TIME_LABEL'); ?> </th> <td> <?php echo $hours.":".$minutes.":00"; ?> </td> </tr> <tr> <th align="left"> <?php echo Flux::message('POINTS_LABEL'); ?> </th> <td> <?php echo $vp->points; ?> pt('s) </td> </tr> <tr> <td colspan="2" align="right"> Are you sure you want to delete this:? <input type="submit" name="Delete" id="Delete" value="Yes"/> &nbsp;&nbsp;| &nbsp; <a href="index.php?module=voteforpoints&action=list">No</a> </td> </tr> </table> </form> <script type="text/javascript" language="javascript"> $('#id_cbox_banner_url').change(function(){ var checked = $(this).attr('CHECKED'); $('#id_banner_url').attr('DISABLED',!checked); $('#id_banner_upload').attr('DISABLED',!!checked); }); </script> Any help please?
  18. Good morning AnnieRuru, I wanted to ask you if there is an addon or php file to see a players ranking and/or the list of missions from FluxCP or from any web page?! (example like this old Mission Board script) Thanks again for your time
  19. [Error]: buildin_getarg: Index (idx=4) out of range (nargs=4) and no default value found
  20. Works perfectly, but can you link me what I need for the Doram/Summoner to avoid the client crash? It works well with all classes but when I try Doram, obviously I will miss some palettes or I do not know what, but the client crashes. Thank you
  21. harboro1,128,200,6 script Platinum Skill Pusher 779,{ mes "[Platinum Skill Pusher]"; mes "Pssst, ehy you!"; mes "Hand me ^0000FF100.000 zeny^000000 and you'll avoid a boring training, none will know!"; mes "Man, there's no refund... are you sure you want it?"; next; if (select("Yes Please:No") == 2) { mes "[Platinum Skill Pusher]"; mes "Have a nice day... dude!"; close; } switch (Class) { case Job_Swordman: if (JobLevel < 35){ mes "[Platinum Skill Pusher]"; mes "Hey Dartagnan, your job level is too low, you must to be minimum Job Level 35 do not waste my time!"; close; } if (getskilllv(144) && getskilllv(145) && getskilllv(146)) { mes "[Platinum Skill Pusher]"; mes "Hey Swordy, you already have them, do not waste my time!"; close; } break; case Job_Mage: if (getskilllv(157)) { mes "[Platinum Skill Pusher]"; mes "Hey Harry Potter, you already have them, do not waste my time!"; close; } break; case Job_Archer: if (getskilllv(147) && getskilllv(148)) { mes "[Platinum Skill Pusher]"; mes "Hey Robin Hood, you already have them, do not waste my time!"; close; } break; case Job_Acolyte: if (getskilllv(156)) { mes "[Platinum Skill Pusher]"; mes "Hey His Holiness, you already have them, do not waste my time!"; close; } break; case Job_Merchant: if (getskilllv(153) && getskilllv(154)&& getskilllv(155)) { mes "[Platinum Skill Pusher]"; mes "Hey Amazon, you already have them, do not waste my time!"; close; } break; case Job_Thief: if (getskilllv(149) && getskilllv(150) && getskilllv(151) && getskilllv(152)) { mes "[Platinum Skill Pusher]"; mes "Hey Lupin, you already have them, do not waste my time!"; close; } break; case Job_Knight: if (getskilllv(1001)) { mes "[Platinum Skill Pusher]"; mes "Hey Don Quixote, you already have them, do not waste my time!"; close; } break; case Job_Wizard: if (getskilllv(1006)) { mes "[Platinum Skill Pusher]"; mes "Hey Gandalf, you already have them, do not waste my time!"; close; } break; case Job_Hunter: if (getskilllv(1009)) { mes "[Platinum Skill Pusher]"; mes "Hey Legolas, you already have them, do not waste my time!"; close; } break; case Job_Priest: if (getskilllv(1014)) { mes "[Platinum Skill Pusher]"; mes "Hey Messiah, you already have them, do not waste my time!"; close; } break; case Job_Blacksmith: if (getskilllv(1012) && getskilllv(1013)) { mes "[Platinum Skill Pusher]"; mes "Hey Metal Head, you already have them, do not waste my time!"; close; } break; case Job_Assassin: if (getskilllv(1003) && getskilllv(1004)) { mes "[Platinum Skill Pusher]"; mes "Hey Fake Ninja, you already have them, do not waste my time!"; close; } break; case Job_Crusader: if (getskilllv(1002)) { mes "[Platinum Skill Pusher]"; mes "Hey Holy Tin Can, you already have them, do not waste my time!"; close; } break; case Job_Sage: if (getskilllv(1007) && getskilllv(1008) && getskilllv(1017) && getskilllv(1018)&& getskilllv(1019)) { mes "[Platinum Skill Pusher]"; mes "Hey Bookworm, you already have them, do not waste my time!"; close; } break; case Job_Bard: if (getskilllv(1010)) { mes "[Platinum Skill Pusher]"; mes "Hey Tom Jones, you already have them, do not waste my time!"; close; } break; case Job_Dancer: if (getskilllv(1011)) { mes "[Platinum Skill Pusher]"; mes "Hey Beyonce, you already have them, do not waste my time!"; close; } break; case Job_Monk: if (getskilllv(1015)&& getskilllv(1016)) { mes "[Platinum Skill Pusher]"; mes "Hey Rocky, you already have them, do not waste my time!"; close; } break; case Job_Alchemist: if (getskilllv(238)) { mes "[Platinum Skill Pusher]"; mes "Hey Heisenberg, you already have them, do not waste my time!"; close; } break; case Job_Rogue: if (getskilllv(1005)) { mes "[Platinum Skill Pusher]"; mes "Hey Hobo, you already have them, do not waste my time!"; close; } break; default: break; } if( Zeny <100000 ) { mes "...ehy dude, you need ^0000FF100.000 zeny^000000,"; mes "ask them to mom!"; close; } set Zeny,Zeny -100000; callfunc "F_GetPlatinumSkills"; mes "[Platinum Skill Pusher]"; mes "Dehee thanks man...lazy people like you makes me rich buahah!"; close; } It looks like it works but I accept tips to improve it ... NPC is also quite "bastard"! XD
  22. Hallo Annie, thanks for updating on this topic http://herc.ws/board/topic/15578-mission-board-only-once-doesnt-work/ ... I just wanted to let you know that I had problems giving my GMs with group_id 10 to manage the missions, so I replaced (getgmlevel () <99) with (getgroupid () < 10) and now it works well for me. Forgive me but I'm not a good coder and I could not in any way make it work for my GMs (without gropid_id 99), so I do not know if I did the right thing but that works for what I needed
  23. ok, I managed to implement it alone in Fluxcp (and I'm not a coder!)... I leave the simple instructions if someone who is not as skilled as me and needs it: Open "/themes/default/character/view.php" Search <img src="<?php echo $image ?>" /> Replace with <img src="/ROChargenPHP/character/<?php echo htmlspecialchars($char->char_name) ?>" />
  24. I installed and configured it... it works very well! +1 Can you tell me a topic on how to implement this on fluxcp so that every player can have a preview of the characters!?!
  25. From Hercules board: update data preview new rodex translator texture/유저인터페이스/basic_interface/rodexsystem/renewal/btn_listtab_search_out.bmp texture/유저인터페이스/basic_interface/rodexsystem/renewal/btn_listtab_search_over.bmp texture/유저인터페이스/basic_interface/rodexsystem/renewal/btn_listtab_search_press.bmp btn_listtab_search_out.bmp btn_listtab_search_over.bmp btn_listtab_search_press.bmp
×
×
  • Create New...