Jump to content

Mission

Members
  • Content Count

    32
  • Joined

  • Last visited


Reputation Activity

  1. Upvote
    Mission reacted to theadellie in does anyone know?   
    I've never tried making a sky map myself, but if i were you, i would try replacing with a hex string of the same length as the original.
    If you change your map name to pvp_valk1 and put that in the client, does it help?
  2. Upvote
    Mission reacted to Olrox in does anyone know?   
    You must use the same amount of letters to allow the sky effect into another map with that hex editon. Please for renaming your map files in case you need to, you must rename it with browedit.
     
    Alternatively, there is a weather plugin for allowing weather effects to custom maps, without replacing the original effects Here
  3. Upvote
    Mission reacted to Dastgir in how to fix this one?   
    Use updated lua files. this error appears if you are using outdated lua files
    specifically This Folder: https://github.com/ROClientSide/Translation/tree/master/Data/luafiles514/lua%20files/effecttool
  4. Upvote
    Mission reacted to N e s s in Is this possible? How?   
    click your setup.exe then check mouse exclusive and save it
  5. Upvote
    Mission reacted to Nameless2you in cant move after.   
    Just do
     
    mes "[Apprentice Craftsman]";mes "Quite of an adventurer huh? Well, shall we?";specialeffect2 EF_MAPPILLAR;if(countitem(7227) < 50 || countitem(6242) < 1){        mes "[Apprentice Craftsman]";        mes "Sorry, You dont have the requirements.";}close;
  6. Upvote
    Mission reacted to jaBote in Music Player NPC / DJ   
    Now I realise I've maybe been too short on that explanation. I'll add a sample script of nested menus to elaborate a bit:
     
    prontera,119,199,4 script DJ with categories 985,{ mes "Hey, I can play a song for you."; mes "What category do you want to browse?"; switch(select("Rock:Jazz:Rhythm and Blues:HipHop:Nevermind")) { // a : means a new category on a select. case 1: // Rock mes "Select song"; switch(select("Rock 1:Rock 2:Rock 3:Nevermind")) { case 1: playBGMall "Your Rock 1 BGM","prontera"; break; case 2: playBGMall "Your Rock 2 BGM","prontera"; break; case 3: playBGMall "Your Rock 3 BGM","prontera"; // No break needed // No default case, so this won't do anything and go to the NPC ending. } break; // Directly finishes the switch statement. if not present this will also trigger case 2 and followings. case 2: // Jazz mes "Select song"; switch(select("Jazz 1:Jazz 2:Jazz 3:Nevermind")) { case 1: playBGMall "Your Jazz 1 BGM","prontera"; break; case 2: playBGMall "Your Jazz 2 BGM","prontera"; break; case 3: playBGMall "Your Jazz 3 BGM","prontera"; // No break needed // No default case, so this won't do anything and go to the NPC ending. } break; case 3: // R&B mes "Select song"; switch(select("R&B 1:R&B 2:R&B 3:Nevermind")) { case 1: playBGMall "Your R&B 1 BGM","prontera"; break; case 2: playBGMall "Your R&B 2 BGM","prontera"; break; case 3: playBGMall "Your R&B 3 BGM","prontera"; // No break needed // No default case, so this won't do anything and go to the NPC ending. } break; case 4: // HipHop mes "Select song"; switch(select("HipHop 1:HipHop 2:HipHop 3:Nevermind")) { case 1: playBGMall "Your HipHop 1 BGM","prontera"; break; case 2: playBGMall "Your HipHop 2 BGM","prontera"; break; case 3: playBGMall "Your HipHop 3 BGM","prontera"; // No break needed // No default case, so this won't do anything and go to the NPC ending. } break; default: // Case 5 or any other not observed in that menu mes "OK, I'll not play anything"; // Break not needed in the last case } mes "cya!"; close;}  
    For more info about the commands used here, please refer to doc/script_commands.txt.
    Hope this helped you a bit more.
  7. Upvote
    Mission reacted to Patskie in looking for card seller   
    Sample ( a shop selling poring card for 500 zeny and fabre card for 1000 zeny ) :
    prontera,150,150,0 shop Sample 100,4001:500,4002:1000 Reference ( https://raw.github.com/HerculesWS/Hercules/master/doc/script_commands.txt ) : 
    ** Define a shop/cashshop NPC.-%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...}<map name>,<x>,<y>,<facing>%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...}This will define a shop NPC, which, when triggered (which can only be doneby clicking) will cause a shop window to come up. No code whatsoever runsin shop NPCs and you can't change the prices otherwise than by editing thescript itself (no variables even exist at this point of scripting, sodon't even bother trying to use them).The item id is the number of item in the 'item_db.txt' database. If Priceis set to -1, the 'buy price' given in the item database will be used.Otherwise, the price you gave will be used for this item, which is how youcreate differing prices for items in different shops.You can alternatively use "cashshop" in place of "shop" to use the CashShop interface, allowing you to buy items with special points (Currentlystored as account vars in global_reg #CASHPOINTS and #KAFRAPOINTS). Thistype of shop will not allow you to sell items at it, you may only purchaseitems here. The layout used to define sale items still count, and"<price>" refers to how many points will be spent purchasing the them.
  8. Upvote
    Mission reacted to jaBote in Music Player NPC / DJ   
    Just make another menu with switch(select("Your menu"))
  9. Upvote
    Mission reacted to Mhalicot in help me please   
    No problem.. remember the syntax.. 
     
    0 = Healing item. 11 =  Usable with delayed consumption (item is lost from inventory after selecting a target, for use with skills and pet lures)     for complete syntax view it on doc/item_db.txt
  10. Upvote
    Mission reacted to Mhalicot in help me please   
    610,Leaf_Of_Yggdrasil,Yggdrasil Leaf,0,100,1,0,,,,,0xFFFFFFFF,63,2,,,,,,{ itemskill "ALL_RESURRECTION",1; },{},{}
     
    replace it with 
     
    610,Leaf_Of_Yggdrasil,Yggdrasil Leaf,11,4000,,100,,,,,0xFFFFFFFF,63,2,,,,,,{ itemskill "ALL_RESURRECTION",1; },{},{}
     
    HIt  if its work.
  11. Upvote
    Mission reacted to Emistry in How to automatically give prize after finishing endless tower?   
    announce getpartyname( getcharid(1) )+" finished endless tower",0;
  12. Upvote
    Mission reacted to Emistry in How to automatically give prize after finishing endless tower?   
    getpartymember getcharid(1),2;for( .@i = 0; .@i < $@partymembercount; set .@i,.@i + 1 ) getitem 512,100,$@partymemberaid[.@i];
  13. Upvote
    Mission reacted to Emistry in How to automatically give prize after finishing endless tower?   
    summon your last monster using this line
    monster "6@tower",156,147,"Nacht Sieger",1956,1,instance_npcname("#4th Beeper", instance_id())+"::OnMyMobDead"; OnMyMobDead: getitem 512,100; getitemn 512,100; donpcevent instance_npcname("Lost Soul#102", instance_id())+"::OnEnable"; end; the killer will receive 200 Apple..
  14. Upvote
    Mission reacted to Patskie in [Guide] How to setup hercules   
    There is an existing server installation guide made by Diconfrost VaNz on this topic but this is outdated. So let me give ample time to share my experience on how to install Hercules SVN on your local machine.
     
    1. To obtain hercules, refer to Ind's topic
    2. Go to conf/char-server.conf and look for the code below : 
    // Server Communication username and password.userid: s1passwd: p1  
    Set s1 and p1 to anything you want but take note of them as you will use them later on when you move to SQL portion of this installation.
     
    In my case, i will use patskie since it is my screen name.
    // Server Communication username and password.userid: patskiepasswd: patskie  
    3. Set your server name? Find this line also on your conf/char-server.conf. Change it to whatever you want : 
    // Server name, use alternative character such as ASCII 160 for spaces.// NOTE: Do not use spaces or any of these characters which are not allowed in //       Windows filenames /:*?"<>|//       ... or else guild emblems won't work client-side!server_name: Hercules  
    4. Remove // on the following code : 
    //login_ip: 127.0.0.1  
    //char_ip: 127.0.0.1 Note : 127.0.0.1 means localhost, local machine.
     
    5. Save and exit
    6. Now go to conf/map-server.conf
    7. Same to what you have did in conf/char-server.conf :
    //--------------------------------------------------------------//                     Configuration Info//--------------------------------------------------------------// Interserver communication passwords, set in account.txt (or equiv.)userid: patskiepasswd: patskie  
    8. Remove // on the following code :
    //char_ip: 127.0.0.1  
    //map_ip: 127.0.0.1  
    9. Once you're done. Save and exit.
    10. Now go to conf/inter-server.conf
    11. Set the following code :
    // Global SQL settings// overriden by local settings when the hostname is defined there// (currently only the login-server reads/obeys these settings)sql.db_hostname: 127.0.0.1sql.db_port: 3306sql.db_username: rootsql.db_password: ragnaroksql.db_database: herculessql.codepage:// MySQL Character SQL serverchar_server_ip: 127.0.0.1char_server_port: 3306char_server_id: rootchar_server_pw: ragnarokchar_server_db: hercules// MySQL Map SQL Servermap_server_ip: 127.0.0.1map_server_port: 3306map_server_id: rootmap_server_pw: ragnarokmap_server_db: hercules// MySQL Log SQL Databaselog_db_ip: 127.0.0.1log_db_port: 3306log_db_id: rootlog_db_pw: ragnaroklog_db_db: loglog_codepage:log_login_db: loginlog Note : Use 127.0.0.1 as ip because you will run these server on your local machine. Use root as the database id because by default MySQL workbench uses root as username. And finally ragnarok as database password which is configurable by users. Set map, char an sql database to hercules and set log database to loginlog 
     
    12. Once done, Save and exit
    13. Now go to src/common/mmo.h and find the following code :
    #ifndef PACKETVER #define PACKETVER 20120418#endif Change to : 
    #ifndef PACKETVER #define PACKETVER 20100730#endif Note : You can change 20120418 (2012-04-18) to whatever client-date you want. In my case i will use 2010-07-30 client (20100730).
     
    14. Save and exit.
    15. Now let's go to mysql part.
    16. Download MySQL workbench here. Why workbench? More convenient to use.
    17. Once you are finished downloading and installing. Download WAMP server here because workbench will not start functioning if you do not have WAMP server
    18. Once you are finished downloading and installing wampserver. Run it
    19. Open mysql workbench
    20. Add user and password into it. Follow this guide. Make sure you set username as root and password as ragnarok because this is the credentials located on your conf/inter-server.conf
    21. Create a server instance and connection. Just click New Connection for creating connection and click New Server Instance for creating a new server instance everything there are self explanatory
    22. More likely you must have the following : ( Check image below )

    23. At the left portion of the application. You can see schemas. Right click on one of them (test schema) and click on create schema
    24. Set the name of the schema to hercules because that is the credential we put in our inter-server
    25. Create also a schema log 
    26. Double click hercules schema
    27. Under file located at the bottom of the home button ( upper left to be exact ) click Open SQL Script and locate sql script on sql-files/main.sql, open it and execute ( you can find execute button at the upper portion of the text editor of mysql workbench it looks like a thunder xD )
    28. Double click log schema
    29. Under file located at the bottom of the home button ( upper left to be exact ) click Open SQL Script and locate sql script on sql-files/logs.sql, open it and execute ( you can find execute button at the upper portion of the text editor of mysql workbench it looks like a thunder xD )
    30. Once everything is set double click again hercules schema
    31. Execute the following code 
    SELECT * FROM login; 32. Change userid, user_pass to the credentials you have put on both char-server and map-server.conf
    33. Click apply.
    34. Once done, go back to your server files and compile everything using Microsoft Visual Studio 2009 or 2010 or 2012 
     
    Note : 
    Microsoft Visual Studio 2009 = Hercules-9
    Microsoft Visual Studio 2010 = Hercules-10
    Microsoft Visual Studio 2012 = Hercules-12
     
    35. Open it via C++
    36. In my case i am using MVS 2010, Highlight char-server, login-server, map-server, mapcache at the left portion of the application. Right click on it and click Build Selection
    37. Check image for successful compilation, Once done exit the application

    38. Now you're done! Run run-server.bat on main folder
     
     
    I hope this guide help other people who find it difficult to install hercules svn on your local machine. Actually this guide is not hard. I just divided the guide into small chunks so that people will understand more. If you think that any portion of installation is not included in my guide or maybe in some way not good or not correct then feel free to post it.
     
    Additional Notes : 
    - If you want other people to connect then you must port forward your router, or you can use other application like hamachi
    - If any error occur feel free to post it here. Make sure you will post it in a detailed manner. Post screenshot if possible
    - I include a diff client for 2010-07-30 since i use it in this guide
    2010-07-30-DIFF.rar
×
×
  • Create New...

Important Information

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