1
Snippets / Re: Construction base
« on: April 01, 2011, 11:13:56 am »
OK.
I suppose on RK, no one accepts constructive criticism or compliments.
I suppose on RK, no one accepts constructive criticism or compliments.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
But atm you dont balance you run :/ Ill be fixing this up Unless somebody else wants to.I fixed it so you can use it.
if(objectID == 2295){
sM("You balance across the log!");
walkTo(0, -7);
startEmote(762);
addSkillXP(50, 16);
}not sure startEmote exists in Delta, haven't worked with it in a long time.xD 762 is the emote for balancing.

I was just trying to tell him where to use inConstruction() since he stated that you need to do the whole "public boolean inConstruction()". :)Looks good.
It's easy to make it into a dialog.
The part that you said "public boolean inConstruction() {"
You don't need to write that whole thing.
For example;Code: [Select]} // end the piece of code above, let's say it exists.Sorry if I misunderstood.
if(inConstruction() && playerLevel[11] < 0) {
triggerTele(3222, 3222, 0); // Teleports the player to lumbrudge xD.
}
Hope you get my point,.
Teleporting them to lumbridge for being in the construction area and having a skill level less than 0? I fail to see the point. Am I missing something?
switch(objectID) {
case 4876:
if(misc.random(3)== 1){
TheifStall("General stall", "and recieve some coins", 1, 50*playerLevel[17], 995, misc.random(3125), 0x340);
break;
case 4877:
if(misc.random(3)== 1){
TheifStall("Magic stall", "and recieve some coins", 41, 100*playerLevel[17], 995, misc.random(6250), 0x340);
break;
case 4878:
if(misc.random(3)== 1){
TheifStall("Scimitar stall", "and recieve some coins", 72, 200*playerLevel[17], 995, misc.random(12500), 0x340);
break;
case 4874:
if(misc.random(3)== 1){
TheifStall("Crafting stall", "and recieve some coins", 93, 400*playerLevel[17], 995, misc.random(25500), 0x340);
break; 

} // end the piece of code above, let's say it exists.
if(inConstruction() && playerLevel[11] < 0) {
triggerTele(3222, 3222, 0); // Teleports the player to lumbrudge xD.
}Sorry if I misunderstood.
.