PDA

View Full Version : [317] Donator Only Tele Command [317] Snippet



Xdragon
June 20th, 2010, 15:19
For the first time i made this.
I never have seen a command like this so im gonna do it on runelocus.

Add this at your commands list:

if(command.startsWith("zone") && (donator == 1) {
triggerTele(xxxx, yyyy, 0);
brightness = 4;
talk("Welcome to The Donator City "+ playerName + "", 498);
}

If u want Explanation check my other thread : Click here for it! (Only the registered members can see the link.)

Here im Gonna Explain 1 thing :

talk("Welcome to The Donator City "+ playerName + "", 498);

It means that a npc talks to you like vannaka change the 498 to Every npc code u want

U can also make it like this :

if(command.startsWith("zone") && (donator == 1) {
triggerTele(xxxx, yyyy, 0);
brightness = 4;
sM("Welcome to The Donator City "+ playerName + "");
}

Than it show a a Message Or you just can make it like this :


if(command.startsWith("zone") && (donator == 1) {
triggerTele(xxxx, yyyy, 0);
brightness = 4;
yell(""+ playerName + " is now in Donator City");
}

Than everybody knows u did the command

Credits
50% me
50% Delta
( I hope its the good % :) )

XxBryantD
June 20th, 2010, 15:43
looks good might use

Xdragon
June 20th, 2010, 15:46
Ty =]

Yea we need a Snippet section and the rep thing.

Ninga Nun
June 25th, 2010, 09:35
Ty :) these donator tuts of yours are so good,
I'd rep ++ if I could but there isn't any so if it ever comes ill do so :)
Any way, thanks for the tut

Xdragon
June 27th, 2010, 06:35
Yw :D