Jump to content

hadiesyafiq

Members
  • Content Count

    160
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by hadiesyafiq


  1. On 6/3/2024 at 6:43 AM, KirieZ said:

    I can't give much details, but will give you some ideas:

     

    Most likely you have changed the part that sends the data from server to client, (clif->something), but once the player clicks something in the client, client tells the server the items it is buying, and server needs to process it. At that time, the code are probably still looking for cash.

     

    So it is like you are telling a lie to the client saying it they have N amount of cash (where N is Zeny) but once it tries to pay you go "hmm you don't have all that money -- because you are now looking for their cash"

     

    The communication from client to server also starts at clif.c, but those will be in clif->ParseXXX functions. You are probably missing this part.

     

    If you can't find which parse function is being used just by looking at their names, you can use packetlogger plugin (see staff plugins repo in hercules org) to log the packets coming and from their ID you can get to the right parse function.

     

    Hope this helps

    TQ for reply,yup I search it but I don't know which part that will deduct zeny..


  2. Hi all my brothers...long time not post any of questions,hope all of you fine and good as always...

     

    Ok my question is how can I change existing official cash shop on upper right corner to use zeny not use cash points or kafraPoints

     

    I already try to modify on clif.c from cash points to status.zeny,in cash shop it count zeny but when I buy it didn't effect the zeny...zeny not deducted after buy...can someone teach me what I need to change?

    IMG-20240526-WA0003.jpg


  3. hi all dev

    how to set my cash shop to use kafrapoints(@points) not use cashpoints(@cash)

    i already open db and cashshop_db.conf there no option to set default currency...

    i just need change currency from cashpoints to kafrapoints...

    what i ask is for cash shop not npc...npc i already know how to set the currency by using NST_CUSTOM

    thanks in advance...


  4. hi... i already apply the plugins but i got this error on map-server

     

    [Error]: script_rid2sd: fatal error ! player not attached!
    [Debug]: Function: setmapflag (2 parameters):
    [Debug]: Data: string value="prontera"
    [Debug]: Data: variable name='MF_LOADEVENT' index=0
    [Debug]: Source (NPC): map_name (invisible/not on a map)
    [Warning]: script_get_val: cannot access player variable 'MF_LOADEVENT', defaulting to 0
     


  5. 10 minutes ago, fTakano said:

    First, you need to set a variable for the F_Rand().

    .@Item = F_Rand(656, 657, 505, 645, 506, 14510);

    getitem .@Item, rand(1,1);

    announce "[Rika] : "+strcharinfo(PC_NAME)+" get "+getitemname(.@Item)+".",bc_all;

    thank you very much


  6. On 7/14/2021 at 2:44 AM, fTakano said:

    You need a parameter inside the `getitemname` script command.

    e.g. getitemname(Red_Potion)  will show "Red Potion".

    Ya the script is get random item..how to make it show the item they get?please help me about this script 🙏


  7. Hi all can someone help me to understand "getitemname" because i make this script is successful announce but the item name show "null"

    i make bet npc that will announce item that player get but annouce show "null"

    here my test script...

    prontera,151,183,6	script	Rika Exchange	4_F_KAFRA8,{
    	if (checkweight(Knife,1) == 0 || (MaxWeight - Weight) < 10000) {
    		mes "[Rika]";
    		close;
    	}
    	mes "[Rika]";
    	mes "Hi place your bet....";
    	next;
    	switch (select("2M Zeny", "5M Zeny", "10M Zeny")) {
    	case 1:
    		mes "[Rika]";
    		mes "Good good, let me just check";
    		next;
    		if (Zeny < 2000000)
    		{
    			mes "[Rika]";
    			mes "Sorry, but you lack some money...";
    			close;
    		}
    		set Zeny, Zeny - 2000000;
    		getitem F_Rand( 656, 657, 505, 645, 506, 14510 ), rand(1,1);
    		announce "[Rika] : "+strcharinfo(PC_NAME)+" get "+getitemname( "" )+".",bc_all;
    		close;
    	case 2:
    		mes "[Rika]";
    		mes "Good good, let me just check";
    		next;
    		if (Zeny < 5000000)
    		{
    			mes "[Rika]";
    			mes "Sorry, but you lack some money...";
    			close;
    		}
    		set Zeny, Zeny - 5000000;
    		getitem F_Rand( 656, 657, 505, 645, 506, 14510 ), rand(1,1);
    		announce "[Rika] : "+strcharinfo(PC_NAME)+" get "+getitemname( "" )+".",bc_all;
    		close;
    	case 3:
    		mes "[Rika]";
    		mes "Good good, let me just check";
    		next;
    		if (Zeny < 10000000)
    		{
    			mes "[Rika]";
    			mes "Sorry, but you lack some money...";
    			close;
    		}
    		set Zeny, Zeny - 10000000;
    		getitem F_Rand( 656, 657, 505, 645, 506, 14510 ), rand(1,1);
    		announce "[Rika] : "+strcharinfo(PC_NAME)+" get "+getitemname( "" )+".",bc_all;
    		close;
    
    	}
    OnPCLoadMapEvent:
    if (strcharinfo(3) == strnpcinfo(4))
        showevent QTYPE_QUEST2,1;
    end;
    }

    how to make is show item name not "null"


  8. hi all...how to get this effect...if we equip King_Tiger_Doll_Hat we can change to eddga auto when we attack or receive damage 

    but in hercules both pre or re don't have this script..

    how to implement this script?

    here i get from rathena...

     

    Id: 5497 AegisName: King_Tiger_Doll_Hat

    Name: King Tiger Doll Hat

    Type: Armor

    Buy: 20

    Weight: 400

    Defense: 6

    Slots: 1

    Jobs: All: true

    Novice: false

    SuperNovice: false

    Locations: Head_Top: true

    EquipLevelMin: 1

    Refineable: true

    View: 495

    Trade: Override: 100

    NoDrop: true

    Script: | bonus bStr,2; bonus bDex,2; bonus2 bAddRace,RC_Brute,10; bonus2 bAddRace,RC_Player_Doram,10; .@r = getrefine(); autobonus "{ bonus2 bSPLossRate,5,1000; bonus bBaseAtk,25*getrefine(); }",3*.@r,3000,BF_NORMAL,"{ active_transform 1115,3000; specialeffect2 EF_POTION_BERSERK; showscript \"Eddga Power !\"; }"; autobonus2 "{ bonus2 bSPLossRate,5,1000; bonus bBaseAtk,25*getrefine(); }",.@r,3000,BF_NORMAL,"{ active_transform 1115,3000; specialeffect2 EF_POTION_BERSERK; showscript \"Eddga Power !\"; }";

     

    can i just copy the script?but i think herc doesn't have script bonus2, autobonus2 and active_transform.


  9. 2 hours ago, SinjiPrasetio said:

    Well please check your char,c at arount line 3943
    You fill find this code

    static void char_parse_frommap_scdata_update(int fd) { int account_id = RFIFOL(fd, 2); int char_id = RFIFOL(fd, 6); int val1 = RFIFOL(fd, 12); int val2 = RFIFOL(fd, 16); int val3 = RFIFOL(fd, 20); int val4 = RFIFOL(fd, 24); short type = RFIFOW(fd, 10); if (SQL_ERROR == SQL->Query(inter->sql_handle, "REPLACE INTO `%s`" " (`account_id`,`char_id`,`type`,`tick`,`total_tick`,`val1`,`val2`,`val3`,`val4`)" " VALUES ('%d','%d','%d','%d','%d','%d','%d','%d','%d')", scdata_db, account_id, char_id, type, INFINITE_DURATION, INFINITE_DURATION, val1, val2, val3, val4) ) { Sql_ShowDebug(inter->sql_handle); } RFIFOSKIP(fd, 28); }

    
    static void char_parse_frommap_scdata_update(int fd)
    {
    	int account_id = RFIFOL(fd, 2);
    	int char_id = RFIFOL(fd, 6);
    	int val1 = RFIFOL(fd, 12);
    	int val2 = RFIFOL(fd, 16);
    	int val3 = RFIFOL(fd, 20);
    	int val4 = RFIFOL(fd, 24);
    	short type = RFIFOW(fd, 10);
    
    	if (SQL_ERROR == SQL->Query(inter->sql_handle, "REPLACE INTO `%s`"
    			" (`account_id`,`char_id`,`type`,`tick`,`total_tick`,`val1`,`val2`,`val3`,`val4`)"
    			" VALUES ('%d','%d','%d','%d','%d','%d','%d','%d','%d')",
    			scdata_db, account_id, char_id, type, INFINITE_DURATION, INFINITE_DURATION, val1, val2, val3, val4)
    	) {
    		Sql_ShowDebug(inter->sql_handle);
    	}
    	RFIFOSKIP(fd, 28);
    }

    check if this code is te same with your source, if your code is changed, please follow above code, and recompile.

    Hope this helps!

    Thank you very much sir @SinjiPrasetio it work...it different from mine just INFINITE_DURATION...mine just single word...


  10. On 7/5/2021 at 7:34 PM, SinjiPrasetio said:

    Hello,
    Are you made a source modification?
    This error should not occurs on fresh Hercules.

    Can you provide more information about this?

    Now i found this error will appear when character weight over 50%..but how to fix it?


  11. Hi all i just want make script for my new bet npc

    example : npc need 2 type of zeny 

    Pay 1m you can get 1 of this item

    apple 50%

    red potion 30%

    jellopy 10%

    Pay 2m you will get 1 of these

    Orange 50%

    Red herb 10%

    Green herb 70%

     

    Above is example of kind script that i need...that have 2 option and with percent chance...

     

    Thanks in advance


  12. Hi Herc...

    if possible to adjust or add

    can someone teach me how to add more lines or modified SRC to add or adjust announcement lines/words

    here script 

     

    example :

     

    announce "[Notice] : WARNING: READ BEFORE PLAYING A very small percentage of individuals may experience epileptic seizures when exposed to certain light patterns or flashing lights.  Exposure to certain patterns or backgrounds on a computer screen, or while playing video games, may induce an epileptic seizure in these individuals.  Certain conditions may induce previously undetected epileptic symptoms even in persons who have no history of prior seizures or epilepsy. 

    If you, or anyone in your family, have an epileptic condition, consult your physician prior to playing.  If you experience any of the following symptoms while playing a video or computer game-dizziness, altered vision, eye or muscle twitches, loss of awareness, disorientation, any involuntary movement, or convulsions-IMMEDIATELY discontinue use and consult your physician before resuming play.",bc_all;

     

    but not all will display....on official server so many line they can add...

     

    if can please guide me...

     


  13. On 7/18/2020 at 2:48 PM, Emistry said:

    Ever wonder why these random number show up in your RO game client?

    It's called Character Code (C-CODE), an old system that implemented around 2013.

     

    If you enable this system you'll be protected against fraud since it offers a unique additional protection for each player present in-game.

    BcWuMAd.png

     

    SWihnLj.png

     

    As you can see from the screenshot above, there exists an extra set of codes (It show up int he basic information window, and the right-click menu of player object).

    According to KRO, these codes doesn't repeat/overlap and its unique for every players. It offers a unique additional protection for each player present in-game.

     

    wAyGAU9.png

     

    When you right-click on any player object, the C-Code are shown at the last menu ([C-Code] : ### - ###)
    Its ranging from 000-000 ~ 999-999, around 1,000,000 set of codes. 

    However its not confirmed that the numbers won't repeat itself if there are multiple server setup.

     

    YSzF8XH.png

     

    Click on the menu, the C-Code will be copied to clipboard.

    Di7242J.jpg

     

    Open up any text editor or notepad, press on CTRL + V, the codes will be shown in the editor.

    Notes: If you copied the codes, and take a screenshot right away, the codes will be removed from the clipboard.

     

    hVt27ln.png

     

    The codes are shown display behind character's level in the trading window.

     

    Sample of different C-Code for different characters.

    3Pj9ZQt.png GJO8fwO.png

     

    References: home.gamer.com.tw

    how to enable this system sir?

×
×
  • Create New...

Important Information

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