|
|
|
@ -28,7 +28,7 @@ public class dbMobHandler extends dbHandlerBase {
@@ -28,7 +28,7 @@ public class dbMobHandler extends dbHandlerBase {
|
|
|
|
|
|
|
|
|
|
public Mob ADD_MOB(Mob toAdd) |
|
|
|
|
{ |
|
|
|
|
prepareCallable("CALL `mob_CREATE`(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"); |
|
|
|
|
prepareCallable("CALL `mob_CREATE`(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"); |
|
|
|
|
setLong(1, toAdd.getParentZoneID()); |
|
|
|
|
setInt(2, toAdd.getMobBaseID()); |
|
|
|
|
setInt(3, toAdd.getGuildUUID()); |
|
|
|
@ -45,6 +45,7 @@ public class dbMobHandler extends dbHandlerBase {
@@ -45,6 +45,7 @@ public class dbMobHandler extends dbHandlerBase {
|
|
|
|
|
setInt(11, toAdd.getBuildingID()); |
|
|
|
|
setInt(12, toAdd.getLevel()); |
|
|
|
|
setString(13, toAdd.getFirstName()); |
|
|
|
|
setInt(14, toAdd.slot); |
|
|
|
|
int objectUUID = (int) getUUID(); |
|
|
|
|
if (objectUUID > 0) |
|
|
|
|
return GET_MOB(objectUUID); |
|
|
|
|