ConflictionX 562 loading 657
+3
Auris
Skill3r
0king o
7 posters
Page 2 of 3
Page 2 of 3 • 1, 2, 3
Re: ConflictionX 562 loading 657
Haha idk lol i guess i didnt mean it that way & i got nex in the correct coords but idk if my client is messing up or it the server but its glitching with the skills :/
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Re: ConflictionX 562 loading 657
Woot for me
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Re: ConflictionX 562 loading 657
Never even thought of trying the 562-657. If we managed to get this + some content we would quickly overflow with new players.
Also, after beta testing ect, if the source is stable then we will probs ditch the 562-602 all together.
0king, if you upload what you have done to mediafire, send me the link on msn. I'll do some shet over the weekend
I get paid on sunday, so if the dedi aint here, ill buy like a 1gb VPS to host for like a few days, then it will get handed over.
It's alot of work needed done to the source, from my understanding it is pretty much empty?
Also, after beta testing ect, if the source is stable then we will probs ditch the 562-602 all together.
0king, if you upload what you have done to mediafire, send me the link on msn. I'll do some shet over the weekend
I get paid on sunday, so if the dedi aint here, ill buy like a 1gb VPS to host for like a few days, then it will get handed over.
It's alot of work needed done to the source, from my understanding it is pretty much empty?
Ricky1179- Ultra-Noob
- Posts : 19
Join date : 2011-06-29
Location : Scotland
Re: ConflictionX 562 loading 657
welll nothings change really im using the conflictionx source its just that my client is loading 657 cache and not 602 cache yeah i need to get rid of a flaw i have with the server
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Re: ConflictionX 562 loading 657
Add the Ukeys?
Ricky1179- Ultra-Noob
- Posts : 19
Join date : 2011-06-29
Location : Scotland
Re: ConflictionX 562 loading 657
these things sounds cool!
Skill3r- Kinda-Noob
- Posts : 53
Join date : 2011-07-16
Location : Norway
Re: ConflictionX 562 loading 657
Yeah ive added the Ukeys but im trying to get the Hp working thats whats throwing everything off, yeah for now im removing so i dont get so many bugs with the server. yeah ive added the mapdata, so it looks it exactly like current runescape other then that ihavent done a whole lot to the server.
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Re: ConflictionX 562 loading 657
If i can fix the bugs and everything on the server and you can host it ricky but for now im going to keep til i fix the hp after the hp is fixed ill upload and give u the link. im also going to make the client a jar file to make it easy
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Re: ConflictionX 562 loading 657
nice job you do! i can't wait for it
Skill3r- Kinda-Noob
- Posts : 53
Join date : 2011-07-16
Location : Norway
Re: ConflictionX 562 loading 657
Yeah i cant wait for it either its going to be epic lol but ill let ricky do some changes if he wants cause im only going to get it workin then handin him the source then ill just play
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Skill3r- Kinda-Noob
- Posts : 53
Join date : 2011-07-16
Location : Norway
Re: ConflictionX 562 loading 657
ActionSender.java and search for:
- Code:
sendPlayerOption("Follow", 2, false);
- Code:
sendConfig(5000, player.getHp());
- Code:
public int getHp() {
return skills.getLevel(Skills.HITPOINTS);
}
public int getMaxHp() {
return skills.getLevelForXp(Skills.HITPOINTS);
}
- Code:
public int getHp() {
return skills.getLevel(Skills.HITPOINTS)*10;
}
public int getMaxHp() {
return skills.getLevelForXp(Skills.HITPOINTS)*10;
}
Ricky1179- Ultra-Noob
- Posts : 19
Join date : 2011-06-29
Location : Scotland
Re: ConflictionX 562 loading 657
Yeah those idiots! on runelocus Lmao ive done that! i just need it to update now like when someone attack you! you lose hp
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Re: ConflictionX 562 loading 657
Server is ready now just add different things now, still gotta fix nex u dc sometimes during fights and gotta get corrst hitsplats still
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Re: ConflictionX 562 loading 657
Real Hitsplats are on RuneLocus also.
replace your Hits.java with this:
and in PlayerUpdate.java replace this:
with this:
do the same in NPCUpdate.java
replace your hit void in Player.java with this:
save, compile, finished
replace your Hits.java with this:
- Code:
package com.rs2hd.model;
/**
* Handles player hits.
* @author Graham
*
*/
public class Hits {
public static enum HitType {
NOTHING (-1),
CRIT (0),
NORMAL_DAMAGE (1),
POISON_DAMAGE (2),
DISEASE_DAMAGE (3),
PICK_DAMAGE (4),
CRIT_OTHER (5),
NORMAL_DAMAGE_OTHER (6),
POISON_DAMAGE_OTHER (7),
DISEASE_DAMAGE_OTHER (8),
PICK_DAMAGE_OTHER (9);
private final int type;
private HitType(int type) {
this.type = type;
}
public int getType() {
return this.type;
}
}
public static enum IconType {
NOTHING (-1),
NO_HIT (0),
MELEE (1),
RANGE (2),
MAGE (3),
DEFENCE (4),
DEFLECT (5);
private final int itype;
private IconType(int type) {
this.itype = type;
}
public int getIcon() {
return this.itype;
}
}
public static class Hit {
private HitType type;
private IconType icon;
private int damage;
public Hit(int damage, HitType type, IconType icon) {
this.type = type;
this.damage = damage;
this.icon = icon;
}
public HitType getType() {
return type;
}
public IconType getIType() {
return icon;
}
public int getDamage() {
return damage;
}
}
public Hits() {
hit1 = null;
hit2 = null;
}
private Hit hit1;
private Hit hit2;
public void setHit1(Hit hit) {
try {
this.hit1 = hit;
} catch(Exception e) {
}
}
public void setHit2(Hit hit) {
try {
this.hit2 = hit;
} catch(Exception e) {
}
}
public int getHitDamage1() {
try {
if(hit1 == null) {
return 0;
}
return hit1.damage;
} catch(Exception e) {
return 0;
}
}
public int getHitDamage2() {
try {
if(hit2 == null) {
return 0;
}
return hit2.damage;
} catch(Exception e) {
return 0;
}
}
public int getHitType1() {
try {
if(hit1 == null) {
return HitType.NOTHING.getType();
}
return hit1.type.getType();
} catch(Exception e) {
return 0;
}
}
public int getHitType2() {
try {
if(hit2 == null) {
return HitType.NOTHING.getType();
}
return hit2.type.getType();
} catch(Exception e) {
return 0;
}
}
public int getIconType1() {
try {
if(hit1 == null) {
return IconType.NOTHING.getIcon();
}
return hit1.icon.getIcon();
} catch(Exception e) {
return 0;
}
}
public int getIconType2() {
try {
if(hit2 == null) {
return IconType.NOTHING.getIcon();
}
return hit2.icon.getIcon();
} catch(Exception e) {
return 0;
}
}
public void clear() {
try {
hit1 = null;
hit2 = null;
} catch(Exception e) {
}
}
}
and in PlayerUpdate.java replace this:
- Code:
private static void appendHit2Update(Player p, StaticPacketBuilder updateBlock) {
try {
updateBlock.addSmart(p.getHits().getHitDamage2());
updateBlock.addByte((byte)p.getHits().getHitType2());
} catch(Exception e) {
}
}
private static void appendHitUpdate(Player p, StaticPacketBuilder updateBlock) {
try {
updateBlock.addSmart(p.getHits().getHitDamage1()); //var byte
updateBlock.addByteA(p.getHits().getHitType1());
int Amthp = p.getSkills().getLevel(3);
if (Amthp > p.getSkills().getLevelForXp(3))
Amthp = p.getSkills().getLevelForXp(3);
int hpRatio = Amthp * 255 / p.getSkills().getLevelForXp(3);
updateBlock.addByteC(hpRatio);
} catch(Exception e) {
}
}
with this:
- Code:
private static void appendHit2Update(Player p, StaticPacketBuilder updateBlock) {
try {
updateBlock.addSmart(p.getHits().getHitDamage2());
updateBlock.addByte((byte)p.getHits().getHitType2());
updateBlock.addByte((byte)p.getHits().getIconType2());
} catch(Exception e) {
}
}
private static void appendHitUpdate(Player p, StaticPacketBuilder updateBlock) {
try {
updateBlock.addSmart(p.getHits().getHitDamage1()); //var byte
updateBlock.addByteA(p.getHits().getHitType1());
int Amthp = p.getSkills().getLevel(3);
if (Amthp > p.getSkills().getLevelForXp(3))
Amthp = p.getSkills().getLevelForXp(3);
int hpRatio = Amthp * 255 / p.getSkills().getLevelForXp(3);
updateBlock.addByteC(hpRatio);
updateBlock.addByte((byte) p.getHits().getIconType1());
} catch(Exception e) {
}
}
do the same in NPCUpdate.java
replace your hit void in Player.java with this:
- Code:
public void hit(int damage) {
try {
if(damage > getSkills().getLevel(3)) {
damage = getSkills().getLevel(3);
}
if(getSkills().getLevel(3) <= 0) {
damage = 0;
}
if(damage == 0) {
hit(damage, Hits.HitType.NOTHING, Hits.IconType.NO_HIT);
} else {
hit(damage, Hits.HitType.NORMAL_DAMAGE, Hits.IconType.NOTHING);
}
getActionSender().sendConfig(5000, getSkills().getHitPoints());
} catch(Exception e) {
}
}
public void meleeHit(int damage) {
try {
if(damage > getSkills().getLevel(3)) {
damage = getSkills().getLevel(3);
}
if(getSkills().getLevel(3) <= 0) {
damage = 0;
}
if(damage == 0) {
hit(damage, Hits.HitType.NOTHING, Hits.IconType.NO_HIT);
} else {
hit(damage, Hits.HitType.NORMAL_DAMAGE, Hits.IconType.MELEE);
}
getActionSender().sendConfig(5000, getSkills().getHitPoints());
} catch(Exception e) {
}
}
public void rangeHit(int damage) {
try {
if(damage > getSkills().getLevel(3)) {
damage = getSkills().getLevel(3);
}
if(getSkills().getLevel(3) <= 0) {
damage = 0;
}
if(damage == 0) {
hit(damage, Hits.HitType.NOTHING, Hits.IconType.NO_HIT);
} else {
hit(damage, Hits.HitType.NORMAL_DAMAGE, Hits.IconType.RANGE);
}
getActionSender().sendConfig(5000, getSkills().getHitPoints());
} catch(Exception e) {
}
}
public void mageHit(int damage) {
try {
if(damage > getSkills().getLevel(3)) {
damage = getSkills().getLevel(3);
}
if(getSkills().getHitPoints() <= 0) {
damage = 0;
}
if(damage == 0) {
hit(damage, Hits.HitType.NOTHING, Hits.IconType.NO_HIT);
} else {
hit(damage, Hits.HitType.NORMAL_DAMAGE, Hits.IconType.MAGE);
}
getActionSender().sendConfig(5000, getSkills().getHitPoints());
} catch(Exception e) {
}
}
public void hit(int damage, Hits.HitType type, Hits.IconType icon) {
try {
if(damage > getSkills().getLevel(3)) {
damage = getSkills().getLevel(3);
}
if(!updateFlags.isHitUpdateRequired()) {
getHits().setHit1(new Hit(damage, type, icon));
updateFlags.setHitUpdateRequired(true);
} else {
if(!updateFlags.isHit2UpdateRequired()) {
getHits().setHit2(new Hit(damage, type, icon));
updateFlags.setHit2UpdateRequired(true);
} else {
queuedHits.add(new Hit(damage, type, icon));
}
}
skills.hit(damage);
if(skills.getLevel(Skills.HITPOINTS) <= 0) {
if(!this.isDead()) {
World.getInstance().registerEvent(new DeathEvent(this));
}
this.setDead(true);
}
getActionSender().sendConfig(5000, getSkills().getHitPoints());
} catch(Exception e) {
}
}
save, compile, finished
Ricky1179- Ultra-Noob
- Posts : 19
Join date : 2011-06-29
Location : Scotland
Re: ConflictionX 562 loading 657
Yeah i got some errors while doing this tut but ill try to get it working asap.
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Re: ConflictionX 562 loading 657
562 Loading 659 is what we are onto now.
Ricky1179- Ultra-Noob
- Posts : 19
Join date : 2011-06-29
Location : Scotland
Auris- Novice
- Posts : 129
Join date : 2011-07-13
Age : 28
Location : Illinois
Re: ConflictionX 562 loading 657
Auris!!!!!!!
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Re: ConflictionX 562 loading 657
There is no link currently right now, i might be wrong but idk, ricky might of got his working or not. im getting my project to go bigger so it going to take awhile before my version of conflictionx works out but dont worry ill get it working soon, ill post pics or vids of my projects.
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
0king o- Ultra-Sexy
- Posts : 275
Join date : 2011-06-26
Age : 28
Location : My House
Page 2 of 3 • 1, 2, 3
Page 2 of 3
Permissions in this forum:
You cannot reply to topics in this forum
|
|