Search the Community
Showing results for tags 'storage'.
Found 4 results
-
File Name: [script] storage{mod}item File Submitter: Tranquility File Submitted: 23 Oct 2015 File Category: Plugins Greetings! The past week I've been messing around with processing how to utilise the storage better for my in-game NPCs & scripts. Coming from rA, I noticed we didn't have the script commands "storageadditem", "storagecountitem", "storagedelitem". Because of that I thought I should give it a try and aim to develop a plugin or a means, to make it possible to use this functionality again. How to use: you can use storageadditem to add an item name or itemid to a players storage. storageadditem <item id>, <amount>{, <account id>} storageadditem<item name>, <amount>{, <account id>} Example: storageadditem(501,10); you can use storagecountitem to count a specific item name or itemid in a players storage. storagecountitem(nameID,{accountID}) returns number of items that meet the conditions Example: .@pots = storagecountitem(501); you can use storagedeltitem to delete a specific item name or itemid in a players storage. storagedelitem <item id>,<amount>{,<account id>} storagedelitem "<item name>",<amount>{,<account id>} Deletes items from the target/attached player. Example: storagedelitem(501,.@pots); Read the Hercules Plugin Manager wiki page if you don't know how to add this functionality to your server. If you have any questions, suggestions or notice any bugs, kindly let me know and I'll see what I can do about it. Uploaded to my Git Repo now for easier access. Click here to download this file
-
Version 0.2
156 downloads
Greetings! The past week I've been messing around with processing how to utilise the storage better for my in-game NPCs & scripts. Coming from rA, I noticed we didn't have the script commands "storageadditem", "storagecountitem", "storagedelitem". Because of that I thought I should give it a try and aim to develop a plugin or a means, to make it possible to use this functionality again. How to use: you can use storageadditem to add an item name or itemid to a players storage. storageadditem <item id>, <amount>{, <account id>} storageadditem<item name>, <amount>{, <account id>} Example: storageadditem(501,10); you can use storagecountitem to count a specific item name or itemid in a players storage. storagecountitem(nameID,{accountID}) returns number of items that meet the conditions Example: .@pots = storagecountitem(501); you can use storagedeltitem to delete a specific item name or itemid in a players storage. storagedelitem <item id>,<amount>{,<account id>} storagedelitem "<item name>",<amount>{,<account id>} Deletes items from the target/attached player. Example: storagedelitem(501,.@pots); Read the Hercules Plugin Manager wiki page if you don't know how to add this functionality to your server. If you have any questions, suggestions or notice any bugs, kindly let me know and I'll see what I can do about it. Uploaded to my Git Repo now for easier access. -
Olá amigos, boa noite. Apesar de não ser recomendado usar o db_sql conforme vem avisado no inter-server.conf eu optei por usar sql pois *pra mim* é muito mais simples, prático e de fácil manuseio, além da manutenção ser infinitamente mais fácil. Gostaria de saber se alguém manja como fazer exatamente o exemplo abaixo em .txt pra .sql (os bloqueios do item): { Id: 111111 AegisName: "111111" Name: "111111" Type: 3 Buy: 0 Weight: 0 Trade: { override: 99 nodrop: true notrade: true partneroverride: true noselltonpc: true nocart: true nostorage: false nogstorage: true nomail: true noauction: true }}, Eu vi isso no item_db.txt e usando a base .txt eu consigo o que preciso, mais e no SQL alguém manja? se alguém tiver um exemplo simples fico agradecido. Tenho quase certeza que o bloqueio é no trad_flag pois alguns itens default vem com bloqueio só que não sei quais os valores de cada regra. Valeu pessoal.
-
Hi, I want to know where to edit sorting of items. Lets say SELECT * FROM `storage` WHERE `account_id` = 2000001 AND `group` = 1; I'll be adding group. Basically, when a player's character is in group 2 and use @storage, storage will not show items from group 1. Its like characters won't be sharing items by group. but still limited to 600 storage limit per account.