var id;
var fuelId=211; //for example
var hasFuel=false;
var itemId=212; //for example
function modTick(){
for(i=0; i<21; i++) { //how big is the inventory?
id=Player.getInventorySlot(i);
if(id==fuelId){
hasFuel=true;
break; //not sure if javascript has this
}
}
}
function useItem(x,y,z, i, B){
if(i==itemId&amp;&amp;hasFuel==true){
do whatever
}
}
var id;
var fuelId=211; //for example
var hasFuel=false;
var itemId=212; //for example
function modTick(){
for(i=0; i<26; i++) { //how big is the inventory?
id=Player.getInventorySlot(i);
if(id==fuelId){
hasFuel=true;
}else{hasFuel = false;}}}
function useItem(x,y,z, i, B){
if(i==itemId&&hasFuel==true){
print("gots dem fuelz");
}}
?????
How would you add that kind of code?
What can you put on "Do Whatever"?
var fuelId=211; //for example
var hasFuel=false;
var itemId=212; //for example
function modTick(){
for(i=0; i<26; i++) { //how big is the inventory?
id=Player.getInventorySlot(i);
if(id==fuelId){
hasFuel=true;
}else{hasFuel = false;}}}
function useItem(x,y,z, i, B){
if(i==itemId&&hasFuel==true){
print("gots dem fuelz");
}}
Follow @Darth377Apps
Please check out my Twitter account!
I have been working on a few games!
Give me ALL THE INTERNETS!