Alright so i added barrows mini...fixed the errors by fixing the methods...and now for some reason...it just isnt working...
your supose to climb down a man hole then get teleported to a cage.
and after killing the barrows you receive a key and are suppose to use it on a chest then get tele to the starting place of where the man hole is.
why isnt this work?
here is the coding for the teleporting and shit...this is for devo 2.6
idk why its not working.
Code:
case 881: // i used a manhole :p
if (misc.random(6) == 1)
{
teleportToX = 3014;
teleportToY = 3194;
CAM().sendMessage("You telle to "+GetNpcName(2030)+". Good luck!!");
}
else if (misc.random(6) == 2)
{
teleportToX = 3014;
teleportToY = 3191;
CAM().sendMessage("You telle to "+GetNpcName(2025)+". Good luck!!");
}
else if (misc.random(6) == 3)
{
teleportToX = 3014;
teleportToY = 3188;
CAM().sendMessage("You telle to "+GetNpcName(2026)+". Good luck!!");
}
else if (misc.random(6) == 4)
{
teleportToX = 3018;
teleportToY = 3188;
CAM().sendMessage("You telle to "+GetNpcName(2027)+". Good luck!!");
}
else if (misc.random(6) == 5)
{
teleportToX = 3019;
teleportToY = 3180;
CAM().sendMessage("You telle to "+GetNpcName(2028)+". Good luck!!");
}
else if (misc.random(6) == 6)
{
teleportToX = 3014;
teleportToY = 3181;
CAM().sendMessage("You telle to "+GetNpcName(2029)+". Good luck!!");
}
break;
ok now the code above is saying that if i click on the man whole ill randomly be teleported to one of the above coords correct?
now this code is the chest code.
Code:
case 10284: //barrows chest
{
if(playerHasItem(601) == true)
{
addItem(Item.randomah(), 1);
addItem(995, 250000);
CAM().sendMessage("Hope you got what you wanted!!");
teleportToX = 3097;
teleportToY = 3273;
deleteItem(601, GetItemSlot(601), 1);
}
else if(playerHasItem(605) == true)
{
addItem(Item.randomdh(), 1);
addItem(995, 250000);
CAM().sendMessage("Hope you got what you wanted!!");
teleportToX = 3097;
teleportToY = 3273;
deleteItem(605, GetItemSlot(605), 1);
}
else if(playerHasItem(709) == true)
{
addItem(Item.randomgu(), 1);
addItem(995, 250000);
CAM().sendMessage("Hope you got what you wanted!!");
teleportToX = 3097;
teleportToY = 3273;
deleteItem(709, GetItemSlot(709), 1);
}
else if(playerHasItem(758) == true)
{
addItem(Item.randomkar(), 1);
addItem(995, 250000);
CAM().sendMessage("Hope you got what you wanted!!");
teleportToX = 3097;
teleportToY = 3273;
deleteItem(758, GetItemSlot(758), 1);
}
else if(playerHasItem(759) == true)
{
addItem(Item.randomto(), 1);
addItem(995, 250000);
CAM().sendMessage("Hope you got what you wanted!!");
teleportToX = 3097;
teleportToY = 3273;
deleteItem(759, GetItemSlot(759), 1);
}
else if(playerHasItem(760) == true)
{
addItem(Item.randomva(), 1);
addItem(995, 250000);
CAM().sendMessage("Hope you got what you wanted!!");
teleportToX = 3097;
teleportToY = 3273;
deleteItem(760, GetItemSlot(760), 1);
}
}
break;
this code tells it that when you use a key on the chest you get your prize and it will tele you back.
so why isnt this working...im pretty sure ive fixed the methods to work with this source...any suggestions?
any one who helps will be repped.
also to make the question clear...i can get the man hole or the keys working