Jump to content

tedexx

Members
  • Content Count

    79
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by tedexx


  1. 16 hours ago, askafreedom said:

    Hello !
    Sorry about my question (lol) but.
    Where in the conf is the option to enable rare drop announce ? I'm searching for it for one hour now xD
    Thanks a lot !

    https://github.com/HerculesWS/Hercules/blob/e9daf0e172d5441ec6d264b4056db4f7f3e5780a/doc/item_db.txt#L74

    Its on item_db now.

    DropAnnounce: true/false      (boolean, defaults to false)
    DropAnnounce: Enables global announcement of the selected item when dropped by monster.

     


  2. Trying to add support for navigateto() for custom maps (or even officials that doesnt have), but nothing. Already ran the naviluagenerator plugin by Haru (output successfully) and still nothing.

    Anyone knows what the exact lua files (and format) I need to modify to add a map to use in navigateto() or <NAVI>?


  3. I manage fix the problems above. Got the newest kRO grf and worked just fine. (not sure why a fresh and fully updated iRO grf wanst working tho)

    Having problem with hair palettes now, the files are found and loaded, but not applied to the hair. Any sugestions? (cloth palettes are fine)


  4. 15 hours ago, Dastgir said:

    You should always use multiple grf(I see you are using palette ~300, which is custom, so you need to put those grf too).

    About other, I guess ROChargen needs grf with specific version (0x200 afaik), though just check that in their docs. :)

    Checked know, every single grf loaded is 0x200.

    About the black head, its happening even using multiples grfs.


  5. got a fresh copy of ROCharGenPHP from KeyWorl, but having some problems with file loading from grf.

    I'm loading the same GRF I use in the game (and even checked with GRF Editor to make sure the files were there, and it was), but ROCharGen cant load the files.

    I tried with other grfs, same results. Using full updated iro grf.
    Every file the script acuse to not found, I checked and exists. Same path.

    /avatar/tedex - rendering avatar

    Spoiler

    1789dot.jpg


    /monster/1002 - rendering a poring

    Spoiler

    YnF0AFh.png

     

    Tested with multiples grfs, was able to load some files but got some other error.

    Spoiler

    IZpsJe5.png

     


  6. This will just encourage people making spam posts to increase their post count, and encourage creating other accounts to increase reputation. It makes everything cumbersome for everyone. You cannot and should not force people to contribute. You'll just end up driving away possible contributors to other projects (ie rAthena). Most people nowadays prefer to try first, then if they like it they come back and contribute. If people feel forced they just bail.

    Agree on every single word.


  7. 
    *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.

     


  8.  

    You could also emulate it in your scripts by adding some zeros to your numbers, ie

    .@percent = rand(10000);
    
    if (.@percent == 4273) {
        // 42.73%
    }
    

     

    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.


  9. 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;
    	}
    

  10. 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.


  11. Some of these should be fixed in https://github.com/Smokexyz/HerculesBG/commit/8c0d44fd2c2f897cc7eb40f925f5f461519b01ac

    Please test to confirm.

     

    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.

    Bnr20Ht.png

     

    2)

    vUPMf0v.png

     

    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.


  12.  

    What problem adding user? What problem with mysql?

     

    There's so much that can happen, you should provide more infos if you want help.

    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.

×
×
  • Create New...

Important Information

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