are you wanting a textbox for the value to go into,in your toolbar add a textbox(it will be text1,next 1 is text2,and so)
so in your code it would be
dim gun as long
dim gun1 as long
dim guns2 as long
If getkeypress(vbkeynumpad1)then
Call Readalong("WarRock",&H896e28,guns)
guns1 = guns + &H4c
guns2 = text1 'text1 being your textbox
Call Writealong("WarRock",&H896e28,guns2)