Jump to content

milk

Members
  • Content Count

    91
  • Joined

  • Last visited

3 Followers

About milk

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    http://localhost

Profile Information

  • Gender
    Male
  • Location:
    /dev/urandom
  • Emulator
    Hercules

Recent Profile Visitors

19940 profile views
  1. milk

    Tree of Savior

    Does anyone have a unused key?
  2. My client is : 20140115 Can you check sex values in `login` and `char` table?
  3. Thank you very much. Again c:
  4. Btw, eAmod have this feature in battleconf: // ****************************************// Fixeds - Balance// ****************************************// Does slaves monsters can give "item granded drop"?// As YES is the official setting, this can prevent a serious exploid with users making lot of items and money with Dracula slaves.mob_slave_adddrop: no But I can't understand how it works, because I'm sooo noob in C :c
  5. Now it drops from each mob summoned by boss-monster.
  6. Hello community! I have a question: is it possible to remove drop from slave mobs without editing mob_db? For example: White Lady summoning Green Maiden, who drops Bao Bao, and every time when player killing slave mob - it drops this item again and again. Many players like to abuse it. Is it any way to fix it? Thanks for advance! c:
  7. This is eAthena/rAthena with a lot of modifications (eAthena modifications). And with a lot of bugs c:
  8. @aloottype +<type name> for example: @aloottype +healing, @aloottype +usable, @aloottype +card
  9. Same with @autolootid I dont know how to correctly save state.autolootid after relog. ACMD(autolootitem){ struct item_data *item_data = NULL; int i; int action = 3; // 1=add, 2=remove, 3=help+list (default), 4=reset if (message && *message) { if (message[0] == '+') { message++; action = 1; } else if (message[0] == '-') { message++; action = 2; } else if (!strcmp(message,"reset")) action = 4; if (action < 3) // add or remove { if ((item_data = itemdb->exists(atoi(message))) == NULL) item_data = itemdb->search_name(message); if (!item_data) { // No items founds in the DB with Id or Name clif->message(fd, msg_txt(1189)); // Item not found. return false; } } } switch(action) { case 1: ARR_FIND(0, AUTOLOOTITEM_SIZE, i, sd->state.autolootid[i] == item_data->nameid); if (i != AUTOLOOTITEM_SIZE) { clif->message(fd, msg_txt(1190)); // You're already autolooting this item. return false; } ARR_FIND(0, AUTOLOOTITEM_SIZE, i, sd->state.autolootid[i] == 0); if (i == AUTOLOOTITEM_SIZE) { clif->message(fd, msg_txt(1191)); // Your autolootitem list is full. Remove some items first with @autolootid -<item name or ID>. return false; } sd->state.autolootid[i] = item_data->nameid; // Autoloot Activated sprintf(atcmd_output, msg_txt(1192), item_data->name, item_data->jname, item_data->nameid); // Autolooting item: '%s'/'%s' {%d} pc_setglobalreg(sd, script->add_str("AT_ALOOTID"), item_data->nameid); clif->message(fd, atcmd_output); sd->state.autolooting = 1; break; case 2: ARR_FIND(0, AUTOLOOTITEM_SIZE, i, sd->state.autolootid[i] == item_data->nameid); if (i == AUTOLOOTITEM_SIZE) { clif->message(fd, msg_txt(1193)); // You're currently not autolooting this item. return false; } sd->state.autolootid[i] = 0; sprintf(atcmd_output, msg_txt(1194), item_data->name, item_data->jname, item_data->nameid); // Removed item: '%s'/'%s' {%d} from your autolootitem list. clif->message(fd, atcmd_output); ARR_FIND(0, AUTOLOOTITEM_SIZE, i, sd->state.autolootid[i] != 0); if (i == AUTOLOOTITEM_SIZE) { sd->state.autolooting = 0; } break; case 3: sprintf(atcmd_output, msg_txt(1195), AUTOLOOTITEM_SIZE); // You can have %d items on your autolootitem list. clif->message(fd, atcmd_output); clif->message(fd, msg_txt(1196)); // To add an item to the list, use "@alootid +<item name or ID>". To remove an item, use "@alootid -<item name or ID>". clif->message(fd, msg_txt(1197)); // "@alootid reset" will clear your autolootitem list. ARR_FIND(0, AUTOLOOTITEM_SIZE, i, sd->state.autolootid[i] != 0); if (i == AUTOLOOTITEM_SIZE) { clif->message(fd, msg_txt(1198)); // Your autolootitem list is empty. } else { clif->message(fd, msg_txt(1199)); // Items on your autolootitem list: for(i = 0; i < AUTOLOOTITEM_SIZE; i++) { if (sd->state.autolootid[i] == 0) continue; if (!(item_data = itemdb->exists(sd->state.autolootid[i]))) { ShowDebug("Non-existant item %d on autolootitem list (account_id: %d, char_id: %d)", sd->state.autolootid[i], sd->status.account_id, sd->status.char_id); continue; } sprintf(atcmd_output, "'%s'/'%s' {%d}", item_data->name, item_data->jname, item_data->nameid); clif->message(fd, atcmd_output); } } break; case 4: memset(sd->state.autolootid, 0, sizeof(sd->state.autolootid)); clif->message(fd, msg_txt(1200)); // Your autolootitem list has been reset. sd->state.autolooting = 0; pc_setglobalreg(sd, script->add_str("AT_ALOOTID"), 0); break; } return true;} I've tryed to use it in pc_reg_received like this: int pc_reg_received(struct map_session_data *sd){ int i,j, idx = 0; int i; sd->vars_ok = true; sd->state.autolootid = pc_readglobalreg(sd,script->add_str("AT_ALOOTID")); But GCC show me an error: pc.c: In function ‘pc_reg_received’:pc.c:1415: error: incompatible types when assigning to type ‘short unsigned int[10]’ from type ‘int’
  10. - script OnStartNPC -1,{OnPCLoginEvent: atcommand "@join #main";}
×
×
  • Create New...

Important Information

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