RE: Hello Im looking for some help on Ineisis Online
Hello, The only way I know how to do it is by making it
Code:
if(Slots()==SLOT_OBJ)
under object.
This is how my code looks.
Code:
if(ActionDelayTime<=0)
{
if(BlockHighlight)
{
if(Slots()==SLOT_OBJ)
{
if(Ms.bp(0))if(TrySetBlock(BlockPos, null ))ActionDelayTime=ActionDelayTimeVal;
if(Ms.bp(1))if(TrySetBlock(BlockPos, UID(1688078526, 1081319622, 3164799626, 2997672669)))ActionDelayTime=ActionDelayTimeVal;
}
if(Slots()==SLOT_BLOCK)
{
if(Ms.bp(0))if(TrySetBlock(BlockPos, null ))ActionDelayTime=ActionDelayTimeVal;
if(Ms.bp(1))if(TrySetBlock(BlockPos, UID(3051439999, 1206446924, 2624658864, 2640601485)))ActionDelayTime=ActionDelayTimeVal;
}else
if(Slots()==SLOT_OBJ)
{
if(Ms.bp(0))if(!account.paid)CM.NewKeep("Subscribe to use this feature", YELLOW);else if(TrySetObj(BlockPos, PI-Plr.angle.x, ObjList.get0()))ActionDelayTime=ActionDelayTimeVal;
if(Ms.bp(1))if(!account.paid)CM.NewKeep("Subscribe to use this feature", YELLOW);else if(TrySetObj(BlockPos, PI-Plr.angle.x, ObjList.get1()))ActionDelayTime=ActionDelayTimeVal;
if(Ms.bp(0))if(!account.paid)CM.NewKeep("Subscribe to use this feature", YELLOW);else if(TrySetObj(BlockPos, PI-Plr.angle.x, ObjList.get1()))ActionDelayTime=ActionDelayTimeVal;
if(Ms.bp(2))if(!account.paid)CM.NewKeep("Subscribe to use this feature", YELLOW);else if(TrySetObj(BlockPos, PI-Plr.angle.x, ObjList.get1()))ActionDelayTime=ActionDelayTimeVal;
}
}
if(HeightmapHighlight)
{
if(Slots()==SLOT_HEIGHT)
{
if(Ms.bp(0) || Ms.bp(1)){ChangeHeight(SignBool(Ms.bp(1))); ActionDelayTime=ActionDelayTimeVal;}
}else
if(Slots()==SLOT_MTRL)
{
if(Ms.b(0)){if(SetMaterial(HeightmapPos.xz(), HeightmapMaterialList.get0()))ActionDelayTime=ActionDelayTimeVal;}else
if(Ms.b(1)){if(SetMaterial(HeightmapPos.xz(), HeightmapMaterialList.get1()))ActionDelayTime=ActionDelayTimeVal;}
}else
if(Slots()==SLOT_GRASS)
{
if(Ms.b(0)){if(SetGrass(HeightmapPos.xz(), null ))ActionDelayTime=GrassDelayTimeVal;}else
if(Ms.b(1)){if(SetGrass(HeightmapPos.xz(), GrassDefault.get()))ActionDelayTime=GrassDelayTimeVal;}
}
}
}
}
Thats the way I find it working Iv tryed.
Code:
if(ActionDelayTime<=0)
{
if(BlockHighlight)
{
if(Slots()==SLOT_BLOCK)
{
if(Ms.bp(0))if(TrySetBlock(BlockPos, null ))ActionDelayTime=ActionDelayTimeVal;
if(Ms.bp(1))if(TrySetBlock(BlockPos, UID(1688078526, 1081319622, 3164799626, 2997672669)))ActionDelayTime=ActionDelayTimeVal;
}
if(Slots()==SLOT_BLOCK)
{
if(Ms.bp(0))if(TrySetBlock(BlockPos, null ))ActionDelayTime=ActionDelayTimeVal;
if(Ms.bp(1))if(TrySetBlock(BlockPos, UID(3051439999, 1206446924, 2624658864, 2640601485)))ActionDelayTime=ActionDelayTimeVal;
}else
if(Slots()==SLOT_OBJ)
{
if(Ms.bp(0))if(!account.paid)CM.NewKeep("Subscribe to use this feature", YELLOW);else if(TrySetObj(BlockPos, PI-Plr.angle.x, ObjList.get0()))ActionDelayTime=ActionDelayTimeVal;
if(Ms.bp(1))if(!account.paid)CM.NewKeep("Subscribe to use this feature", YELLOW);else if(TrySetObj(BlockPos, PI-Plr.angle.x, ObjList.get1()))ActionDelayTime=ActionDelayTimeVal;
if(Ms.bp(0))if(!account.paid)CM.NewKeep("Subscribe to use this feature", YELLOW);else if(TrySetObj(BlockPos, PI-Plr.angle.x, ObjList.get1()))ActionDelayTime=ActionDelayTimeVal;
if(Ms.bp(2))if(!account.paid)CM.NewKeep("Subscribe to use this feature", YELLOW);else if(TrySetObj(BlockPos, PI-Plr.angle.x, ObjList.get1()))ActionDelayTime=ActionDelayTimeVal;
}
}
if(HeightmapHighlight)
{
if(Slots()==SLOT_HEIGHT)
{
if(Ms.bp(0) || Ms.bp(1)){ChangeHeight(SignBool(Ms.bp(1))); ActionDelayTime=ActionDelayTimeVal;}
}else
if(Slots()==SLOT_MTRL)
{
if(Ms.b(0)){if(SetMaterial(HeightmapPos.xz(), HeightmapMaterialList.get0()))ActionDelayTime=ActionDelayTimeVal;}else
if(Ms.b(1)){if(SetMaterial(HeightmapPos.xz(), HeightmapMaterialList.get1()))ActionDelayTime=ActionDelayTimeVal;}
}else
if(Slots()==SLOT_GRASS)
{
if(Ms.b(0)){if(SetGrass(HeightmapPos.xz(), null ))ActionDelayTime=GrassDelayTimeVal;}else
if(Ms.b(1)){if(SetGrass(HeightmapPos.xz(), GrassDefault.get()))ActionDelayTime=GrassDelayTimeVal;}
}
}
}
}
if I do it this way I only get one block and cant change it, to another block, all I want to do is have two blocks. But the way the code is I only get one block. I hop that makes sents
|