hi guys, seeing as i like this so much, i created a script for it to work with conjured's cash system, using it's own buying huds.
basically, the player wlaks over to the box, and, providing conjured's cash system is on, a hud will appear saying either, "you don't have enough money" or "open random item box? ($1000) Y or N"
if the player has enough money, and presses y, the normal huds will appear and th eplayer can use the R.I.B
i hope you don't mind kravenwolf.
anyway, here's the script, but i've been having a little trouble with after you have the weapon, for some bizzare reason, any zombies you kill afterwwards won't give you any money, presummably i'll have to edit the weapon scripts, so i'll give that a go now.
anyways, enjoy!
;header
desc =use random item box for £1000
;triggers
:plrwithinzone=0,activated=9:activate=0,hudunshow=mp1kbuyornot10,hudunshow=mp1ksorry,state=2
:state=0:settargetname=cs1
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecorehudsnofunds.png,hudname=mp1ksorry,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecorehudsunlock_rib.png,hudname=mp1kbuyornot10,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextpickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=2
:state=1:rundecal=5
:state=2,plrdistwithin=40:activate=9,globalvar=1,state=3
:state=3,varless=1000:state=4
:state=3,varequal=1000:state=5
:state=3,vargreater=1000:state=5
:state=4:hudshow=mp1ksorry
:state=4,plrwithinzone=0,activated=9:activate=0,hudunshow=mp1kbuyornot10,hudunshow=mp1ksorry,state=2
:state=5:hudshow=mp1kbuyornot10,state=6
:state=6,scancodekeypressed=21:hudunshow=mp1kbuyornot10,hudunshow=mp1ksorry,state=10
:state=6,scancodekeypressed=49:hudunshow=mp1kbuyornot10,hudunshow=mp1ksorry,state=7
:state=6,plrwithinzone=0,activated=9:activate=0,hudunshow=mp1kbuyornot10,hudunshow=mp1ksorry,state=2
:state=7,plrwithinzone=0,activated=9:activate=0,state=2
:state=10:globalvar=1,decvar=1000,activatetarget=13
:state=10:localvar=20
:state=10:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextgenerateweapon.tga,hudname=use,hudhide=1,hudmake=display
:state=10,plrdistwithin=60:hudshow=use
:state=10,plrdistwithin=60,scancodekeypressed=28:state=11
:state=11,varless=50,random=5:hudunshow=use,globalvar=99,setvar=1,localvar=20,setvar=51,state=12
:state=11,varless=51,random=10:hudunshow=use,globalvar=99,setvar=2,localvar=20,setvar=52,state=12
:state=11,varless=52,random=15:hudunshow=use,globalvar=99,setvar=3,localvar=20,setvar=53,state=12
:state=11,varless=53,random=20:hudunshow=use,globalvar=99,setvar=4,localvar=20,setvar=54,state=12
:state=11,varless=54,random=25:hudunshow=use,globalvar=99,setvar=5,localvar=20,setvar=55,state=12
:state=12,plrdistfurther=60:state=10
:plrdistfurther=60:hudunshow=use
ooh, and you're probbably gonna want to change the huds that come up, seeing as you won't have them.
EDIT
hmmm... i've added the line, :state=5,globalvar=1,decvar=0,activatetarget=13 to the bottom of all the weapon scripts. (in case your were wondering, it's the same line at the bottom of all the pick up weapon scripts, except without the noises, sorry if i put in a wrong command there, i didn't in the script) it still doesn't work, after you pick up the gun, a kill you make a with any weapon will not give you money! any reasons?
strike force delta (on the rails) http://forum.thegamecreators.com/?m=forum_view&t=152412&b=25
darkest depths http://forum.thegamecreators.com/?m=forum_view&t=151509&b=25