Skip to content

Commit

Permalink
Move ARAC query to auto-run directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
heyitsbench committed Aug 26, 2023
1 parent 9de7688 commit 31170fb
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
File renamed without changes.
30 changes: 30 additions & 0 deletions data/sql/db-world/(Optional)/Copy for Custom Race.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
This query allows you to copy information from a specific breed to add new information.
In this example, the code copies the information from RACE 1 (Human) to add it to race 12 (Fel'Orc).
*/

-- PlayerCreateInfo
REPLACE INTO `playercreateinfo`
SELECT race+11, class, map, zone, position_x, position_y, position_z, orientation FROM `playercreateinfo` WHERE race = 1;

-- PlayerLevelStats
REPLACE INTO `player_levelstats`
SELECT race+11, class, `level`, str, agi, sta, inte, spi FROM `player_levelstats` WHERE race = 1;

-- PlayerCreateInfo_Action
REPLACE INTO `playercreateinfo_action`
SELECT race+11, class, button, `action`, `type` FROM `playercreateinfo_action` WHERE race = 1;

-- PlayerCreateInfo_Item
REPLACE INTO `playercreateinfo_item`
SELECT race+11, class, itemid, amount FROM `playercreateinfo_item` WHERE race = 1;

-- PlayerCreateInfo_Spell
REPLACE INTO `playercreateinfo_spell`
SELECT racemask+2047, classmask, Spell, Note FROM `playercreateinfo_spell` WHERE racemask = 1;

-- PlayerCreateInfo_Spell
REPLACE INTO `playercreateinfo_spell_custom`
SELECT racemask+2047, classmask, Spell, Note FROM `playercreateinfo_spell_custom` WHERE racemask = 1;
File renamed without changes.

1 comment on commit 31170fb

@Invictus699
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does this file go? i tried to import it into SQLyog (word database area) but got an error

Please sign in to comment.