Welcome to The MoparScape Forums
November 21, 2009, 11:29:05 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Moparisthebest Forums!
 
   Home   Help Search Staff List Login Register  

Pages: [1] 2
 1 
 on: April 04, 2008, 10:53:39 am 
Started by red da dev - Last post by pisleowner
heywhen i do it it sais "orphaned case" ...can u help plzz???
i donno the prob...can u maybe fix a video?

 2 
 on: February 21, 2008, 02:19:32 pm 
Started by red da dev - Last post by red da dev
Original Post: Moparscape
NOTE:I AM REDFRODUDE27
Objective:To add a portal and make it teleport you
Server Base:Any
Difficulty:1/10
Assumed Knowledge:Being able to read and understand basic java
Files Modified:Client.java
In this tut I will show you how to add a portal and make it teleport you somewhere.

Beginning of tut:
You should have used Fedexers tut.  If not here is one that is very simple:
http://www.sythe.org/showthread.php?t=365648
I got a few errors when I first used it but it would work god for all of you guys.  If you get errors post 'em.

So once you have done that tut do this:
First, to add the portal search for:

Code:
public void NewObjects()

Than you should see something like this:
Code:
makeGlobalObject(3004, 3383, 2469, 0, 10);//portal
I will tell you which part means what.
The '3004' is the X axis and the '3383' is the Y axis.  The '2469' is the portal ID.  The '0' is the face and the '10' is the Object Type.  This should help for that stuff:
Code:
//FACE: 0= WEST | -1 = NORTH | -2 = EAST | -3 = SOUTH
//ObjectType: 0-3 wall objects, 4-8 wall decoration, 9: diag. walls, 10-11 world objects, 12-21: roofs, 22: floor decoration
See very easy!!!
Here is the object list if you need to pick a portal: http://uppit.com/X8GAGC
NOTE: I added it as an attachment just in case this link gets deleted or messed up
I posted on this site the attachment if you need: http://moparscape.org/smf/index.php/topic,240371.0.html

Now it is time to do the teleporting portal stuff.
Ok now search for:
Code:
case ####
Replace #### with the portal's ID.  If it is not there create it by adding:
Code:
case ####:
break;
Replace #### with the portal's ID.
Than add this in between the case and break:
Code:
if(actionTimer == 0) {
teleportToX = ####;
teleportToY = &&&&;
sendMessage("Your message here");
updateRequired = true;
appearanceUpdateRequired = true;
actionTimer = 5;
}
The #### is the X axis of where you want to teleport and the &&&& is the Y axis of where you want to teleport. Than put your message in the "your message here" area. I know there was a telportToX and Y thing but I felt like saying that =] It's easier
So, I advise you to put your X, Y, and message in the spots I told you.

NOTE: Make sure that the case is the portals ID. 

And if you want it to make an emote or gfx use this:
Code:
stillgfx(gfxID, absY, absX);
That is for the GFX which you should replace with a GFX's ID
This is for the emotes:
Code:
setAnimation(ID);
And replace the ID with the emote's ID.
Here is a GFX list: http://s1.uppit.com/d/DTXFQM
And here is the emote list: http://s1.uppit.com/d/3MX46D

So you finished product should look like this:
Code:
case ####:
if(actionTimer == 0) {
stillgfx(gfxID, absY, absX);
setAnimation(ID);
teleportToX = ####;
teleportToY = &&&&;
sendMessage("Your message here");
updateRequired = true;
appearanceUpdateRequired = true;
actionTimer = 5;
}
break;
But I suggest that you only use either the GFX or emote.  It may lag if you do one.  So if you want it to not lag remove it.

Credits:10% to Fedexer on how to add object's.  And 90% to me for showing you guys how =]

This is very easy so please post your feedback. =]

 3 
 on: January 19, 2008, 11:20:49 am 
Started by Moparisthebest - Last post by lylaznmc
Hey, i just downloaded your hippyscape and extracted the RAR into a folder
What do you do from that point, i want to to play your server,What do you press to play

 4 
 on: January 12, 2008, 09:15:18 am 
Started by MikeyofaDOWN - Last post by MikeyofaDOWN
Okay, lets say you want the Target to give you range EXP (Very easy!)

If you already have an object that gives EXP or something;
CTRL + F

Code:
Case ####:

Replace the hashes with the ID of the object

If you want to the Target (2513 for the ID) to give RANGE EXP;

You'd need to do something like this;

Code:

case 2513:
case 2514:
if(actionTimer == 0) {
sendMessage("You shoot at the target.");
setAnimation(426);
addSkillXP((400*playerLevel[3]), 3);
addSkillXP((6000*playerLevel[4]), 4);
addSkillXP((5*playerLevel[18]), 18);
addItem(892, 10000);
updateRequired = true;
appearanceUpdateRequired = true;
}
break;



[size=13pt]Things you can replace;[/size]

[code]
addItem(892, 10000);
This is saying clicking on the target would give you 10K Rune Arrows, you can change it so it gives cash. Wink


Code:
addSkillXP((400*playerLevel[3]), 3);
addSkillXP((6000*playerLevel[4]), 4);
addSkillXP((5*playerLevel[18]), 18);

This is the EXP you'd receive
Notice it says
Code:
addSkillXP((400*playerLevel[3]), 3);
?

That's saying it would give you 400 EXP times your current level for that Level ID.

Code:
if(actionTimer == 0) {
sendMessage("You shoot at the target.");

The actionTimer is how often it shows the animation and gives exp, PER SECOND.

The message is easily changed, Wink
Just change it to whatever you want the object message to be.


Code:
setAnimation(426);

This is the Emote ID for it, if you're using the target, you should keep it at 426. Wink


HOPE THIS HELPED[/code]

 5 
 on: November 06, 2007, 05:31:26 pm 
Started by Moparisthebest - Last post by vanack
DAMN! I meen, well, hiya again Cheesy

 6 
 on: November 06, 2007, 05:27:51 pm 
Started by Moparisthebest - Last post by vanack
Though we all trust you my buddy, we need scan picture! Cheesy

 7 
 on: November 06, 2007, 05:26:40 pm 
Started by Moparisthebest - Last post by vanack
Well, I have the hippyscape v2 server base, I could uppit if you guys wanted, and posted link o.O

 8 
 on: October 26, 2007, 07:31:44 pm 
Started by Moparisthebest - Last post by Moparisthebest
Hippiescape v2

 9 
 on: October 20, 2007, 07:43:40 pm 
Started by Moparisthebest - Last post by Gu3st
Dude what server is this?

 10 
 on: October 17, 2007, 10:20:51 pm 
Started by Moparisthebest - Last post by C W
i'm not joking that shits pimpin

Pages: [1] 2
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2006, Simple Machines LLC
ServerBeach Coupon
Page created in 0.28 seconds with 10 queries.