Skip to content

Commit

Permalink
Add fix-up script for PetDevices (#3108)
Browse files Browse the repository at this point in the history
* Add fixup script for PetDevices

* Update appveyor.yml

* Update Player_Location.cs
  • Loading branch information
LtRipley36706 authored Aug 8, 2020
1 parent c28b01b commit ddf8792
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 8 deletions.
179 changes: 179 additions & 0 deletions Database/Updates/Shard/2020-08-05-00-Update-PetDevices.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=48956 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=48957 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49212 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49219 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49226 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49233 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49239 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49246 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49253 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49260 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49267 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49274 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49281 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49288 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49295 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49302 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49309 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49316 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49323 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49330 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49337 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49344 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49351 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49358 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49365 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49372 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49379 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49386 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49427 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49434 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49441 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49448 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49530 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49537 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49544 AND useRequiresSkillSpec.value IS NULL;

INSERT INTO biota_properties_int (object_Id, `type`, value)
SELECT biota.id, 368, 54 /* UseRequiresSkillSpec - Summoning */ FROM biota
LEFT JOIN biota_properties_int useRequiresSkillSpec ON useRequiresSkillSpec.object_Id=biota.id AND useRequiresSkillSpec.`type`=368
WHERE biota.weenie_Class_Id=49551 AND useRequiresSkillSpec.value IS NULL;
14 changes: 7 additions & 7 deletions Source/ACE.Server/WorldObjects/Player_Location.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void HandleActionTeleToHouse()

EnqueueBroadcast(new GameMessageSystemChat($"{Name} is recalling home.", ChatMessageType.Recall), LocalBroadcastRange, ChatMessageType.Recall);

SendMotionAsCommands(MotionCommand.HouseRecall, CurrentMotionState.Stance);
SendMotionAsCommands(MotionCommand.HouseRecall, MotionStance.NonCombat);

var startPos = new Position(Location);

Expand Down Expand Up @@ -162,7 +162,7 @@ public void HandleActionTeleToLifestone()

EnqueueBroadcast(new GameMessageSystemChat($"{Name} is recalling to the lifestone.", ChatMessageType.Recall), LocalBroadcastRange, ChatMessageType.Recall);

SendMotionAsCommands(MotionCommand.LifestoneRecall, CurrentMotionState.Stance);
SendMotionAsCommands(MotionCommand.LifestoneRecall, MotionStance.NonCombat);

var startPos = new Position(Location);

Expand Down Expand Up @@ -220,7 +220,7 @@ public void HandleActionTeleToMarketPlace()

EnqueueBroadcast(new GameMessageSystemChat($"{Name} is recalling to the marketplace.", ChatMessageType.Recall), LocalBroadcastRange, ChatMessageType.Recall);

SendMotionAsCommands(MotionCommand.MarketplaceRecall, CurrentMotionState.Stance);
SendMotionAsCommands(MotionCommand.MarketplaceRecall, MotionStance.NonCombat);

var startPos = new Position(Location);

Expand Down Expand Up @@ -296,7 +296,7 @@ public void HandleActionRecallAllegianceHometown()

EnqueueBroadcast(new GameMessageSystemChat($"{Name} is going to the Allegiance hometown.", ChatMessageType.Recall), LocalBroadcastRange, ChatMessageType.Recall);

SendMotionAsCommands(MotionCommand.AllegianceHometownRecall, CurrentMotionState.Stance);
SendMotionAsCommands(MotionCommand.AllegianceHometownRecall, MotionStance.NonCombat);

var startPos = new Position(Location);

Expand Down Expand Up @@ -387,7 +387,7 @@ public void HandleActionTeleToMansion()

EnqueueBroadcast(new GameMessageSystemChat($"{Name} is recalling to the Allegiance housing.", ChatMessageType.Recall), LocalBroadcastRange, ChatMessageType.Recall);

SendMotionAsCommands(MotionCommand.HouseRecall, CurrentMotionState.Stance);
SendMotionAsCommands(MotionCommand.HouseRecall, MotionStance.NonCombat);

var startPos = new Position(Location);

Expand Down Expand Up @@ -464,7 +464,7 @@ public void HandleActionTeleToPkArena()

EnqueueBroadcast(new GameMessageSystemChat($"{Name} is going to the PK Arena.", ChatMessageType.Recall), LocalBroadcastRange, ChatMessageType.Recall);

SendMotionAsCommands(MotionCommand.PKArenaRecall, CurrentMotionState.Stance);
SendMotionAsCommands(MotionCommand.PKArenaRecall, MotionStance.NonCombat);

var startPos = new Position(Location);

Expand Down Expand Up @@ -542,7 +542,7 @@ public void HandleActionTeleToPklArena()

EnqueueBroadcast(new GameMessageSystemChat($"{Name} is going to the PKL Arena.", ChatMessageType.Recall), LocalBroadcastRange, ChatMessageType.Recall);

SendMotionAsCommands(MotionCommand.PKArenaRecall, CurrentMotionState.Stance);
SendMotionAsCommands(MotionCommand.PKArenaRecall, MotionStance.NonCombat);

var startPos = new Position(Location);

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.8.{build}
version: 1.9.{build}
pull_requests:
do_not_increment_build_number: true
skip_tags: true
Expand Down

0 comments on commit ddf8792

Please sign in to comment.