第一句:
insert into `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) values('80031','1731','451','16174.7','16252.8','69.4448','3.14693','0','0','0.999996','-0.00266687','3','3','100','1','0','0','0','10');
其中GUID浆竭,是礦脈實(shí)例ID,ID是gameobject_template中的ID堪藐,1731表示銅礦魂务,之后是地圖坐標(biāo)录煤,2個(gè)spawn表示最小和最大刷新時(shí)間(秒)般哼,別的不用管宛蚓。
第二句:
insert into `pool_template` (`entry`, `max_limit`, `description`) values (80001, 1, '銅礦池');
ENTRY為池ID洲押,每個(gè)礦脈實(shí)例必須有指定的池ID,否則挖完會(huì)不消失沧竟,MAX_LIMIT該池最大同時(shí)有效實(shí)例铸敏。
第三句:
insert into `pool_gameobject` (`guid`, `pool_entry`, `chance`, `description`, `flags`) values (80031, 80001, 0, '銅礦點(diǎn)', 0);
把礦脈實(shí)例加入池,兩個(gè)ID分別為礦脈實(shí)例ID和池ID悟泵。