Yellow: Command
Orange: Rights
Lime: Extra
Magenta: Coordinates
Code:
if(command.startsWith("MyPlace") && playerRights >= 0) {
if(wildyLevel > 20 && isInWilderness(absX, absY, 1)){
sM("You cannot teleport above level 20 wilderness!");
} else { // It say it self...
toX = 2000;
toY = 2000;
sM("Here U can put a Message! :P");
resetfollowers();
}
}
If I where you I should read the commands not only "Copy And Past" becouse of you can learn alout... :P
i dont get the part about height in the first set of code after the cord of the npc, what does the height do ?
height level = the height where the npc spawns.
the normal height is 1 and in mid-air is 2 and higher is 3+
The command includes >= 0. Noob coders cannot understand this, trust me. They can barely comprehend the concept of "coding" a command. Peope usually are like "what? yeah i can code, its ::command." That's a noob. There have been more than one. Revise this. Add some notes to those playerRights.
@matijno0o, the height of 3 is underground if i remember correctly. It goes from 0+ and youre wrong. 1 is up 1 level. 2 is up 2 levels. No buildings in runescape are higher than that. 3 is underground.
and what I'm saying is, at least make it so they know what it does, like "1 = mod 2 = admin 3 = owner 0 = regular player."
Then again you don't need to do that now.
Also matijno0o, I don't believe you need to edit that npc heightlevel, as it is most likely defaulted to your height level, as it should spawn directly on the spot you stand.
Aside from criticism and help, I could use some thanks, because I'm pretty sure I helped here, and if not, I tried at least.
Note: the spawned npc's with the ::npc command WILL NOT respawn! That means if you restart your server or kill it, you will have to spawn another. ::Npc is most useful for spawning a quick shop for yourself.