apostl (Offline ) Дата: Четверг, 06.05.2010, 15:19 | Сообщение # 1
Так сказать реализует порталы в Ульдуаре через го на. Тп работает в: Главный лагерь экспедиции. Плац. Гигантская кузня. Мусорная свалка. Вестибюль. Разрушенная аллея. Консерватория. У кав залит хак:
Code
DELETE FROM areatrigger_teleport WHERE id = '5420';
Код: Code
#include "precompiled.h" #define BASE_CAMP 200 #define GROUNDS 201 #define FORGE 202 #define SCRAPYARD 203 #define ANTECHAMBER 204 #define WALKWAY 205 #define CONSERVATORY 206 bool GossipHello_npc_ulduar_teleporter(Player *player, Creature *creature) { { player->ADD_GOSSIP_ITEM(0, "Перенестись в Главный лагерь экспедиции", GOSSIP_SENDER_MAIN, BASE_CAMP); player->ADD_GOSSIP_ITEM(0, "Перенестись на Плац", GOSSIP_SENDER_MAIN, GROUNDS); player->ADD_GOSSIP_ITEM(0, "Перенестись в Гигантскую кузню", GOSSIP_SENDER_MAIN, FORGE); player->ADD_GOSSIP_ITEM(0, "Перенестись на Мусорную свалку", GOSSIP_SENDER_MAIN, SCRAPYARD); player->ADD_GOSSIP_ITEM(0, "Перенестись в Вестибюль", GOSSIP_SENDER_MAIN, ANTECHAMBER); player->ADD_GOSSIP_ITEM(0, "Перенестись на Разрушенную аллею", GOSSIP_SENDER_MAIN, WALKWAY); player->ADD_GOSSIP_ITEM(0, "Перенестись в Консерваторию", GOSSIP_SENDER_MAIN, CONSERVATORY); } player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, creature->GetGUID()); return true; } bool GossipSelect_npc_ulduar_teleporter(Player *player, Creature *creature, uint32 sender, uint32 action) { if(sender != GOSSIP_SENDER_MAIN) return true; if(!player->getAttackers().empty()) return true; switch(action) { case BASE_CAMP: player->TeleportTo(603, -706.122, -92.6024, 429.876, 0); player->CLOSE_GOSSIP_MENU(); break; case GROUNDS: player->TeleportTo(603, 131.248, -35.3802, 409.804, 0); player->CLOSE_GOSSIP_MENU(); break; case FORGE: player->TeleportTo(603, 553.233, -12.3247, 409.679, 0); player->CLOSE_GOSSIP_MENU(); break; case SCRAPYARD: player->TeleportTo(603, 926.292, -11.4635, 418.595, 0); player->CLOSE_GOSSIP_MENU(); break; case ANTECHAMBER: player->TeleportTo(603, 1498.09, -24.246, 420.967, 0); player->CLOSE_GOSSIP_MENU(); break; case WALKWAY: player->TeleportTo(603, 1859.45, -24.1, 448.9, 0); player->CLOSE_GOSSIP_MENU(); break; case CONSERVATORY: player->TeleportTo(603, 2086.27, -24.3134, 421.239, 0); player->CLOSE_GOSSIP_MENU(); break; } return true; } void AddSC_npc_ulduar_teleporter() { Script *newscript; newscript = new Script; newscript->Name = "npc_ulduar_teleporter"; newscript->pGossipHello = &GossipHello_npc_ulduar_teleporter; newscript->pGossipSelect = &GossipSelect_npc_ulduar_teleporter; newscript->RegisterSelf(); }
Это заливаем в базу: Code
insert into `creature_template` (`entry`,`heroic_entry`,`modelid_A`,`modelid_A2`,`modelid_H`,`modelid_H2`,`name`,`subname`,`IconName`,`minlevel`,`maxlevel`,`minhealth`,`max health`,`minmana`,`maxmana`,`armor`,`faction_A`,`faction_H`,`npcflag`,`speed`,`scale`,`rank`,`mindmg`,`maxdmg`,`dmgschool`,`attackpower`,` ba seattacktime`,`rangeattacktime`,`unit_flags`,`dynamicflags`,`family`,`trainer_type`,`trainer_spell`,`trainer_class`,`trainer_race`,`minr ange dmg`,`maxrangedmg`,`rangedattackpower`,`type`,`type_flags`,`lootid`,`pickpocketloot`,`skinloot`,`resistance1`,`resistance2`,`resistanc e3`,`r esistance4`,`resistance5`,`resistance6`,`spell1`,`spell2`,`spell3`,`spell4`,`PetSpellDataId`,`mingold`,`maxgold`,`AIName`,`MovementT ype`,`In habitType`,`unk16`,`unk17`,`RacialLeader`,`RegenHealth`,`equipment_id`,`mechanic_immune_mask`,`flags_extra`,`ScriptName`) VALUES ('99005','0','22448','0','22448','0','Ulduar teleporter','',NULL,'80','80','64200','64200','12300','12300','31200','35','35','1','1.48','0.5','0','3170','6182','0','33235','1400','1900' ,'0','0','0','0','0','0','0','0','0','100','7','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','1','3','1','1','0', '1 ','99003','0','0','npc_ulduar_teleporter'); insert into `creature_template_addon` (`entry`, `mount`, `bytes1`, `bytes2`, `emote`, `moveflags`, `auras`) values('99005','0','0','0','0','0','48143 0'); insert into `locales_creature` (`entry`, `name_loc1`, `name_loc2`, `name_loc3`, `name_loc4`, `name_loc5`, `name_loc6`, `name_loc7`, `name_loc8`, `subname_loc1`, `subname_loc2`, `subname_loc3`, `subname_loc4`, `subname_loc5`, `subname_loc6`, `subname_loc7`, `subname_loc8`) values('99005','','','','','','','','Ульдуарский телепорт',NULL,NULL,NULL,NULL,NULL,NULL,NULL,''); insert into `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) values('500000','99005','571','1','1','0','99003','9025.76','-1179.12','1060.18','4.59386','25','0','0','64200','12300','0','0'); insert into `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) values('500001','99005','603','2','1','0','99003','1497.84','-23.9801','421.367','5.0242','25','0','0','64200','12300','0','0'); insert into `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) values('500002','99005','603','2','1','0','99003','131.248','-35.3802','410.204','0','25','0','0','64200','12300','0','0'); insert into `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) values('500003','99005','603','2','1','0','99003','553.233','-12.3247','410.079','0','25','0','0','64200','12300','0','0'); insert into `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) values('500004','99005','603','2','1','0','99003','926.292','-11.4635','418.995','0','25','0','0','64200','12300','0','0'); insert into `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) values('500005','99005','603','2','1','0','99003','2086.17','-24.3111','421.639','3.11803','25','0','0','64200','12300','0','0');