1.9 Storage Box

stephenking

I HAVE A DREAM!!
Developer
Aug 28, 2005
616
39
175
Netherlands
this is my script i created for our old 1.9 server
since its possible to code such functions now

i thought people could learn/use this for 1.9 servers still out there

i called it a podbox you can store items (pot bundle's for this one) in it
origionally this used for higherlvls that couldnt bring enough pots to the battle field
this help you store like 10 bundles in a box

(this could work in dm2 aswell nevver tried it tho)


here's the script (i had Small,Med,Large but will only place small here)

Q-Function.txt ---

;========PodBox=Scripts===anicount=12/13/14===========
;===============================================
;======PodBox(S) stdmode:31 shape:0 anicount:12========
;===============================================
;Small PodBox script anicount 12
[@Stdmodefunc12]
#IF
checklevel 28
#ACT
Give PodBox(S) 1
#CALL [\Market\PodBoxS.txt] @psmain
#ELSEACT
Give PodBox(S) 1
#ELSESAY
Im Sorry You Cannot Use Until Level 28.\

----------------------------------------------

Then add in QManage.txt ---
This Makes it Able to save whats in the box
;================SmallPodBox Variables=============
#IF
#ACT
Var Integer Human PS0
LoadVar Human PS0 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt
#IF
#ACT
Var Integer Human PS1
LoadVar Human PS1 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt
break
#IF
#ACT
Var Integer Human PS2
LoadVar Human PS2 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt
#IF
#ACT
Var Integer Human PS3
LoadVar Human PS3 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt
#IF
#ACT
Var Integer Human PS4
LoadVar Human PS4 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt
#IF
#ACT
Var Integer Human PS5
LoadVar Human PS5 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt
#IF
#ACT
Var Integer Human PS6
LoadVar Human PS6 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt
#IF
#ACT
Var Integer Human PS7
LoadVar Human PS7 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt
#IF
#ACT
Var Integer Human PS8
LoadVar Human PS8 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt
#IF
#ACT
Var Integer Human PS9
LoadVar Human PS9 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt
#IF
#ACT
Var Integer Human PS10
LoadVar Human PS10 ..\QuestDiary\Variables\PodBoxes\SmallBox.txt

----------------------------------------------

Then for the script itself is
Market\PodBoxS.txt ---

View attachment PodBoxS.txt

attachment since its a large script
 
Last edited:

Omen_lom

Golden Oldie
Golden Oldie
May 29, 2006
1,761
14
144
well by the looks of things its an extra bag, which is used for the storage of pots.
 

stephenking

I HAVE A DREAM!!
Developer
Aug 28, 2005
616
39
175
Netherlands
what this does = double click the item and npcdialog comes up

there you can add drugbundles to the slot of your choice (10 slots atm)

so in the end this will have for example 10 drugbundle(HP) in the box
(that you dont need to carry along but still have acces to it)

that you can take out at a later time without having to carry all the weight

i hope i explained it a bit better
my language is not english and its hard to explain it the way i would like :P


you can edit it to store the items you like offcourse but it will have problems with added items since you cant store that in txt (without coding)


well by the looks of things its an extra bag, which is used for the storage of pots.

exactly ty




edit: example of what will be written in the variables folder

(This i took out of my file)
[Supremacy]
PS7=0 = Nothing in Slot 8
PS5=0 = Nothing in Slot 6
PS9=5 = Healthbundle in Slot 9
PS2=1 = HPBundle in Slot 3
PS0=1 = HPBundle in Slot 1
PS6=0 = Nothing in Slot 7
PS1=1 = HPBundle in Slot 2

info of vars:

PS0=0

PS0 will be first slot
PS1 will be second
etc.

then for the values
0= empty slot
1= HPBundle
2= MPBundle
3= HPXLbun
4= MPXLbun
etc.
 
Last edited: