• Content count

  • Joined

  • Last visited

  • Days Won


tedexx last won the day on May 4

tedexx had the most liked content!

About tedexx

  • Rank
    Advanced Member

Recent Profile Visitors

785 profile views
  1. It seems that the file was not approved, but it also seems that Dastgir has already a working version. Try it out.
  2. - script autoCommand FAKE_NPC,{ end; OnPCLoginEvent: atcommand("@commands"); end; }
  3. *freeloop(<toggle>) Toggling this to enabled (true) allows the script instance to bypass the infinite loop protection, allowing your script to loop as much as it may need. Disabling (false) may warn you if an infinite loop is detected if your script is looping too many times. Please note, once again, that this isn't a solution to all problems, and by disabling this protection your Hercules server may become laggy or unresponsive if the script it is used in is performing lenghty loop operations. Example: freeloop(true); // enable script to loop freely //Be aware with what you do here. for (.@i = 0; .@i < .@bigloop; ++.@i) { dothis(); // will sleep the script for 1ms when detect an infinity loop to // let Hercules do what it need to do (socket, timer, process, // etc.) } freeloop(false); // disable for (.@i = 0; .@i < .@bigloop; ++.@i) { dothis(); // throw an infinity loop error } Add freeloop(true) to the beginning of your script.
  4. Nope, something like calculate the % of EXP a quest will give for the current basejob, or anything slightly more complex. It will always exists a workaround, but with float would be so much simpler.
  5. Whats the best way to make an operation using floating values?
  6. https://github.com/HerculesWS/Hercules/commit/1b0d3bd8f84db5b471646e0404193759afb908db
  7. You can simply do showevent(QTYPE_NONE); after you gave the quest. If what you want is the default behavior of quests, you should use questinfo() on OnInit event. *questinfo(<Quest ID>, <Icon> {, <Map Mark Color>{, <Job Class>}}) This is esentially a combination of questprogress() and showevent(). Use this only in an OnInit label. For the Quest ID, specify the quest ID that you want checked if it has been started yet. For Icon, use one of the following: No Icon : QTYPE_NONE ! Quest Icon : QTYPE_QUEST ? Quest Icon : QTYPE_QUEST2 ! Job Icon : QTYPE_JOB ? Job Icon : QTYPE_JOB2 ! Event Icon : QTYPE_EVENT ? Event Icon : QTYPE_EVENT2 Warg : QTYPE_WARG Warg Face : QTYPE_WARG2 (Only for packetver >= 20120410) Map Mark Color, when used, creates a mark in the user's mini map on the position of the NPC, the available color values are: 0 - No Marker 1 - Yellow Marker 2 - Green Marker 3 - Purple Marker When a user shows up on a map, each NPC is checked for questinfo that has been set. If questinfo is present, it will check if the quest has been started, if it has not, the bubble will appear. Optionally, you can also specify a Job Class if the quest bubble should only appear for a certain class. Example izlude,100,100,4 script Test 844,{ mes("[Test]"); mes("Hello World."); close(); OnInit: questinfo(1001, QTYPE_QUEST, 0, Job_Novice); end; }
  8. mes("You can <URL>Google<INFO>http://www.google.com/,800,600</INFO></URL> anything");
  9. Can be done with showevent() or questinfo(). Using showevent you have more control of the behavior. prontera mapflag loadevent prontera,150,150,3 script showevent 4_F_BRZ_WOMAN,{ end; OnPCLoadMapEvent: if(strcharinfo(3) == strnpcinfo(4)) { .@questInProgress = 1; showevent(.@questInProgress ? QTYPE_QUEST : QTYPE_NONE); } end; } If you dont succeed post it here, I 'll help you.
  10. The announces are on purpose, you can change the timing in the bg_common.txt script. at which part? bg_common.txt line 151 // Rotate every n seconds. OnTimer5000: Being 5000 the miliseconds of rotation and announces
  11. The announces are on purpose, you can change the timing in the bg_common.txt script.
  12. What error? Post the message here. I'm compiling with latest herc and its all good.
  13. Awesome, Smoke! I'm not home but tested Rush and it seems to be all good, the map crash is gone. I'll update here later on when test everything. Here some minor issues I found so far: 1) The first error was fixed in a pr I made some weeks ago and you merged, must have come back unintentionally. When I get home I'll pull another one. 2) 3) (no prints): @stopbg - after stopping it will not start again and throws this error. The same occurs if all players leave a bg (everyone logouts) [Error]: Memory manager: freed-data is changed. (freed in \$PATH\server\src\common\hpm.c line 342) [Info]: buildin_setbattleflag: battle_config flag 'battle_configuration/hBG_enabled' is now set to '0'. [Info]: buildin_setbattleflag: battle_config flag 'battle_configuration/hBG_enabled' is now set to '1'. When I get home I'll try to debug and push something to help you, seems to be pretty simple things.
  14. i typed in useradd and passwd to create new users in the command line but i guess i did not work for me cause it did nothing. For mysql, everything did not work like creating new database, creating new database username and password, and grant privileges. one more question: should i use putty or winscp setting up the server side? Putty is fine. About users: Which tutorial are you using? Did you added with "chown"? To check if the user was added type "compgen -u | grep $username_you_chose" - if return the name you typed the user exists. About mysql: dump the errors here.