Purpose: To make An object be clickable so you can get EXP from it for a skill. This will stop rapid tellying, therefore means less lag.
Difficulty: Depends.. If you are new, it might be 4/10 but if you are experienced probably 1-2/10. Copy and Paste Mostly..
Requirements: Fedexers Global Object TuT : http://www.moparscape.org/smf/index....topicseen.html
Even if you dont want to do my TuT i suggest you complete Fedexers because its VERY VERY UsefuLL!!
Server Base: I used PiMpEdScApE (Pimpscape source). Should work with all other than P16 and Testscape (mabey they might work.. go for it )
Classes Modified: Client.Java
ALWAYS BACK UP THE FILE YOU ARE EDITING BEFORE DOING ANY UPDATES PLEASE!!!!
1. Search for
Code:
public void NewObjects() {
2. Look for
Code:
AddGlobalObject(3004, 3383, 2469, 0, 10);//portal
3. This is the object Fedexer used to start you off right? Now... Add a new object under that one so it should look something like
Code:
AddGlobalObject(3253, 3436, 2469,0, 10);//mageportal
This has added a Big red portal in the dummy room. You can change the 3253, 3436 to the Co-ords you want the Object to be located at.
So all in all the newobjects should look like
Code:
public void NewObjects() {
AddGlobalObject(3004, 3383, 2469, 0, 10);//portal
AddGlobalObject(3253, 3436, 2469,0, 10);//mageportal
4. Now we need to make a new case for our mage portal. So, search for
and go to the end of that case.
5. Now for our new case, it will look like
Code:
case 2469:
if(actionTimer == 0) {
sendMessage(" You feel power rush through your body!! You Get Some Mage Exp.");
actionTimer = 10;
setAnimation(1110);
addSkillXP((950*playerLevel[6]), 6);
updateRequired = true;
appearanceUpdateRequired = true;
}
break;
Put this case above or under any other case.
-----------------------------------------------------
Code:
addSkillXP((950*playerLevel[6]), 6);
950 is the amount of exp you get so you can change that to your liking. The [6], 6); part is the level to get exp for so you can change it to any other skill you want. 6 is mage.
Code:
setAnimation(1110);
This is the animation I used. You look like you are doing the matrix.. LoL change it to what animation ID you want if you want to.. but it looks cool
-------------------------------------------------------
Don't wanna use my red portal??
If you dont want to use my portal simply change the 2469 is the newobject void to your object id. Dont forget, you need to change the case number to the new object ID aswell if you do this.
Creditz: 90% Me (Mod Chabbra) and 10% Fedexer for his 1337 TuT. This is my first Tutorial too!!!!!!
Picture:
Post if you used or please post comments