Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##########
- id=817
- name=leerer Bottich
- icon=gfx\mc_leaf\icon_tub_empty.bmp
- group=stuff,town,ext,mcleaf
- model=gfx\mc_leaf\tub_empty.b3d
- health=1000
- mat=wood
- var=drinkstored,Eingelagerte Getränke,0,0
- var=drinkstoredmax,Maximale Anzahl, 20,0 // kann man noch ändern
- var=drinktype,Getränketyp,0,0
- script=start
- on:build_finish {
- event "trunkholderbuild",0,0; // hat ohne das trunkholderbuild nicht geklappt
- }
- on:getstuff_water {
- if (count_stored("unit",1,38)==0) { skip; }
- if ($drinkstored>=$drinkstoredmax) { skip; }
- $drinkstored++;
- $drinktype=1;
- freestored "unit",1,38,1;
- model "gfx\mc_leaf\tub_water.b3d";
- find 106,1;
- event "use";
- }
- on:getstuff_beer {
- if (count_stored("unit",1,828)==0) { skip; }
- if ($drinkstored>=$drinkstoredmax) { skip; }
- $drinkstored++;
- $drinktype=2;
- freestored "unit",1,828,1;
- model "gfx\mc_leaf\tub_beer.b3d";
- find 106,1;
- event "use";
- }
- on:getstuff_wine {
- if (count_stored("unit",1,39)==0) { skip; }
- if ($drinkstored>=$drinkstoredmax) { skip; }
- $drinkstored++;
- $drinktype=3;
- freestored "unit",1,39,1;
- model "gfx\mc_leaf\tub_wine.b3d";
- find 106,1;
- event "use";
- }
- on:getdrinks_water {
- if (count_stored("unit",1,106)==0) { skip; }
- if (storage("unit",1,0)<500) { skip; }
- if ($drinkstored<=0) { skip; }
- freestored "unit",1,106,1;
- $drinkstored--;
- find 38,1;
- if ($drinkstored==0) {
- model "gfx\mc_leaf\tub_empty.b3d";
- $drinktype=0;
- }
- event "use";
- }
- on:getdrinks_beer {
- if (count_stored("unit",1,106)==0) { skip; }
- if (storage("unit",1,0)<500) { skip; }
- if ($drinkstored<=0) { skip; }
- freestored "unit",1,106,1;
- $drinkstored--;
- find 828,1;
- if ($drinkstored==0) {
- model "gfx\mc_leaf\tub_empty.b3d";
- $drinktype=0;
- }
- event "use";
- }
- on:getdrinks_wine {
- if (count_stored("unit",1,106)==0) { skip; }
- if (storage("unit",1,0)<500) { skip; }
- if ($drinkstored<=0) { skip; }
- freestored "unit",1,106,1;
- $drinkstored--;
- find 39,1;
- if ($drinkstored==0) {
- model "gfx\mc_leaf\tub_empty.b3d";
- $drinktype=0;
- }
- event "use";
- }
- on:use {
- local $me;
- $me=currentid();
- clear;
- add "In dieses Teil kann ich bis zu 20 Wasser, Bier oder Wein einlagern.";
- add "Zum Abfüllen benötige ich leere Flaschen.";
- add "Was soll ich tun?";
- msgbox "Getränke";
- if ($drinkstored<$drinkstoredmax) {
- if ((($drinktype==0) or ($drinktype==1)) && (count_stored("unit",1,38)>0)) {
- button 0,"Wasser einlagern",12,"event getstuff_water,object,$me;";
- }
- if ((($drinktype==0) or ($drinktype==2)) && (count_stored("unit",1,828)>0)) {
- button 1,"Bier einlagern",12,"event getstuff_beer,object,$me;";
- }
- if ((($drinktype==0) or ($drinktype==3)) && (count_stored("unit",1,39)>0)) {
- button 2,"Wein einlagern",12,"event getstuff_wine,object,$me;";
- }
- }
- if ($drinkstored>0) {
- if (($drinktype==1) && (storage("unit",1,0)>=500)) {
- button 3,"Wasser abfüllen",13,"event getdrinks_water,object,$me;";
- }
- if (($drinktype==2) && (storage("unit",1,0)>=500)) {
- button 4,"Bier abfüllen",13,"event getdrinks_beer,object,$me;";
- }
- if (($drinktype==3) && (storage("unit",1,0)>=500)) {
- button 5,"Wein abfüllen",13,"event getdrinks_wine,object,$me;";
- }
- }
- button 7,"Nix",3,"closemenu;";
- freevar $me;
- }
- script=end
- ##########
- id=818
- name=Bottich mit Wasser
- icon=gfx\mc_leaf\icon_tub_water.bmp
- group=stuff,town,ext,mcleaf
- model=gfx\mc_leaf\tub_water.b3d
- health=1000
- mat=wood
- maxweight=10000
- ##########
- id=819
- name=Bottich mit Wein
- icon=gfx\mc_leaf\icon_tub_wine.bmp
- group=stuff,town,ext,mcleaf
- model=gfx\mc_leaf\tub_wine.b3d
- health=1000
- mat=wood
- maxweight=10000
- ##########
- id=820
- name=Bottich mit Bier
- icon=gfx\mc_leaf\icon_tub_beer.bmp
- group=stuff,town,ext,mcleaf
- model=gfx\mc_leaf\tub_beer.b3d
- health=1000
- mat=wood
- maxweight=10000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement