hey i have devolution 7 and i can find tyhe make object or anything do no wat to search for on devolution 7?
|
|

This is a Tut on how to add portals and how to make them tele you somewhere..
Quite easy if you know what you are doing.
credits to crzybob4eva and me.
File you go to: Client.Java (If you don't know what that is stop now).
First of all search for:
[HTML]addGlobalObject([/HTML]
Or search for:
[HTML]makeGlobalObject([/HTML]
You should see a bunch of things there.
Go to the bottom of the list and add:
[HTML]addGlobalObject(XXXX, YYYY, OOOO, 0, 10);//[/HTML]what ever you added here
XXXX--The X Coord, YYYY-- The Y Coord, OOOO-- The Object ID, 0-- Which direction it will face, 10, idk you'll have to figure that out yourself.
Lets say I want to add a portal heres what I type using makeGlobalObject:
[HTML]
makeGlobalObject(2901, 3547, 7319, 0, 10);//portal[/HTML]
Thats the member portal on Project Czar.
Heres a portal on my server using addGlobalObject:
[HTML]addGlobalObject(2842, 10208, 7316, 0, 10);//portal[/HTML]
Or Just Use Any portal.
Now lets make it tele you somewhere.
Lets use the second portal I showed you which will be:
[HTML]addGlobalObject(2842, 10208, 7316, 0, 10);//portal
[/HTML]
Search for case 7316 and if its not in there make it.
After you make it like this:
[HTML]
case 7316: //portal
if(actionTimer == 0) {
teleportToX = XXXX;<----CoordX
teleportToY = YYYY;<----CoordY
sendMessage("ENTER TEXT HERE");
PlayerHandler.messageToAll = playerName+" enter text here";
updateRequired = true;
appearanceUpdateRequired = true;
actionTimer = 5;
}
[/HTML]
If you want to make a member portal make it look somewhat like this:
CCCC = the case.
[HTML]case CCCC: //
if(playerIsMember == 1)
teleportToX = 2400;
teleportToY = 4850;
sendMessage("you teleport to the members area.");
if(playerIsMember == 0)
sendMessage("you are a non-member. You can't go there!");
break;
[/HTML]
If you want to make it for mod+ do this:
[HTML]case CCCC: //
if(playerRights == 1)
teleportToX = 2400;
teleportToY = 4850;
sendMessage("you teleport to the members area.");
if(playerIsMember == 0)
sendMessage("you are a moderator. You can't go there!");
break/HTML]
hey i have devolution 7 and i can find tyhe make object or anything do no wat to search for on devolution 7?

this is pretty straight forward, this has been released ages ago, but thanks for posting it again![]()

| « second click npc fix! MUST READ | NPC Attack Speed » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |