Jump to content

hadiesyafiq

Members
  • Content Count

    156
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by hadiesyafiq


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


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


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


  4. 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 🙏


  5. 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"


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


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


  8. 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?


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


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

     


  11. 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?


  12. 1 hour ago, Daraen said:

    Have you tried the RessourceHacker software? I know that you can modify the executable icon on it. I personally use it to configure a personal launcher for my game server. Try to open an executable where the Ragnarok online icon is present in order to extract the icons to add them to your executable.

     

     

    By the way, my question is irrelevant, but how did you display a warning window like the one you see on your screen shoot, that interests me.

    EDIT: Found it. sorry for inconvenience!

    I already try use reshack but that one only change the exe icon not the title window icon...

    and for warning window is license.txt...just diff always show license...and need to use langtype 7/8

×
×
  • Create New...

Important Information

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