Jump to content

AErofas

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by AErofas

  1. Hi, I need help I got an error on compile with a command @whosell, I got this script on this forum rA

    /*==========================================
     * @whosell command
     *------------------------------------------*/
    ACMD_FUNC(whosell)
    {
    	struct map_session_data *pl_sd, *b_sd[MAX_SEARCH];
    	struct s_mapiterator* iter;
    
    	struct item_data *item_array[MAX_SEARCH];
    	int total[MAX_SEARCH], amount[MAX_SEARCH];
    	unsigned int MinPrice[MAX_SEARCH], MaxPrice[MAX_SEARCH];
    	char output[256];
    	int i, j, count = 1;
    	char item_name[100];
    	int minprice = 0;
    
    	if (!message || !*message || (
    		sscanf(message, "\"%99[^\"]\" %11d", item_name, &minprice) < 1
    		&& sscanf(message, "%99s %11d", item_name, &minprice) < 1)
    		)
    	{
    		clif_displaymessage(fd, "Please, enter Item name or its ID (usage: @whosell <item name or ID> {<min price>}).");
    		return -1;
    	}
    
    	if ((item_array[0] = itemdb_searchname(item_name)) == NULL &&
    		(item_array[0] = itemdb_exists(atoi(item_name))) == NULL)
    		count = itemdb_searchname_array(item_array, MAX_SEARCH, message);
    
    	if (count < 1)
    	{ // No items found
    		clif_displaymessage(fd, msg_txt(sd,19));
    		return -1;
    	}
    
    	if (count > MAX_SEARCH) count = MAX_SEARCH;
    
    	// Preparing Search Recorders
    	for (i = 0; i < MAX_SEARCH; i++)
    	{
    		total[i] = amount[i] = MaxPrice[i] = 0;
    		MinPrice[i] = battle_config.vending_max_value + 1;
    		b_sd[i] = NULL;
    	}
    
    	iter = mapit_getallusers();
    	for (pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter))
    	{
    		if (!pl_sd->vender_id) continue;
    		for (i = 0; i < pl_sd->vend_num; i++)
    		{ // Searching in the Vending List
    			for (j = 0; j < count; j++)
    			{ // Compares with each search result
    				if (pl_sd->status.cart[pl_sd->vending[i].index].nameid != item_array[j]->nameid)
    					continue;
    				if (pl_sd->vending[i].value < minprice)
    					continue;
    
    				amount[j] += pl_sd->vending[i].amount;
    				total[j]++;
    
    				if (pl_sd->vending[i].value < MinPrice[j])
    				{ // Best Price
    					MinPrice[j] = pl_sd->vending[i].value;
    					b_sd[j] = pl_sd;
    				}
    				if (pl_sd->vending[i].value > MaxPrice[j])
    					MaxPrice[j] = pl_sd->vending[i].value;
    			}
    		}
    	}
    	mapit_free(iter);
    
    	for (i = 0; i < count; i++)
    	{
    		if (total[i] > 0 && b_sd[i] != NULL)
    		{
    			sprintf(output, "[%d] The best price found for '%s' is %u sold by '%s' at %s <%d,%d>. Max Price %u. Item found in %d shops, %d pieces for sale.", item_array[i]->nameid, item_array[i]->jname, MinPrice[i], b_sd[i]->status.name, map[b_sd[i]->bl.m].name, b_sd[i]->bl.x, b_sd[i]->bl.y, MaxPrice[i], total[i], amount[i]);
    			if (sd->bl.m == b_sd[i]->bl.m)
    				clif_viewpoint(sd, 1, 1, b_sd[i]->bl.x, b_sd[i]->bl.y, i, 0xFFFFFF);
    		}
    		else
    			sprintf(output, "[%d] '%s' is not being sold at the moment...", item_array[i]->nameid, item_array[i]->jname);
    
    		clif_displaymessage(sd->fd, output);
    	}
    
    	return 0;
    }

    It always crash with mmo_char_status

    Quote

    if (pl_sd->status.cart[pl_sd->vending.index].nameid != item_array[j]->nameid)
                        continue;

    How do I fix this? thankyou

  2. yes i use default rAthena and same as like that, but on idAthena is different like this:

    285,0x9a,    ,  3, 0,  -1,all,   0x010	//SA_VOLCANO
    286,0x9b,    ,  3, 0,  -1,all,   0x010	//SA_DELUGE
    287,0x9c,    ,  3, 0,  -1,all,   0x010	//SA_VIOLENTGALE
    288,0x9d,    ,  3:3:4:4:5,0, -1,all,   0x010	//SA_LANDPROTECTOR

    but now I know what should i do, thank you.

  3. Hi Guys, I have some problem on visual skill Deluge,Land Protector,Violent Gale, and Volcano. I have make compare 2 source rAthena and idAthena, this is the result

    rA ver. latest = idA ver. latest
    Client ver. 20151104 = Client ver. 20151104

    Deluge rATHENA (Visual effect only one cell)

    screenrAthena000.jpg

    Deluge idAthena

    screenidAthena000.jpg

    Land Protector rATHENA (visual effect only one cell)

    screenrAthena001.jpg

    Land Protector idAthena

    screenidAthena001.jpg

    Violent Gale rATHENA (Visual effect only one cell)

    screenrAthena002.jpg

    Violent Gale idAthena

    screenidAthena002.jpg

    Volcano rATHENA (Visual effect only one cell)

    screenrAthena003.jpg

    Volcano idAthena

    screenidAthena003.jpg

     

    Please help how to fix this, thank you

     

     

     

     

  4. Hi guys I need your help, how to fix this? If I use 3rd Job at level 160, Yellow Aura doesn't appear, but if I use Kagerou/Oboro/Super Novice Ext etc, Yellow Aura appear. whats wrong with this?

     

    I'm use 2013-05-22ragexe and rAthena rev.17405

     

    post-1658-0-16736400-1373192107_thumb.jpg

    post-1658-0-32539300-1373192123_thumb.jpg

  5. i can't start hunting mission, fisrt i start hunting mission and i forget to abandon mission, i have deleted my character.. i try to start again with new character but can't, the NPC say "you have start mission with another character".. help me to resolve this problem.

    sorry english bad..

×
×
  • Create New...