Browse Source

Backend Saetor work

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
a8bfcd08cc
  1. 31
      src/engine/db/handlers/dbRuneBaseHandler.java
  2. 5
      src/engine/objects/Race.java
  3. 4
      src/engine/objects/SkillReq.java

31
src/engine/db/handlers/dbRuneBaseHandler.java

@ -59,6 +59,37 @@ public class dbRuneBaseHandler extends dbHandlerBase { @@ -59,6 +59,37 @@ public class dbRuneBaseHandler extends dbHandlerBase {
rb.setLevelRequired(rs.getInt("requiredRuneID"));
break;
}
int id = rs.getInt("runeID");
switch(id) {
case 3001:
case 3002:
case 3003:
case 3004:
case 3007:
case 3008:
case 3009:
case 3013:
case 3014:
case 3016:
case 3017:
case 3018:
case 3019:
case 3020:
case 3021:
case 3026:
case 3030:
case 3031:
case 3033:
case 3037:
case 3040:
case 3045:
case 3046:
case 3047:
case 3048:
rb.getRace().put(1999, true);
break;
}
}
} catch (SQLException e) {

5
src/engine/objects/Race.java

@ -158,9 +158,12 @@ public class Race { @@ -158,9 +158,12 @@ public class Race {
baseClassesSaetor.add(BaseClass.getBaseClass(2502));
baseClassesSaetor.add(BaseClass.getBaseClass(2503));
ArrayList<SkillReq> skillsGrantedSaetor = new ArrayList<>();
skillsGrantedSaetor.add(new SkillReq(71438003,(short)15));//staff
skillsGrantedSaetor.add(new SkillReq(-61022283,(short)10));//staff mastery
skillsGrantedSaetor.add(new SkillReq(95961104,(short)10));//parry
ArrayList<PowerReq> powersGrantedSaetor = new ArrayList<>();
ArrayList<MobBaseEffects> effectsListSaetor = new ArrayList<>();
Race saetor = new Race(1999,"Saetor","Half goat half man, the Saetor race does the bidding of the Choas Gods.",new Vector3f(35,30,85),new Vector3f(55,50,120),new Vector3f(50,45,115),new Vector3f(45,40,110),new Vector3f(35,30,85),(byte)10,19991999,(short)0,(short)0,5.0f,(short)0,baseClassesSaetor,skillsGrantedSaetor,powersGrantedSaetor,effectsListSaetor);
Race saetor = new Race(1999,"Saetor","Half goat half man, the Saetor race does the bidding of the Choas Gods.",new Vector3f(35,30,85),new Vector3f(55,50,120),new Vector3f(50,45,115),new Vector3f(45,40,110),new Vector3f(35,30,85),(byte)20,19991999,(short)0,(short)0,5.0f,(short)0,baseClassesSaetor,skillsGrantedSaetor,powersGrantedSaetor,effectsListSaetor);
Race._raceByID.put(1999,saetor);
//create Lizardman race

4
src/engine/objects/SkillReq.java

@ -73,6 +73,10 @@ public class SkillReq extends AbstractGameObject { @@ -73,6 +73,10 @@ public class SkillReq extends AbstractGameObject {
skillReqs.add((byte) skillReq);
}
public SkillReq(int token, short level){
this.skillID = token;
this.level = level;
}
/*
* Getters
*/

Loading…
Cancel
Save