PDA

View Full Version : 317 - Making donar or staff only portals



iMPeX
June 29th, 2010, 01:07
First off, go into your client.java, server sided.

Next, find...


case 132:

Right below that, add this...


if(objectID == ####)
{
if(donator == 1)
{
toX = ##;
toY = ##;
sM("Example Text.");
} else
{
sM("You must be a donar to use this portal.");
}
}

Of course, change #### to the portal ID.
Also, changing the ## after toX and toY to your X and Y coords.

To make a portal staff only, add this...


if(objectID == ####)
{
if(playerRights >= 1)
{
toX = ##;
toY = ##;
sM("Example Text.");
} else
{
sM("You must be a staff member to use this portal.");
}

Again, changing all that is necessary.

Thanks
iMPeX

James
July 27th, 2010, 19:48
Tutorial very good!!! well done :)

Owner John
September 29th, 2010, 18:54
I got this while adding to class 132

client.java:18380: cannot find symbol
symbol : variable ObjectID
location: class client
if(ObjectID == 4155)
^
1 error
Finished!
Press any key to continue . . .

Owner John
September 29th, 2010, 19:01
Never mind i fixed!