From a8bfcd08ccea5b1db033c62115c28b72211b8f8a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 19 Mar 2024 19:12:44 -0500 Subject: [PATCH] Backend Saetor work --- src/engine/db/handlers/dbRuneBaseHandler.java | 31 +++++++++++++++++++ src/engine/objects/Race.java | 5 ++- src/engine/objects/SkillReq.java | 4 +++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbRuneBaseHandler.java b/src/engine/db/handlers/dbRuneBaseHandler.java index af66b036..3eead9ac 100644 --- a/src/engine/db/handlers/dbRuneBaseHandler.java +++ b/src/engine/db/handlers/dbRuneBaseHandler.java @@ -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) { diff --git a/src/engine/objects/Race.java b/src/engine/objects/Race.java index 9bd58cb9..295a7539 100644 --- a/src/engine/objects/Race.java +++ b/src/engine/objects/Race.java @@ -158,9 +158,12 @@ public class Race { baseClassesSaetor.add(BaseClass.getBaseClass(2502)); baseClassesSaetor.add(BaseClass.getBaseClass(2503)); ArrayList 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 powersGrantedSaetor = new ArrayList<>(); ArrayList 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 diff --git a/src/engine/objects/SkillReq.java b/src/engine/objects/SkillReq.java index 703279bf..3c16e029 100644 --- a/src/engine/objects/SkillReq.java +++ b/src/engine/objects/SkillReq.java @@ -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 */