PDA

View Full Version : DeltaScape useful staff



xx k03d xx
June 22nd, 2010, 16:44
thanks sanity

Real dragon spear:

Replace your dragon spear special with mine

if(playerEquipment[playerWeapon] == 1249 && specialAmount > 24){
specialAmount -= 25;
dspear();
lastSpecial = System.currentTimeMillis();
startAnimation(405);
specGFX(253);
specOn = false;
}

Under:

public class client extends Player implements Runnable {
add



public int stunnedTime;
public void dspear(){
client c = (client) PlayerHandler.players[AttackingOn];
c.stunnedTime = 5000;
c.combatDelay = 7;
c.lastStun = System.currentTimeMillis();
if(absX > c.absX){
c.resetPos(c.absX - 1, c.absY, 0);
//c.WalkTo2(-1,0);
c.specGFX(80);
return;
}
if(absX < c.absX){
c.resetPos(c.absX + 1, c.absY, 0);
//c.WalkTo2(1,0);
c.specGFX(80);
return;
}
if(absY > c.absY){
c.resetPos(c.absX, c.absY-1, 0);
//c.WalkTo2(0,-1);
c.specGFX(80);
return;
}
if(absY < c.absY){
c.resetPos(c.absX, c.absY + 1, 0);
//c.WalkTo2(0,1);
c.specGFX(80);
return;
}
}
find

public void followDirection2(){
then search

boolean UseRing = false;
above it add


if(System.currentTimeMillis() - lastStun < stunnedTime) {
sM("You're stunned.");
followID = 0;
AttackingOn = 0;
return;
}

search

// regular walk
find a suitable spot for this

if(System.currentTimeMillis() - lastStun < stunnedTime) {
sM("You're stunned.");
break;
}

Massive glitch ( when player dies and gets smited he clicks protect item sometimes he can save he's item.

open clickingmost.java
search

case 97188://Protect Item
under with the rest of the returns add

if(c.deathStage > 0){
return;
}


Proper multibarrage method


if (mage.multiCombat() && itMultis)
multiBarrage(splash, mage.playerId, spellID);
}


public void multiBarrage(boolean splash, int otherPlayer, int spell){
int maxDamage = getSpellDamage(spell);
client c2 = getClient(otherPlayer);
for (Player p : server.playerHandler.players){
if (p == null)
continue;
client p2 = (client) p;
if (p2.playerName == null)
continue;
if (p2.playerId == otherPlayer)
continue;
if (!checkWildReqs(p2.playerId))
continue;
if (!checkMultiReqs(p2.playerId))
continue;
if (!p2.multiCombat())
continue;
if (p2.playerId == this.playerId)
continue;
if (p2.distanceToPoint(c2.absX, c2.absY) > 1)
continue;

if (splash){
p2.specGFX(85);
continue;
} else {
if (misc.random(mageAtk()) > misc.random(p2.mageDef())){
p.hitDiff = misc.random(maxDamage);
if (p.playerLevel[3] - p.hitDiff < 0)
p.hitDiff = p.playerLevel[3];
p.dealDamage(p.hitDiff);
p.updateRequired = true;
p.hitUpdateRequired = true;
p.hitDiff = p.hitDiff;
c2.KillerId = playerId;
p2.lowGFX(getEnd(spell),0);
p2.applySpellEffect(spell,playerId,p.hitDiff);
p2.playerLevel[5] -= (int) (p.hitDiff/4);
p2.sendPrayer();
} else {
p2.specGFX(85);
continue;
}

}
}
}

vengeance add on


search in clickingmost.java

if (!c.HasItemAmount(553, 4) || !c.HasItemAmount(560, 2) || !c.HasItemAmount(557, 10)) {
c.sM("You don't have enough runes to cast this spell.");
} else
above it add

if(c.vengon == true){
c.sM("You already have vengeance casted.");
return;
}

how to add a nice login message

Only the registered members can see the link.

add this next to your welcome to your servernamehere:

infodia("Official server of Only the registered members can see the link.", "Type ::help and ::commands.", "Forums: Only the registered members can see the link. ", "Support the server Only the registered members can see the link.", "Welcome to Dds-specz");

add this:

public void infodia(String text, String text2, String text3, String text4, String title){//by Grey
sendFrame126(title, 6180);
sendFrame126(text, 6181);
sendFrame126(text2, 6182);
sendFrame126(text3, 6183);
sendFrame126(text4, 6184);
sendFrame164(6179);
}
under

public class client extends Player implements Runnable {

XxBryantD
June 22nd, 2010, 17:11
is this 317 if so might use

TehCow
June 22nd, 2010, 17:23
is this 317 if so might use

Obvisouly is 317.

xx k03d xx
June 23rd, 2010, 21:37
Yes it is 317 lol.

Fenway`
June 24th, 2010, 04:15
Only the registered members can see the link.

liked that, idk why i didnt think of it before /facepalm

it is pretty useful staff. nice job

Aaron
June 24th, 2010, 04:22
Very nice man, I'm going to try to add this to my 317 project, Thanks alot for the help!

Fenway`
June 24th, 2010, 05:54
if your going to c/p from rune-serba, atleast give credits to bombs pure

fr00zen
June 24th, 2010, 05:57
damn login message is hott. nice job.

Mohammad
June 28th, 2010, 14:00
Why so much delta these days!?
Good job anyways -.- help converting to devo?

xx k03d xx
August 11th, 2010, 21:12
if your going to c/p from rune-serba, atleast give credits to bombs pure
i am bombs pure