Jump to content

CyberDevil

Members
  • Posts

    242
  • Joined

  • Last visited

Everything posted by CyberDevil

  1. ah ... I didn't know, great ... thanks for the tip!
  2. I have fixed the instant respawn of the Wizard (ID 3764)... REPLACE: OnSummonWizard: monster "pay_d03_i",55,75,"Wizard of Truth",3764,1,strnpcinfo(0)+"::OnSummonWizard"; end; WITH: OnSummonWizard: addtimer 60000, strnpcinfo(3) + "::On60secs"; end; On60secs: monster "pay_d03_i",55,75,"Wizard of Truth",3764,1,strnpcinfo(0)+"::OnSummonWizard"; end; ...change "addtimer 60000" (are 60 seconds) with all seconds you need! p.s.: it's correct "strnpcinfo(3)" or "strnpcinfo(0)" in the addtimer command???
  3. I found on the web this very useful program to be able to compare 2 GRFs of kro and for example have a list of the only missing files to be able to make a client patch. The problem is that this program is all in Chinese... do you think it is possible to translate it via its DLL and using Google Translator? GrfCompare.rar
  4. Yes exactly, but I have already verified that it is not technically possible to do this, so I found a good solution (not very secure but working)... I created a symbolic link from the custom NPC folder (in rAthena) to a .txt file in an accessible folder via the web (under my url site). Then I created a simple FluxCP add-on accessible only to ADMIN where it is a simple PHP code for reading and editing the .txt file in a textarea field, similar to this one: <?php if($_POST['Submit']){ $open = fopen("npc.txt","w+"); $text = $_POST['update']; fwrite($open, $text); fclose($open); echo "File updated.<br />"; echo "File:<br />"; $file = file("npc.txt"); foreach($file as $text) { echo $text."<br />"; } }else{ $file = file("npc.txt"); echo "<form action=\"".$PHP_SELF."\" method=\"post\">"; echo "<textarea Name=\"update\" cols=\"50\" rows=\"10\">"; foreach($file as $text) { echo $text; } echo "</textarea>"; echo "<input name=\"Submit\" type=\"submit\" value=\"Update\" />\n </form>"; } ?> This is just an example of the code because in reality it is a bit different to be adapted to other functions of this my add-on, but basically it works like this... in fact if you try to put this php file in the same folder as the .txt file, you can still read it and edit it via web but you don't have any authentication and anyone can modify it, while under add-on you can take advantage of the FluxCP protection and authentication. Obviously, once the .txt file has been modified, the reload command must be launched.
  5. I wanted to know if it was possible to create a classic NPC vending but that takes the currency, the IDs of the items and the required cost, directly from an SQL table. For example, I have the "shop_npc" table with the fields called "currency","item1_id":"item1_cost","item2_id":"item2_cost" and so on for other items, respectively. The NPC must then have a query with variables that take the respective values in the above table, example (I apologize for the code taken at random but it is just an example) : prontera,100,100,3 itemshop SQL Shop 506, [email protected]$[[email protected]]+ , [email protected]_id$[[email protected]]+ : [email protected]_cost$[[email protected]]+ , [email protected]_id$[[email protected]]+ : [email protected]_cost$[[email protected]]; Original static code without sql function, here: prontera,100,100,3 itemshop Static Shop 506,6767,17681:5,9997:10; I don't know how to set up a script like that but it would be very interesting because I could develop a control panel via web (FluxCP/Addon) to make this NPC configurable to any GM/Admin, obviously launching the reload command in play after the table changes. Do you think this thing can be applied and do you know how to help me not being a good c++ coder? p.s.: I believe that the table creation query is like this: CREATE TABLE `shop_npc` ( `id` int(11) NOT NULL, `currency` int(11) NOT NULL, `item1_id` int(11) NOT NULL, `item1_cost` int(11) NOT NULL, `item2_id` int(11) NOT NULL, `item2_cost` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  6. - script GMLogin -1,{ OnPCLoginEvent: if(getgmlevel() > 60) { atcommand "@speed 0"; //auto speed atcommand "@hide"; //auto hide } end; } ...another question... it's possibile to have different speeds in different maps (towns)? How can I modified the script in post #1?
  7. Notice that in the Monsters Counting don't work, clicking on the sign the window appears to insert the correct number of mushrooms (reds or blacks), but nothing happens, not even an error message in the SSH console... I have tried with any number, even spamming but the script does nothing! And the mushrooms remain in the ground even you @reloadscript!
  8. Installed yesterday on the last rAthena version (a548f20) and all work...혻there is only a small error in the message that appears to the merchant after selling an item and closing the store remaining online (without @autotrade), which displays the gain minus the taxes even if the tax feature has not been activated... I have however solved by modifying the text of the message with a simple "With active tax, the gain was of XYZ", but in any case immediately after this text appears in the line below the real total gain without taxes... a minimum problem! �삂 @Easycore혻I had an "unhealthy" idea... in the future could we implement this exchange method also for the Buying Store System (https://irowiki.org/wiki/Buying_Store)?혻 It would be interesting to be able to have items searched for and exchange them for other currencies than Zeny
  9. I've already had this kind of error on the "announce" function in other custom scripts teased on this forum but it's the first time I've seen it appear by launching an official rAthena script... to be exact this: https://github.com/rathena/rathena/blob/master/npc/custom/events/devil_square.txt ...any suggestions to solve it? Maybe I can fix other custom scripts too
  10. missing 3d models: \data\model\gld2\domi1.rsm \data\model\gld2\domi2.rsm \data\model\gld2\luca_05.rsm \data\model\gld2\luca_09.rsm \data\model\gld2\tree7.rsm ...anyone have that files?
  11. @Alayne I have last rathena and i reciuved this error after I kill the 1st Baphomet (MVP): [17/May 19:49][Error]: buildin_callfunc: Function not found! [AddPoints] [17/May 19:49][Debug]: Source (NPC): astral_temple_main at [email protected] (1,1)
  12. @Alayne does not work with the latest version of rAthena
  13. Hi @Emistry, how can I get a static Campfire without countdown timer in the central square of Prontera like a NPC, so that players can recharge their energy by standing by? EDIT: I have make this simple script, correct me if you see error: prontera,155,178,4 script Campfire 10252,{ dispbottom "This beautiful bonfire quickly regenerates the HP and SP to anyone nearby!"; end; OnInit: OnTimer2000: initnpctimer; // areapercentheal "<mapname>",<x1>,<y1>,<x2>,<y2>,<%hp>,<%sp>; areapercentheal "prontera",151,174,159,182,5,5; end; } ...but with this I can't duplicate it easy in other cities! -.-
  14. same problem for me with an updated FluxCP version! My php and libraries version here: https://www.infinityro.it/verifica-php.php EDIT: I don't know if it can be used to identify the bug, but if I insert a wrong code (with the DebugMode on "true"), I get this error on the header: ...by entering a correct and working code, I receive this message but without errors on the header: (sorry for this double img, I can't delete it EHEHEHE!) XD
  15. nope... I think this issue can solve with GCC-5 but it's no more important for me... the server work perfectly also with this warning!
  16. in this directory "/addons/vending_ext/themes/", in addition to having the normal "default" folder, you must also have the folder with the name of your theme you are using, containing exactly the same files as the "default" folder... so you can also simply rename the "default" folder with the name of the theme you are using or copy and rename it.
  17. @wakefield21 you need the theme folder with the name of your theme... try to copy the folder in bold "/addons/vending_ext/themes/default" and rename with the name of your theme that you can see in "/themes/theme_name"
  18. I guess it's a bit too early but have you information to be able to update our clients with these new skills effects or do we have to wait for an update to the rAthena side?
  19. Hallo @FXFreitas, any update for this new hair styles?
  20. Thank you @crazyarashi, but in this case the variable ".chance = 3;" is it also affected by the server's drop rate? This option: // The rate at which equipment is dropped. item_rate_equip: 100 at: https://github.com/rathena/rathena/blob/master/conf/battle/drops.conf#L62
  21. in the future will it be possible to have a dll that supports this RE version? EDIT: thanks @Normynator , it is no longer necessary... I thought that the best solution is to use a compatible and more recent version, so I'll move on to the 20180621RE version
  22. Hallo @Normynator, I was sure I had the 2018-06-20 version but when I tried to run my diffed ragexe, I received these errors:
  23. I thought of including costumes among the mobs, but to avoid complicating my life I created this script that I haven't tested: - script Costume_Drop -1,{ OnNPCKillEvent: if ( rand( 10000 ) <= 3 ) { //0.03% drop rate [email protected]_id = F_Rand( 31236,20156,19524,20120,20394,20334,31178 ); //costume drop list announce "Congratulations to the player "+ strcharinfo(0) +" who, after killing a "+ getmonsterinfo( killedrid, MOB_NAME ) +" in "+ strcharinfo(3)", got a rare costume!",0,0x00FF00; getitem [email protected]_id,1; } With this script every monster on the server has a 0.03% chance of dropping one of the costumes on the list (I'm not sure it works!) And a global announcement is sent for congratulations. But now I thought that it is better to insert a specific costume for a specific mob as in this list: https://www.shining-moon.com/helheim/index.php/Costume_Drops#Costume_List (thanx @fr0sty123456789 for this idea!) In this case I could use the file "/rathena/db/mob_item_ratio.txt" with the simple structure "ItemID, Ratio, MonsterID" but so I would lose the global announcement... so I wanted to know if it was possible to modify this script from someone more experienced than me, to have the same function and structure with attached global announcement!?!
×
×
  • Create New...

Important Information

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