Jump to content

Limestone

Members
  • Posts

    647
  • Joined

Everything posted by Limestone

  1. i think he still uses ea.. if ea.. change the pc_get_group_level to pc_isGM.
  2. can i request a Daily Rewards NPC like this: Day 1 (Monday) : AFM 100% 2 PC's Day 2 (TUEsday): Bubble Gum 2PC's and so on.. Thank you so much!
  3. someone have this script? http://www.eathena.ws/board/index.php?showtopic=260812&st=15
  4. hmm no. even if im in izlude, then one merchant vended apple in prontera, when i use @whosell apple. it works. but in other map, the command is not working, it says Item not found.
  5. yes.. i already do that, but still the @whosell command not working. i think its in the src code. but i dont know where.
  6. int atcommand_whosell(const int fd, struct map_session_data* sd, const char* command, const char* message) { unsigned char ielement[5][7] = {"", "Ice ", "Earth ", "Fire ", "Wind "}; unsigned char istarcrumb[4][7] = {"", "VS ", "VVS ", "VVVS "}; struct map_session_data *pl_sd; char item_name[100], output[255]; int item_id, map_id = 0, j, count = 0, i = 0, mSlot = 0; unsigned int MinPrize = battle_config.vending_max_value, MaxPrize = 0; struct item_data *item_data; #ifdef whosell_with_cards_name struct item_data *item_temp; #endif struct s_mapiterator* iter; memset(item_name, '0', sizeof(item_name)); memset(output, '0', sizeof(output)); if (!message || !*message || sscanf(message, "%99[^\n]", item_name) < 1) { clif_displaymessage(fd, "Please, enter the item's name or ID (usage: @whosell <item_name> or <item_id>)."); 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; } item_id = item_data->nameid; map_id = sd->bl.m; // Required for clif_viewpoint 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) { for (j = 0; j < pl_sd->vend_num; j++) { if (pl_sd->status.cart[pl_sd->vending[j].index].nameid == item_id) { // Item Found, updating Min and Max if (pl_sd->vending[j].value < MinPrize) MinPrize = pl_sd->vending[j].value; if (pl_sd->vending[j].value > MaxPrize) MaxPrize = pl_sd->vending[j].value; if (pl_sd->bl.m == map_id) clif_viewpoint(sd, 1, 1, pl_sd->bl.x, pl_sd->bl.y, count, 0xFFFFFF); sprintf(output, "Vendor's Name: %s | Amount: %d | Price: %d | Location: %s(%d,%d)", pl_sd->status.name, pl_sd->vending[j].amount, pl_sd->vending[j].value, map[pl_sd->bl.m].name, pl_sd->bl.x, pl_sd->bl.y); clif_displaymessage(fd, output); if (item_data->type == IT_ARMOR || item_data->type == IT_WEAPON) { i = sprintf(output, " - "); if (pl_sd->status.cart[pl_sd->vending[j].index].refine) i += sprintf(output+i, "+%d ", pl_sd->status.cart[pl_sd->vending[j].index].refine); // View Element and Star Crumb only for Forge or Create Item if (pl_sd->status.cart[pl_sd->vending[j].index].card[0] == CARD0_FORGE || pl_sd->status.cart[pl_sd->vending[j].index].card[0] == CARD0_CREATE) i += sprintf(output+i, "%s%s", istarcrumb[(pl_sd->status.cart[pl_sd->vending[j].index].card[1] >> 8)/5], ielement[GetByte(pl_sd->status.cart[pl_sd->vending[j].index].card[1], 0)]); // Add jName of Item to Display i += sprintf(output+i, "%s", item_data->jname); // View number of slots if (item_data->slot) { i += sprintf(output+i, "[%d] ", item_data->slot); #ifdef whosell_with_cards_name clif_displaymessage(fd, output); i = sprintf(output, " - Cards: "); #endif for (mSlot = 0; mSlot < item_data->slot; mSlot++) { #ifdef whosell_with_cards_name if ((item_temp = itemdb_exists(pl_sd->status.cart[pl_sd->vending[j].index].card[mSlot])) != NULL) i += sprintf(output+i, "[%s] ", item_temp->jname); #else if (pl_sd->status.cart[pl_sd->vending[j].index].card[mSlot]) i += sprintf(output+i, "[%d] ", pl_sd->status.cart[pl_sd->vending[j].index].card[mSlot]); #endif } #ifdef whosell_with_cards_name if (i>14) #endif clif_displaymessage(fd, output); } else clif_displaymessage(fd, output); } count++; } } } } if(count > 0) { sprintf(output, "Found %d being vended. Range of prices: %d ~ %d.", count, MinPrize, MaxPrize); clif_displaymessage(fd, output); } else clif_displaymessage(fd, "Item not found."); return 0; } Hi Guys! i have a problem in @whosell command, when i try to vend in other maps like, my custom map. when i try to use @whosell ( item_id), it doesn't searching the item. but when i vend in prontera, the @whosell is working.. i want to make this command working in other maps, not only in prontera. Thank you
  7. I'm sure Ziu started to make the script of Wave Mode Dungeon xD
  8. yes. becaus eA doesn't supports 3rd Classes. only trans classes
  9. yes, but i dont know what number i will put in order to make lvl 99 can't attack lower than his level.
  10. how can i set the pk lvl range for the players both level 99 only, for example, if the level of player 1 is 99, and the level of player 2 is 98, player 1 can't attack player 2. player 2 must be lvl 99 to be able attack in pk maps..
  11. para po ma edit nyo yan.. open mo po ung grf mo, gamit ang GRF Builder, madadownload mo to sa http://ratemyserver.net/index.php?page=download_tool, kapag na open nyo na ung grf nyo, hanapin mo po ung Clientinfo.xml, tapos dun mo po yan maeedit ung Server Name
  12. hmm.. another one suggestion.. kindly edit some of pre-re npc's, because there are npc's in pre-re are same in re npc's ( Sorry for bad English ) ex: Job Change Quest, Training Grounds, and some of City Npc's
  13. i suggest seperate map_cache.dat for RE and PRE-RE. because of Old Izlude and Old Alberta..
  14. uu nman.. basta compatible ung data folder mo pati ung client mo di ka magkakaerror
  15. masyado ng outdated ung sakexe para sa eathena rev mo.. d2 ka hanap ng re client mo, http://rathena.org/tools/diff_patcher.php ang pinaka stable na client jan is 2010-06-16.
  16. in battle/misc.conf // Set this to the amount of minutes autotrade chars will be kicked from the server. at_timeout: 0
  17. in renewal, the casting time of the skills are fixed, even if you set it to 150, it's still fixed cast.
  18. you can find the script of the npc in: npc/quest/quests_moscovia.txt Hope i helped you
  19. in pre-re.. the cast rate dex scale for the jobs is 150, so i would say that 3rd jobs are not applicable in pre-re servers. if you want pre-re emulator but has a seperate cast rate dex for trans jobs and 3rd jobs, i recommend you use 3CeAM.
×
×
  • Create New...