Jump to content

Chaos92

Members
  • Posts

    1553
  • Joined

  • Last visited

  • Days Won

    36

Posts posted by Chaos92

  1. 1 hour ago, jamesandrew said:

    It didn't work. I'm still getting same error.

      - Combos:
          - Combo:
              - Mastering_Card
              - Poring_Card
        Script: |
          bonus bCritical,3;
          if (getequiprefinerycnt(EQI_GARMENT) >= 8) {
             bonus bLuk,2;
             bonus bCritical,3;
          }
      - Combos:
          - Combo:
              - Mastering_Card
              - Poring_Card
        Script: |
          bonus bCritical,3;
          .@r = getequiprefinerycnt(EQI_GARMENT);
          if (.@r>=8) {
             bonus bLuk,2;
             bonus bCritical,3;
          }

    both didn't work

    what error ? And are u sure that getrefine error is from this line ? 

  2. 1 hour ago, jamesandrew said:

    How do you make card combo script for this?

    Poring Card
    [+Mastering Card]
    Critical Rate +3
    [Refine Rate +8 or higher]
    Addtional LUK +2
    Addtional Critical Rate +3

    item_combos.yml

      - Combos:
          - Combo:
              - Mastering_Card
              - Poring_Card
        Script: |
          bonus bCritical,3;
          if (getrefine()>7) {
             bonus bLuk,2;
             bonus bCritical,3;
          }

    I'm getting this error
    image.png.b9474468e36fcfb92c1c7039b4b3872c.png

    you didnt specify which part for the refine.

    Example :

          if (getequiprefinerycnt(EQI_HAND_R) >= 7) {
             autobonus "{ bonus bIgnoreDefClass,Class_Normal; }",1000,3000,BF_SHORT|BF_NORMAL;
          }

     

    • Like 1
  3. 24 minutes ago, someoneloveyou said:

    did you know why this ?, i try to search but not found....
    anyone can help me ?, i use latest version of Rathena & EnglishRe by IIIChrisIII, and using client 20200401.

    Cuplikan layar 2023-09-21 101526.png

    this is weapontable error. did u edit weapontable then since u use Chris Translation ?

  4. 2 hours ago, Echoes said:

    Hello again rAthena,

    Today I'm bringing you one problem I'm suffering from, which is related to character creation.

    Recently I've updated rAthena to lastest commit via GIT and just got rid of every error I saw on the console, but at the time of creating a new character, since I had to wipe old db and recreate it using new logs.sql & main.sql (as a sidenote I HAVEN'T TOUCHED \sql-files\upgrades yet, don't know how to apply them), but now when I try to create my new (and only character) my client crashes.

    I've suffered of something like this in the past and fixed it by adding new UI files of the character screen, so I think this is the same but for the character creation part now, and I couldn't find anything of the sorts on the forums.

    I'm running client 2021-11-03_Ragexe_1635926200 diffed with WARP, and this is the error log I'm getting:

      Hide contents
    Module Name: C:\Gravity\kRO\2021-11-03_Ragexe_1635926200_patched.exe
    Time Stamp: 0x61823a71 - Wed Nov  3 04:29:53 2021
    
    
    Exception Type: 0xc0000005
    
    0x00868eb1	2021-11-03_Ragexe_1635926200_patched.exe
    0x00c27a2f	2021-11-03_Ragexe_1635926200_patched.exe
    0x00846066	2021-11-03_Ragexe_1635926200_patched.exe
    0x00bb3c99	2021-11-03_Ragexe_1635926200_patched.exe
    0x00629def	2021-11-03_Ragexe_1635926200_patched.exe
    0x00bb1b80	2021-11-03_Ragexe_1635926200_patched.exe
    0x00bb1f1b	2021-11-03_Ragexe_1635926200_patched.exe
    0x00546792	2021-11-03_Ragexe_1635926200_patched.exe
    0x00634a9e	2021-11-03_Ragexe_1635926200_patched.exe
    0x008131aa	2021-11-03_Ragexe_1635926200_patched.exe
    0x0089a01b	2021-11-03_Ragexe_1635926200_patched.exe
    0x00c52c65	2021-11-03_Ragexe_1635926200_patched.exe
    0x770dfcc9	KERNEL32.DLL
    0x77747b1e	ntdll.dll
    0x77747aee	ntdll.dll
    
    eax: 0x00000003	ebx: 0x00000000
    ecx: 0x88055a00	edx: 0x88055a00
    esi: 0x0019f178	edi: 0x88055a01
    ebp: 0x0019f110	esp: 0x0019f0f4
    
    stack 0019f0f4 - 0019f4f4
    0019F0F4 : 6C F5 1D F2 03 00 00 00 00 00 00 00 00 00 00 00 
    0019F104 : C4 F1 19 00 F9 17 CD 00 FF FF FF FF D0 F1 19 00 
    0019F114 : 2F 7A C2 00 78 F1 19 00 03 00 00 00 AC F5 1D F2 
    0019F124 : 78 AA FC 15 0C AB FC 15 34 F2 19 00 34 F2 19 00 
    0019F134 : F0 C8 97 11 00 00 00 00 00 00 00 00 00 00 00 00 
    0019F144 : 01 00 00 00 00 00 00 00 1E 5E 72 77 00 00 00 00 
    0019F154 : 00 00 00 00 0C 00 00 00 C8 AA FC 15 0C 00 00 00 
    0019F164 : 80 F1 19 00 66 01 83 76 00 00 3D 01 00 00 00 00 
    0019F174 : 0C 00 00 00 00 AA FC 15 C8 AA FC 15 8C F1 19 00 
    0019F184 : 73 19 C5 00 00 00 00 00 0F 00 00 00 00 40 55 00 
    0019F194 : 0C 00 00 00 BC F5 1D F2 78 AA FC 15 00 00 00 00 
    0019F1A4 : 0F 00 00 00 00 AA FC 15 50 BC DC 15 98 F1 19 00 
    0019F1B4 : E4 F1 19 00 00 00 00 00 0F 00 00 00 AC F5 1D F2 
    0019F1C4 : F8 F1 19 00 D6 4A D4 00 03 00 00 00 04 F2 19 00 
    0019F1D4 : 66 60 84 00 34 F2 19 00 00 00 00 00 00 00 00 00 
    0019F1E4 : 03 00 00 00 00 00 00 00 00 00 00 00 78 F6 1D F2 
    
    Launch Info 
    0000 0000 0000 0000 0000 0000 0000 0000 
    0000 0000 0000 0000 0000 0000 0000 0000 
    0000 0000 0000 0000 0000 0000 0000 0000 
    0000 0000 0000 0000 0000 0000 0000 0000 
    
    Job : Novice
    
     835

     

    Obviously I have my kRO up-to-date too.

    I don't understand the meaning of the error so if anyone could enlight me on the matter I appreciate it too.

     

    Help please 🙂 and thanks!

    First, make sure your kRO is 2023 and above. And Chris Translation might help you, read the Wiki and also maybe can use the profiles that he share in his translation.

    https://github.com/llchrisll/ROenglishRE

  5. 3 hours ago, friomixx said:

    Hi All,

    I'm encountering below error messages after I diffed 2021-11-03 client using WARP.
    Can anyone help me how to solve this issues?
    image.png.9c640fdc81d1ea4bbe43d434d8149ae6.png

    image.png.fb256f6c5d1ee1810e1e04d0a3e02859.png

    image.png.55251cf846b15e297b39ed630ffc4863.png

    image.png.f11d9bb293dd16a515cc689791330f44.png

    image.png.b30d6b37cd67b89ff7efd687f7720186.png

     

    For the data and System folder, i've used the ones available from GitHub - llchrisll/ROenglishRE: An unofficial english translation project for Korea Ragnarok Online (kRO).
    where i copied the renewal folder and it was over written by the files from Pre-Renewal.

    I'm also using the default sclientinfo.xml

    <?xml version="1.0" encoding="euc-kr" ?>
    <clientinfo>
    	<desc>Ragnarok Client Information</desc>
    	<servicetype>korea</servicetype>
    	<servertype>sakray</servertype>
    	<connection>
    		<display>Local</display>
          		<address>127.0.0.1</address>
          		<port>6900</port>
          		<version>55</version>
          		<langtype>0</langtype>
    		<registrationweb>www.ragnarok.com</registrationweb>
    		<loading>
    			<image>loading00.jpg</image>
    			<image>loading01.jpg</image>
    			<image>loading02.jpg</image>
    			<image>loading03.jpg</image>
    			<image>loading04.jpg</image>
    			<image>loading05.jpg</image>
    			<image>loading06.jpg</image>
    		</loading>
    		<aid>
    			<admin>2000000</admin>
    		</aid>
       	</connection>
    </clientinfo>

    while below are the patches that i've selected.

    2021-11-03_Ragexe_1635926200_patched.exe_session.yml 3.56 kB · 0 downloads

    Chris have the profiles, use the profiles. or make sure u set it to the right file _EN and everything.

  6. 10 minutes ago, Echoes said:

    Didn't work, eastern type languages shrunk the size of the font too much regardless of the font size set on WARP, and western type languages did nothing to it, it still is too large.

    😭

    what do u mean by too large ? can u show something, and what size did u prefer ?

  7. 21 minutes ago, Echoes said:

    Rip haha you were right! Long ago diff with this option wouldn't change anything on those city broadcasts but now it does apparently
    image.png.fc1a2d4a86be35ac1245abe5912c29d7.png

    Sadly my neat characters are gone 😞 Font is too large for chat/equipment and such now haha

    Weird enough the font size when choosing new font by
    image.png.14a2ea737835089dabbc07b3d4df0610.png
    wont change anything ingame, do you have any idea how I can modify font size from now on? 🙀

    These are my clientinfo settings
     

    <servicetype>america</servicetype>
    <servertype>primary</servertype>
    <version>55</version>
    <langtype>1</langtype>

     

    try another langtype for example langtype 0.

    • Upvote 1
  8. 4 hours ago, Echoes said:

    Hello rAthena,

    The Client-side problem I'm having is, I recently updated to 2021-11-03_Ragexe_1635926200 and one thing I noted was the font of the cities on Display Map Name is small now, in contrast with my previous client version.
    image.png.8754b0e81cf4fd0c4a47697410d509aa.png

    The city name is too small to my linking, in contrast to previous client
    image.png.df5fdb58aa1e5af23dbb32f5faf63f0a.png
    From the internet, I'm too lazy to change client versions rn 😞

    It may have something to do with font size? I don't know really, help please 🙂 

     

    Same problem happens (small font) with, for example, Achievement announcements.

    Maybe try to play with your langtype in sclientinfo.xml ? or try default font if you diffed client with any specific font ?

  9. Hello, I'm sharing this project, since this might help someone who need to generate this easily.

    Right now, this project support custom file generator for :

    1. Custom headgear.
    2. Custom robe/garment.
    3. Custom weapon.
    4. Custom NPC.

    The required file generated depends on which generator that you used.

     

    The scenario on how to generate for custom headgear file 

    1. Maybe extract data\texture\유저인터페이스\item\  folder and u will have the listed one .BMP that u want to add.
    image.png.36cef2f8d22fa952d449731c6992f46a.png

    2. Select all the item u want to add, right click mouse and right click, copy as path. Then open notepad, paste it.

    image.png.842f75d6ca78d91a7dfd226f033a643c.png

    3. Get the only .BMP in list, so replace your directory path and replace all with blank/nothing . And lastly the " with blank/nothing. 

    image.thumb.png.2dee289afb3a2160d349814088ba6bfa.png

    So the result is as below.

    image.thumb.png.03e7e8e7db0d0102def865e949c40df4.png

    Copy all of it, insert in https://x-files.amirazman.my/customfilegenerator and change your :

    - Starting ItemID you want it to start with. Make sure the itemID is supported by your client.
    - Starting AccessoryID that you didnt use yet. Also make sure the final accessoryID didnt reach the maximum of your client can support/set.
    - Defense, so you can set all the defense in bulk.
    - Weight.
    - Slots.
    - Script. Insert any scripts or anything that you can replace all easily later on in itemdb and also custom_iteminfo.lua (yes, its generated inside the description).
    - Item Type for now only support headgears and costume headgears, I will add another item types soon if possible (yes, its generated inside the description). 

    image.png.ce15bd47f6bbf5c25b966da6025ef19a.png

    And click Generate.

     

    Download, extract, add it in your System folder and server file or create a patch or anything.

    You can access to this simple project here : https://x-files.amirazman.my/customfilegenerator.

    Let me know if you having issues and I'll update it if possible & have some leisure time to play with.

    • Upvote 1
    • Love 6
    • MVP 1
    • Like 2
  10. Hello, I'm sharing this project, since this might help someone who need to generate this easily.

    The file that generated = CheckAttendance_EN.lub & attendance.yml

    image.thumb.png.19a21c865cc082169004f2e1fb415f48.png

    Download, extract, add it in your System folder and server file or create a patch or anything.

    You can access to this simple project here : https://x-files.amirazman.my/attendance.

    Let me know if you having issues and Ill update it if possible & have some leisure time to play with.

    • Love 3
  11. Hello, I'm sharing this project, since this RO Login Screen Generator might help someone who need to generate this easily.

    The only allowed extension file that can be uploaded = .BMP, .JPG, and .JPEG and the max file size is 5MB with resolution 1024*768 (I recommend this).

    image.thumb.png.54b17e043f9d11154cf914d822f52e68.png

    As stated above, IDM can click DEL button to prevent downloading using IDM, or just disable the capture download from your current browser.

    Download, extract, add it in your GRF or create a patch or anything. Its already in korean encoding.

    You can access to this simple project here : http://x-files.amirazman.my/rolsg.

    Let me know if you having issues and Ill update it if possible & have some leisure time to play with.

     

    • MVP 2
  12. 6 hours ago, Cyborg said:

    i have a error for recompile i do no why missing here a code o simbol

    can you help me to fix it

    edrSUEX.jpg

    itemmap diff patch

    Index: doc/sample/npc_getitem_map.txt
    ===================================================================
    --- doc/sample/npc_getitem_map.txt	(revision 0)
    +++ doc/sample/npc_getitem_map.txt	(working copy)
    @@ -0,0 +1,24 @@
    +// Sample NPC to test the custom getitem_map script command
    +// Script and command created by Xantara
    +prontera,156,170,3	script	getitem_map test	120,{
    +	mes "input item id";
    +	next;
    +	input .@id;
    +	mes "input item amount";
    +	next;
    +	input .@amt;
    +	mes "input type:";
    +	mes "0=everyone, 1=party, 2=guild 3=bg";
    +	next;
    +	input .@t;
    +	//getitem_map .@id,.@amt,strcharinfo(3),.@t,((.@t==1) ? getcharid(1) : (.@t==2) ? getcharid(2) : getcharid(4));
    +	switch(.@t)
    +	{
    +		case 1:	set .@type_id, getcharid(1);	break;
    +		case 2:	set .@type_id, getcharid(2);	break;
    +		case 3:	set .@type_id, getcharid(4);	break;
    +	}
    +	getitem_map .@id,.@amt,strcharinfo(3),.@t,.@type_id;
    +	mes "done";
    +	close;
    +}
    Index: doc/sample/npc_getitem_map.txt
    ===================================================================
    --- doc/sample/npc_getitem_map.txt	(revision 0)
    +++ doc/sample/npc_getitem_map.txt	(working copy)
    
    Property changes on: doc/sample/npc_getitem_map.txt
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
    Index: doc/script_commands.txt
    ===================================================================
    --- doc/script_commands.txt	(revision 17062)
    +++ doc/script_commands.txt	(working copy)
    @@ -4259,6 +4259,34 @@
     
     ---------------------------------------
     
    +*getitem_map <item id>,<amount>,"<mapname>"{,<type>,<ID for Type>};
    +
    +This command will give a specific amount of specified items to the players on the specified map. 
    +
    +Works similarly to getitem but for multiple players on certain map.
    +Negative ID numbers also apply. However item name is currently not supported.
    +
    +Those parameters that are different from 'getitem' are:
    +	mapname     - Map name of the players to give the item(s) too
    +	type        - Optional.
    +				  Type	0 = everyone on the map (default) 
    +						1 = specific party and their members on the map
    +						2 = specific guild and their members on the map
    +						3 = specific battleground team and their members on the map
    +	ID for Type - Only needed if type is not 0
    +				  If type = 1, ID is Party ID
    +				  If type = 2, ID is Guild ID
    +				  If type = 3, ID is Battleground ID
    +
    +If type is given, party members who are offline or are not on the specific map do not get the item.
    +Same for guild members. If BG ID is not found, it will not give to any players.
    +
    +This transaction is logged if the log script generated transactions option is enabled.
    +
    +Created by Xantara
    +
    +---------------------------------------
    +
     *getnameditem <item id>,<character name|character ID>;
     *getnameditem "<item name>",<character name|character ID>;
     
    Index: src/map/atcommand.c
    ===================================================================
    --- src/map/atcommand.c	(revision 17062)
    +++ src/map/atcommand.c	(working copy)
    @@ -1297,8 +1297,117 @@
     }
     
     /*==========================================
    - *
    + * 0 = @itemmap <item id/name> {<amount>}
    + * 1 = @itemmap1 <item id/name> <amount>, <party name>
    + * 2 = @itemmap2 <item id/name> <amount>, <guild name>
    + * [Xantara]
      *------------------------------------------*/
    +ACMD_FUNC(itemmap)
    +{
    +	char item_name[100], party_name[NAME_LENGTH], guild_name[NAME_LENGTH];
    +	int amount, get_type = 0, flag = 0, get_count, i, map;
    +	struct item it;
    +	struct item_data *item_data;
    +	struct party_data *p;
    +	struct guild *g;
    +	struct s_mapiterator *iter = NULL;
    +	struct map_session_data *pl_sd = NULL;
    +
    +	nullpo_retr(-1, sd);
    +	
    +	memset(item_name, '\0', sizeof(item_name));
    +	memset(party_name, '\0', sizeof(party_name));
    +	memset(guild_name, '\0', sizeof(guild_name));
    +
    +	if (strstr(command, "1") != NULL)
    +		get_type = 1;
    +	else if (strstr(command, "2") != NULL)
    +		get_type = 2;
    +
    +	if (!message || !*message || 
    +		get_type == 0 && sscanf(message, "\"%99[^\"]\" %d", item_name, &amount) < 1 
    +					  && sscanf(message, "%99s %d", item_name, &amount) < 1 )
    +	{
    +		clif_displaymessage(fd, "Please, enter an item name/id (usage: @itemmap <item name or ID> {amount}).");
    +		return -1;
    +	}
    +	if ( get_type == 1 && sscanf(message, "\"%99[^\"]\" %d, %23[^\n]", item_name, &amount, party_name) < 2 
    +					   && sscanf(message, "%99s %d, %23[^\n]", item_name, &amount, party_name) < 2 )
    +	{
    +		clif_displaymessage(fd, "Please, enter an item name/id (usage: @itemmap1 <item id/name> <amount>, <party name>).");
    +		return -1;
    +	}
    +	if ( get_type == 2 && sscanf(message, "\"%99[^\"]\" %d, %23[^\n]", item_name, &amount, guild_name) < 2 
    +					   && sscanf(message, "%99s %d, %23[^\n]", item_name, &amount, guild_name) < 2 )
    +	{
    +		clif_displaymessage(fd, "Please, enter an item name/id (usage: @itemmap2 <item id/name> <amount>, <guild name>).");
    +		return -1;
    +	}
    +
    +	if ((item_data = itemdb_searchname(item_name)) == NULL &&
    +	    (item_data = itemdb_exists(atoi(item_name))) == NULL)
    +	{
    +		clif_displaymessage(fd, msg_txt(19)); // Invalid item ID or name.
    +		return -1;
    +	}
    +
    +	if (amount <= 0)
    +		amount = 1;	
    +
    +	map = sd->bl.m;
    +	
    +	memset(&it,0,sizeof(it));
    +	it.nameid = item_data->nameid;
    +	if(!flag)
    +		it.identify = 1;
    +	else
    +		it.identify = itemdb_isidentified(item_data->nameid);
    +
    +	if (!itemdb_isstackable(item_data->nameid))
    +		get_count = 1;
    +	else
    +		get_count = amount;
    +
    +	switch(get_type)
    +	{
    +		case 1:
    +			if( (p = party_searchname(party_name)) == NULL )
    +			{
    +				clif_displaymessage(fd, msg_txt(96)); // Incorrect name or ID, or no one from the party is online.
    +				return -1;
    +			}
    +			for( i=0; i < MAX_PARTY; i++ )
    +				if( p->data[i].sd && map == p->data[i].sd->bl.m )
    +					pc_getitem_map(p->data[i].sd,it,amount,get_count,LOG_TYPE_COMMAND);
    +			break;
    +		case 2:
    +			if( (g = guild_searchname(guild_name)) == NULL )
    +			{
    +				clif_displaymessage(fd, msg_txt(94)); // Incorrect name/ID, or no one from the guild is online.
    +				return -1;
    +			}
    +			for( i=0; i < g->max_member; i++ )
    +				if( g->member[i].sd && map == g->member[i].sd->bl.m )
    +					pc_getitem_map(g->member[i].sd,it,amount,get_count,LOG_TYPE_COMMAND);
    +			break;
    +		default:
    +			iter = mapit_getallusers();
    +			for (pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter)) {
    +				if( map != pl_sd->bl.m )
    +					continue;
    +				pc_getitem_map(pl_sd,it,amount,get_count,LOG_TYPE_COMMAND);
    +			}
    +			mapit_free(iter);
    +			break;
    +	}
    +
    +	clif_displaymessage(fd, msg_txt(18)); // Item created.
    +	return 0;
    +}
    +
    +/*==========================================
    + * itemreset
    + *------------------------------------------*/
     ACMD_FUNC(itemreset)
     {
     	int i;
    @@ -8849,6 +8958,10 @@
     		ACMD_DEF(heal),
     		ACMD_DEF(item),
     		ACMD_DEF(item2),
    +		ACMD_DEF(itemmap),
    +		ACMD_DEF2("itemmap1", itemmap),
    +		ACMD_DEF2("itemmap2", itemmap),
    +		ACMD_DEF2("itemmap3", itemmap),
     		ACMD_DEF(itemreset),
     		ACMD_DEF(clearstorage),
     		ACMD_DEF(cleargstorage),
    Index: src/map/pc.c
    ===================================================================
    --- src/map/pc.c	(revision 17062)
    +++ src/map/pc.c	(working copy)
    @@ -4009,6 +4009,32 @@
     	return 1;
     }
     
    +/*------------------------------------------
    + * pc_getitem_map [Xantara]
    + *------------------------------------------*/
    +int pc_getitem_map(struct map_session_data *sd,struct item it,int amt,int count,e_log_pick_type log_type)
    +{
    +	int i, flag;
    +
    +	nullpo_ret(sd);
    +
    +	for ( i = 0; i < amt; i += count )
    +	{
    +		if ( !pet_create_egg(sd,it.nameid) )
    +		{ // if not pet egg
    +			if ( flag = pc_additem(sd,&it,count,log_type) )
    +			{
    +				clif_additem(sd, 0, 0, flag);
    +				if( pc_candrop(sd,&it) )
    +					map_addflooritem(&it,count,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0);
    +			}
    +		}
    +	}
    +
    +	log_pick_pc(sd, log_type, -amt, &sd->status.inventory[i]);
    +	return 1;
    +}
    +
     /*==========================================
      * Check if item is usable.
      * Return:
      
    Index: src/map/pc.h
    ===================================================================
    --- src/map/pc.h	(revision 17062)
    +++ src/map/pc.h	(working copy)
    @@ -725,6 +725,7 @@
     int pc_putitemtocart(struct map_session_data *sd,int idx,int amount);
     int pc_getitemfromcart(struct map_session_data *sd,int idx,int amount);
     int pc_cartitem_amount(struct map_session_data *sd,int idx,int amount);
    +int pc_getitem_map(struct map_session_data *sd,struct item it,int amt,int count,e_log_pick_type log_type); // [Xantara]
     
     int pc_takeitem(struct map_session_data*,struct flooritem_data*);
     int pc_dropitem(struct map_session_data*,int,int);
     
    Index: src/map/script.c
    ===================================================================
    --- src/map/script.c	(revision 17062)
    +++ src/map/script.c	(working copy)
    @@ -6474,6 +6474,122 @@
     	return 0;
     }
     
    +/*====================================================================
    +  [Xantara]
    +     *getitem_map <item id>,<amount>,"<mapname>"{,<type>,<ID for Type>};
    +       type: 0=everyone, 1=party, 2=guild, 3=bg
    + =====================================================================*/
    +static int buildin_getitem_map_sub(struct block_list *bl,va_list ap)
    +{
    +	struct item it;
    +	struct guild *g = NULL;
    +	struct party_data *p = NULL;
    +
    +	int amt,count;
    +	TBL_PC *sd = (TBL_PC *)bl;
    +
    +	it    = va_arg(ap,struct item);
    +	amt   = va_arg(ap,int);
    +	count = va_arg(ap,int);
    +
    +	pc_getitem_map(sd,it,amt,count,LOG_TYPE_SCRIPT);
    +
    +	return 0;
    +}
    +
    +BUILDIN_FUNC(getitem_map)
    +{
    +	struct item it;
    +	struct guild *g = NULL;
    +	struct party_data *p = NULL;
    +	struct battleground_data *bg = NULL;
    +	struct script_data *data;
    +
    +	int m,i,get_count,nameid,amount,flag=0,type=0,type_id=0;
    +	const char *mapname;
    +
    +	data = script_getdata(st,2);
    +	get_val(st,data);
    +	if( data_isstring(data) )
    +	{
    +		const char *name = conv_str(st,data);
    +		struct item_data *item_data = itemdb_searchname(name);
    +		if( item_data )
    +			nameid = item_data->nameid;
    +		else
    +			nameid = UNKNOWN_ITEM_ID;
    +	}
    +	else
    +		nameid = conv_num(st,data);
    +
    +	if( (amount = script_getnum(st,3)) <= 0 )
    +		return 0;
    +
    +	mapname = script_getstr(st,4);
    +	if( (m = map_mapname2mapid(mapname)) < 0 )
    +		return 0;
    +
    +	if( script_hasdata(st,5) ){
    +		type    = script_getnum(st,5);
    +		type_id = script_getnum(st,6);
    +	}
    +
    +	if(nameid < 0) {
    +		nameid = itemdb_searchrandomid(-nameid);
    +		flag = 1;
    +	}
    +	
    +	if( nameid <= 0 || !itemdb_exists(nameid) ){
    +		ShowError("buildin_getitem_map: Nonexistant item %d requested.\n", nameid);
    +		return 1; //No item created.
    +	}
    +
    +	memset(&it,0,sizeof(it));
    +	it.nameid = nameid;
    +	if(!flag)
    +		it.identify = 1;
    +	else
    +		it.identify = itemdb_isidentified(nameid);
    +
    +	if (!itemdb_isstackable(nameid))
    +		get_count = 1;
    +	else
    +		get_count = amount;
    +
    +	switch(type)
    +	{
    +		case 1:
    +			if( (p = party_search(type_id)) != NULL )
    +			{
    +				for( i=0; i < MAX_PARTY; i++ )
    +					if( p->data[i].sd && m == p->data[i].sd->bl.m )
    +						pc_getitem_map(p->data[i].sd,it,amount,get_count,LOG_TYPE_SCRIPT);
    +			}
    +			break;
    +		case 2:
    +			if( (g = guild_search(type_id)) != NULL )
    +			{
    +				for( i=0; i < g->max_member; i++ )
    +					if( g->member[i].sd && m == g->member[i].sd->bl.m )
    +						pc_getitem_map(g->member[i].sd,it,amount,get_count,LOG_TYPE_SCRIPT);
    +			}
    +			break;
    +		case 3:
    +			if( (bg = bg_team_search(type_id)) != NULL )
    +			{
    +				for( i=0; i < MAX_BG_MEMBERS; i++ )
    +					if( bg->members[i].sd && m == bg->members[i].sd->bl.m )
    +						pc_getitem_map(bg->members[i].sd,it,amount,get_count,LOG_TYPE_SCRIPT);
    +			}
    +			break;
    +		default:
    +			map_foreachinmap(buildin_getitem_map_sub,m,BL_PC,it,amount,get_count);
    +			break;
    +	}
    +
    +	return 0;
    +}
    +
     /*==========================================
      * rentitem <item id>,<seconds>
      * rentitem "<item name>",<seconds>
    @@ -17364,6 +17480,7 @@
     	BUILDIN_DEF(getitem,"vi?"),
     	BUILDIN_DEF(rentitem,"vi"),
     	BUILDIN_DEF(getitem2,"viiiiiiii?"),
    +	BUILDIN_DEF(getitem_map,"iis??"),
     	BUILDIN_DEF(getnameditem,"vv"),
     	BUILDIN_DEF2(grouprandomitem,"groupranditem","i"),
     	BUILDIN_DEF(makeitem,"visii"),

     

    I think itemmap got some script that doesnt need to use src.

     

    Ahh .. from my post 2015. Maybe can try but I think need some modification since its from 2015.
     

  13. Elurair Patcher - Valkyrie Randgris Skin


    I'm sharing this skin because it might helps someone who want to explore and edit elurair skin easier, and not a lot of people share or release Elurair skin in rAthena forum.

    1. Download Elurair Patcher from Ai4rei website : http://ai4rei.net/p/skal and extract it.
    2. Extract this uploaded file elurair-valkyrie_skin.zip and add it in Elurair Patcher folder.
    2. Use builder.exe in builder folder to create Elurair.exe. Target Patcher file elurair.exe, Configuration file elurair.Chaos92.ini.
    3. Tick compile, and add all the skin files in skin_valkyrie folder. Maybe purge existing skins if you want to replace with your own skin.
    4. Insert Icon file and Window Title (optional) and then click 'Build'.
    5. Use the web files and upload if needed.

    *** To run Elurair Patcher, you need .inf generated from here : http://ai4rei.net/make/patch.inf/<desired numeric id>.

    For example, to start from patch number 0, you can open the link : https://ai4rei.net/make/patch.inf/0 .
    And include the .inf file in the same folder with Elurair.exe.

    Things that you need to replace depends on your setup.

    InfFile=patch.inf
    PakFile=main.grf
    WebList=patch_main.txt
    WebPath=/data/
    WebSite=patch.example.com

    And also all the ActionData= in the elurair.Chaos92.ini if needed.

    I include web files folder too just incase this might help you (without main.inf, you can generate it yourself as told above).

    The ONLY files that you need in client folder after 'Build' Elurair.exe :
    - inf file
    - elurair.exe (no problem to rename it)
    - media folder (contains media for the skin)
    - your own client files

    Documentation & example for elurair settings you can found in elurair.default.ini.

    Website Elurair : http://ai4rei.net/p/skal .
    Discord NN (Creator of Elurair Patcher) : http://ai4rei.net/p/discord .

    Not all the resources for the skin are created by me.
    Video source : https://steamcommunity.com/sharedfiles/filedetails/?id=1964715704 .

    Skin file compiled and released by Chaos92.

    rAthena Profile : https://rathena.org/board/profile/6755-chaos92 .
    Facebook Page : https://www.facebook.com/hostingmalaya .

    Can contact me via links above for web hosting & services.

    Wanna treat me some coffee ? https://www.buymeacoffee.com/chaos92 .


    • Submitter
    • Submitted
      09/13/23
    • Category
    • Video
      https://youtu.be/06e3Pi4OsRk
    • Content Author
      Chaos92

     

    • Love 2
    • Like 1
  14. 2 hours ago, Shishikyuu said:

    image.png

     

    anyone have any idea what could've caused this and how to fix? i have itemdescription in my grf, when i add info on iteminfo_EN for it, it just adds information but doesn't actually delete those gibberish letters

    Should be in your System folder.

  15. 42 minutes ago, Zaszorith2 said:

    This is my first time posting about this, but I am glad to hear it isn't just me.
    I have the "Mob_db_re" in my rathena file and in the database and it seems to be in working order. 
    I see yours reads the create arrow and then loads the mob whereas mine reads the create arrow then tries to load "null" and then moves to the mob. Is it looking for something that it shouldn't be or is this an issue with the loading _mob 
    _db
    I am however super new at all of this and may be misunderstanding you. 
    image.png.52d176781e062cc3b0be3e1958dcea79.pngimage.thumb.png.4d78b3337f542efa006d221323555dbc.pngimage.thumb.png.7a13e31ba905419aded2aab1fecd11ac.pngimage.thumb.png.7a13e31ba905419aded2aab1fecd11ac.png

    I think u read already my replied at your issue am I right ? Just run the sql-files sql, doesnt need to convert YML to sql.

  16. 6 hours ago, Zaszorith2 said:
    I'm trying to get a server up for personal use (me and a few friends) but I'm running into an issue and I can not find any help or info for this online. Whenever I run the server with runserver.bat this happens. I've restarted ~10 times and it's always this issue at this point.
    Windows 10 (64)
    Willing to provide any needed info

    ima12342134ge.png

    i12341234mage.png

    imag1234e.png

    So you are the same one reported this issue at git. I think ive replied there. Btw below is mine when I tried to start the server. See the comparison with yours.

    image.png.40ba7aa9dd6aa52c5497b7782e0dc2bf.png

    Try to check is it true the sql is execute and exist in you database, since I saw a 'null' there. 

  17. 39 minutes ago, Yukaiii said:

    it worked guys. Thanks!
    I would like to know how to resolve this not showing the full name of the player?

    [fdgfd**] opened [Poring] and received the item "card poring"

    Would you like to change this "opened".. by killing the poring and receiving the "card poring" item?

    @Chaos92

    @Emistry

    Thank you guys!!

    screenSeja Bem-Vindo!!022.jpg

    screenSeja Bem-Vindo!!023.jpg

    find that message template in msgstringtable, then you will found it. edit at the same lines.

    • MVP 1
  18. 1 hour ago, Yukaiii said:

    my item_db is old..

     

    4128,Golden_Bug_Card,Carta Besouro-Ladrão Dourado,6,20,,10,,,,,,,,32,,,,,{ bonus bNoMagicDamage,100; bonus bUseSPrate,100; },{},{}

     

    my item_db is like this

    then find in db folder pre-re or re named item_flag.txt

    • Love 1
×
×
  • Create New...