Restock System

Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
thumb-74501c47b130318ab4b24e267c13191c-screenhercules011.jpg


File Name: Restock System

File Submitter: Dastgir

File Submitted: 10 Jan 2015

File Category: Plugins

It is a restock system(which I apparently made 5-6 months ago) [Also its a Plugin - Yay]

So I am just releasing it, as I feel its been useful for many servers.

Though there can be some optimizations on script-side(will be applied later on).

You need to enable plugin as well as script provided in the download.

2 commands:

@restock - Enables/Disables Restock System

@restock2 - To Add/Remove item

Code:
Usage:@restock2 <itemid> <quantity> <type1> <type2>Type 1:1 = Storage2 = GStorageType 2:1 = Add2 = Remove3 = Help4 = List5 = Empty The List@restock2 x y z 3 For Help@restock2 x y z 4 For Current Restocking List@restock2 x y z 5 For Removing All Items From Restockx,y,z Can be any number, e.g: @restock2 0 0 0 3 will give you help option,@restock2 x y z 5 will Empty your list
It Support Restocking of All Kinds of Item.

Click here to download this file

 
Last edited by a moderator:
v1.1 - Fixed Crash while using Guild Storage restock.

 
Hi @@Dastgir

I'm gonna try this, what does this exactly do when using @restock? send item to storage automatically? and vice versa?

 
Last edited by a moderator:
Hi @@Dastgir

I'm gonna try this, what does this exactly do when using @restock? send item to storage automatically? and vice versa?
When you go out of items in inventory. It will get those items from storage/gstorage.
 
what about making a config so user need to pay a 'fee' everytime he uses the command? (nice to deal with zeny inflation ingame lol)

 
Hi @@Dastgir

I'm gonna try this, what does this exactly do when using @restock? send item to storage automatically? and vice versa?
When you go out of items in inventory. It will get those items from storage/gstorage.
 Does this bypass the @storage or @gstorage command when on pvp/gvg maps? Can they still restock items?
Yup it bypass it, maybe I will add a configuration to avoid those.
 
@@Dastgir

I see thanks! That would be a good option too if people would only want to allow this on certain map zones
default_smile.png


 
Code:
1>------ Operación Generar iniciada: proyecto: restock, configuración: Release Win32 ------1>Compilación iniciada a las 23-04-2015 15:45:24.1>InitializeBuildStatus:1>  Aplicando tarea Touch a "restockrestock.unsuccessfulbuild".1>ClCompile:1>  restock.c1>..srcpluginsrestock.c(45): error C2143: error de sintaxis : falta ';' delante de 'tipo'1>..srcpluginsrestock.c(47): error C2065: 'index' : identificador no declarado1>..srcpluginsrestock.c(48): error C2065: 'index' : identificador no declarado1>1>ERROR al compilar.1>1>Tiempo transcurrido 00:00:00.28========== Generar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ==========
 
1>  restock.c
1>..srcpluginsrestock.c(45): error C2143: 語法錯誤 : 遺漏 ';' (在 '型別' 之前)
1>..srcpluginsrestock.c(47): error C2065: 'index' : 未宣告的識別項
1>..srcpluginsrestock.c(48): error C2065: 'index' : 未宣告的識別項

 
Last edited by a moderator:
1>  restock.c

1>..srcpluginsrestock.c(45): error C2143: 語法錯誤 : 遺漏 ';' (在 '型別' 之前)

1>..srcpluginsrestock.c(47): error C2065: 'index' : 未宣告的識別項

1>..srcpluginsrestock.c(48): error C2065: 'index' : 未宣告的識別項
Code:
1>------ Operación Generar iniciada: proyecto: restock, configuración: Release Win32 ------1>Compilación iniciada a las 23-04-2015 15:45:24.1>InitializeBuildStatus:1>  Aplicando tarea Touch a "restockrestock.unsuccessfulbuild".1>ClCompile:1>  restock.c1>..srcpluginsrestock.c(45): error C2143: error de sintaxis : falta ';' delante de 'tipo'1>..srcpluginsrestock.c(47): error C2065: 'index' : identificador no declarado1>..srcpluginsrestock.c(48): error C2065: 'index' : identificador no declarado1>1>ERROR al compilar.1>1>Tiempo transcurrido 00:00:00.28========== Generar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ==========
Sorry for late update, error should be fixed now.
 
Last edited by a moderator:
Back
Top