Jump to content

Louis T Steinhil

Members
  • Posts

    186
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by Louis T Steinhil

  1. Kindly help or guide me on how to include Custom Storage/ Premium Storage to be included in delitem/storagedelitem npc script. Thanks in advance! /// Deletes items from the target/attached player. /// Prioritizes ordinary items. /// /// delitem <item id>,<amount>{,<account id>} /// delitem "<item name>",<amount>{,<account id>} /// cartdelitem <item id>,<amount>{,<account id>} /// cartdelitem "<item name>",<amount>{,<account id>} /// storagedelitem <item id>,<amount>{,<account id>} /// storagedelitem "<item name>",<amount>{,<account id>} /// guildstoragedelitem <item id>,<amount>{,<account id>} /// guildstoragedelitem "<item name>",<amount>{,<account id>} BUILDIN_FUNC(delitem) { TBL_PC *sd; struct item it; uint8 loc = 0; char* command = (char*)script_getfuncname(st); if(!strncmp(command, "cart", 4)) loc = TABLE_CART; else if(!strncmp(command, "storage", 7)) loc = TABLE_STORAGE; else if(!strncmp(command, "guildstorage", 12)) loc = TABLE_GUILD_STORAGE; if( !script_accid2sd(4,sd) ){ // In any case cancel script execution st->state = END; return SCRIPT_CMD_SUCCESS; } if (loc == TABLE_CART && !pc_iscarton(sd)) { ShowError("buildin_cartdelitem: player doesn't have cart (CID=%d).\n", sd->status.char_id); script_pushint(st, -1); return SCRIPT_CMD_FAILURE; } if (loc == TABLE_GUILD_STORAGE) { struct s_storage *gstor = guild2storage2(sd->status.guild_id); if (gstor == nullptr || sd->state.storage_flag) { script_pushint(st, -1); return SCRIPT_CMD_FAILURE; } } if( script_isstring(st, 2) ) { const char* item_name = script_getstr(st, 2); std::shared_ptr<item_data> id = item_db.searchname(item_name); if( id == nullptr ){ ShowError("buildin_%s: unknown item \"%s\".\n", command, item_name); st->state = END; return SCRIPT_CMD_FAILURE; } it.nameid = id->nameid;// "<item name>" } else { it.nameid = script_getnum(st, 2);// <item id> if( !item_db.exists( it.nameid ) ) { ShowError("buildin_%s: unknown item \"%u\".\n", command, it.nameid); st->state = END; return SCRIPT_CMD_FAILURE; } } it.amount=script_getnum(st,3); if( it.amount <= 0 ) return SCRIPT_CMD_SUCCESS;// nothing to do if( buildin_delitem_search(sd, &it, 0, loc) ) {// success return SCRIPT_CMD_SUCCESS; } ShowError("buildin_%s: failed to delete %d items (AID=%d item_id=%u).\n", command, it.amount, sd->status.account_id, it.nameid); st->state = END; st->mes_active = 0; clif_scriptclose( *sd, st->oid ); return SCRIPT_CMD_FAILURE; }
  2. Hi anyone know how to make the charms work inside storage? Thanks in advance! Nvm i found out how.
  3. Hello is there a way to put commas on that zeny requirements?
  4. 4.0 is better although 3.5 can do it if you can feed it documentation on how to do it as well as other examples. Always remember that you know more than it knows. It's just good with math and shit so you have to guide it.
  5. Take a screenshot of your map console and see if there's an error
  6. Anyone know how can i add commas after thousands / millions in atcommand.cpp? Thanks in advance!
  7. Thanks man, I'll try this later.
  8. View File Sealed Shrine Instance with Difficulty Edited Sealed Shrine Instance with different difficulties. Submitter Louis T Steinhil Submitted 07/20/24 Category Games, Events, Quests Video Content Author LS  
  9. Version 1.0.0

    129 downloads

    Edited Sealed Shrine Instance with different difficulties.
    Free
  10. I think this is what you need https://rathena.org/board/topic/117831-showcase-weapon-skin/
  11. Yes that's the plan. I only work on dayoffs tho coz of work
  12. View File Nydhoggs Nest Instance with Difficulty Reuploaded: Edited Nydhoggs Nest Instance with different difficulties. (see attachments) Submitter Louis T Steinhil Submitted 07/04/24 Category Games, Events, Quests Video Content Author LS  
  13. View File Orc Memory Instance with Difficulty Edited Orc Memory Instance to have multiple difficulties. (see attachment for info) Submitter Louis T Steinhil Submitted 07/04/24 Category Games, Events, Quests Video Content Author LS  
      • 1
      • Love
  14. have you assigned the ports on firewall? https://gist.github.com/anacondaq/3eae8e4afb5d3c3880d08b95b2c54b78
  15. I think the easiest way to turnoff other jobs is to disable all job changers/quest job changers. And don't give the command @job.
  16. Autoattack with skills is paid script. I don't think anyone would share it
  17. Version 1.1.0

    182 downloads

    Reuploaded: Edited Nydhoggs Nest Instance with different difficulties. (see attachments)
    Free
  18. Version 1.1.0

    152 downloads

    Edited Orc Memory Instance to have multiple difficulties. (see attachment for info)
    Free
  19. https://board.herc.ws/topic/16607-ragnarok-offline-newbie-pack-2022-make-your-ro-server-in-less-then-5-minutes/
  20. You can just download laragon from anacondaq offline setup. It's plug and play and compatible with rAthena and Herc
  21. Kindly check on the answer so everyone would know this is resolved. Thanks!
  22. haven't gone to that one yet. I'm still on pre-renewal instances. I was also translating Herc instances so it takes a bit of time.
  23. well you gotta check your stateicon. That was my problem not so long ago. Patch your client without the ignore error. see if stateicon is going to popup as an error so you can correct what line is missing.
  24. Hello someone actually made it possible in Herc Plugin. Maybe someone can convert it back to src. https://github.com/csnv/hercules-plugins/blob/main/mimic_animations/mimic_animations.c SSucRak.mp4 Mxy0oNn.mp4
  25. I think you need to add something like this in your status.yml - Status: VIPMSPD Icon: EFST_VIPMSPD CalcFlags: Speed: true Flee: true Flags: NoClearbuff: true NoBanishingBuster: true NoClearance: true EndOnStart: Decreaseagi: true
×
×
  • Create New...