[Teleporter NPC]

Indította subscribe, 2009 október 08, 11:41:02 DÉLUTÁN

Előző téma - Következő téma

Skyne

ez hihtetelen, ember OLVASSÁL ne csak írj, levan írva hogyan kell megcsinálni, senki nem fog helyetted dolgozni, főleg nem egy ilyen egyszerű dolgon

ident

Fhatys, a sors által kirótt, elkerülhetetlen feladat szava.
http://eu.battle.net/wow/en/character/arathor/Ident/advanced

Devis

IdézELETE FROM `quest_template` WHERE `entry` = '900096';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900096', '3459', '1', '70', '1101', '1', 'Teleport to Stormwind', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91201');
DELETE FROM `quest_end_scripts` WHERE `id` = '900096';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('900096', '0', '6', '0', '0', '-8833.164063', '479.762543', '112.095619', '0.587327');


DELETE FROM `quest_template` WHERE `entry` = '900097';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900097', '3459', '1', '70', '1101', '1', 'Teleport to Ironforge', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91202');
DELETE FROM `quest_end_scripts` WHERE `id` = '900097';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('900097', '0', '6', '0', '0', '-4821.613281', '-1155.579468', '502.212250', '3.335226');

DELETE FROM `quest_template` WHERE `entry` = '900098';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900098', '3459', '1', '70', '1101', '1', 'Teleport to Darnassus', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91203');
DELETE FROM `quest_end_scripts` WHERE `id` = '900098';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('900098', '0', '6', '1', '0', '9947.525391', '2604.150879', '1316.187988', '4.223004');

DELETE FROM `quest_template` WHERE `entry` = '900099';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900099', '3459', '1', '70', '1101', '1', 'Teleport to Exodar', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91204');
DELETE FROM `quest_end_scripts` WHERE `id` = '900099';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('900099', '0', '6', '530', '0', '-4054.751709', '-11793.398438', '11.113947', '1.515031');


DELETE FROM `quest_template` WHERE `entry` = '900100';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900100', '3459', '1', '70', '690', '1', 'Teleport to Orgrimmar', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91205');
DELETE FROM `quest_end_scripts` WHERE `id` = '900100';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('900100', '0', '6', '1', '0', '1677.910400', '-4314.788574', '62.500027', '2.669688');

DELETE FROM `quest_template` WHERE `entry` = '900101';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900101', '3459', '1', '70', '690', '1', 'Teleport to Thunder Bluff', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91206');
DELETE FROM `quest_end_scripts` WHERE `id` = '900101';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('900101', '0', '6', '1', '0', '-1197.183716', '29.270617', '179.754837', '2.966604');


DELETE FROM `quest_template` WHERE `entry` = '900102';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900102', '3459', '1', '70', '690', '1', 'Teleport to Undercity', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91207');
DELETE FROM `quest_end_scripts` WHERE `id` = '900102';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('900102', '0', '6', '0', '0', '1568.478760', '268.519928', '-42.138416', '1.697186');

DELETE FROM `quest_template` WHERE `entry` = '900103';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900103', '3459', '1', '70', '690', '1', 'Teleport to Silvermoon', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91208');
DELETE FROM `quest_end_scripts` WHERE `id` = '900103';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('900103', '0', '6', '530', '0', '9373.077148', '-7166.074219', '11.476312', '5.386526');

DELETE FROM `quest_template` WHERE `entry` = '900104';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900104', '3459', '1', '70', '0', '1', 'Teleport to Shattrath', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91209');
DELETE FROM `quest_end_scripts` WHERE `id` = '900104';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('900104', '0', '6', '530', '0', '-1879.500977', '5409.461426', '-12.427713', '1.033202');

DELETE FROM `quest_template` WHERE `entry` = '900105';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900105', '3459', '1', '70', '0', '1', 'Teleport to Dalaran', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91210');
DELETE FROM `quest_end_scripts` WHERE `id` = '900105';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('900105', '0', '6', '571', '0', '5813.643555', '651.078247', '647.396973', '3.982841');


DELETE FROM `quest_template` WHERE `entry` = '900106';
INSERT INTO `quest_template` (`entry`, `ZoneOrSort`, `MinLevel`, `QuestLevel`, `RequiredRaces`, `SpecialFlags`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `PointOpt`, `CompleteScript`) VALUES ('900106', '3459', '1', '70', '0', '1', 'Teleport to Gurubashi Arena', 'So you want to teleport?', 'Speak with the Teleport Master again.', 'Are you sure, you\'re ready to teleport?', '0', '91211');
DELETE FROM `quest_end_scripts` WHERE `id` = '900106';
INSERT INTO `quest_end_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `x`, `y`, `z`, `o`) VALUES ('91211', '0', '6', '0', '0', '-13234.119141', '217.386627', '31.675938', '1.068150');

insert into `creature_template` (`entry`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `minlevel`, `maxlevel`, `faction_A`, `faction_H`, `npcflag`, `speed`, `scale`, `rank`, `mindmg`, `maxdmg`, `baseattacktime`, `family`, `type`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `mingold`, `maxgold`)
values ('40000', '21277', '21277', '21277', '21277', "Teleporter", "Teleporter", '80', '80', '35', '35', '3', '8.00', '1', '3', '1000', '4000', '1000', '0', '7', '0', '0', '0', '0', '0', '0', '0', '0');

INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900096');
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900097');
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900098');
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900099');
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900100');
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900101');
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900102');
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900103');
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900104');
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900105');
INSERT INTO `creature_questrelation` (`id`, `quest`) VALUES ('40000', '900106');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900096');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900097');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900098');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900099');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900100');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900101');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900102');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900103');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900104');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900105');
INSERT INTO `creature_involvedrelation` (`id`, `quest`) VALUES ('40000', '900106');

ha valakinek nem lenne jó vagy valami akkor tessék ittvan, az idket átírtam mert nálam már voltak ilyen id-k (lehet hogy másnál is van ilyen hiba). Ha már valaki feltöltötte normálisan akkor bocsi. nem olvastam végig a topicot mert úgy emlékeztem hogy hogy senki nem írta be hibátlanul
Soha ne vitatkozz idiótákkal! Lesüllyedsz az ő szintjükre és legyőznek a rutinjukkal.

Devis

a fenti leírás 3.3.2 tökéletes, viszont az lenne a problémám, hogy 3.3.3a-n már jó.
A probléma az az, hogy ha beszélek vele akkor ugye ujra kell vele beszélni hogy leadja a questet és utána elteleportáljon. Na a questet leis adja, csakhogy nem teleportál sehova. Már mindent próbáltam, de sehogy nem sikerült rájönnöm hogy miért nem visz el sehova.

Pastebin: http://pastebin.com/AKJhHTmZ

Aki tud az pls segítsen  :-\

(ha rájövök addig akk leírom h mi a baja)
Soha ne vitatkozz idiótákkal! Lesüllyedsz az ő szintjükre és legyőznek a rutinjukkal.

Bluerák

Milyen emulátort használsz?
MaNGOS vagy TC2?

MacBook Pro 13' 2.26 GHZ, 4 GB RAM - White
iPhone 4S 16GB - Black
iPad 3 - Black

NEW PC:
Asus EAH6670 (1GB 128 bit)
AMD FX AM3+ (4x3.8GHZ)
ASRock 970 EXTREME3
8GB RAM

Devis

Soha ne vitatkozz idiótákkal! Lesüllyedsz az ő szintjükre és legyőznek a rutinjukkal.

Bluerák

Hát nem tudom akkor szokott ilyen lenni ha a quest_end_scripts-ben a command "0"-n van.
Ezt csekkold le hogy ez jól van-e
:-\

MacBook Pro 13' 2.26 GHZ, 4 GB RAM - White
iPhone 4S 16GB - Black
iPad 3 - Black

NEW PC:
Asus EAH6670 (1GB 128 bit)
AMD FX AM3+ (4x3.8GHZ)
ASRock 970 EXTREME3
8GB RAM

Devis

mindegyik 6-oson van.... vkinek még vmi ötlet?
Amúgy bluerák köszi a gyors válaszokat
Soha ne vitatkozz idiótákkal! Lesüllyedsz az ő szintjükre és legyőznek a rutinjukkal.

Szilárd

Java / C# / Swift Programmer

Apple
----------
OS X / iOS User
iPhone 6 Plus
iPad Air 2
MacBook Pro 13" Retina

Devis

hát most azt csináltam h mivel a quest template-ben rossz volt a complate scriptnél a változó azt most átírtam, ha ez nem jön be akkor köszi zoomika :D
Soha ne vitatkozz idiótákkal! Lesüllyedsz az ő szintjükre és legyőznek a rutinjukkal.

Apostol

Én gossippal csináltam.

Csinálsz a gossip_menu táblába egy új bejegyzést id-kkel
Új bejegyzés a gossip_scripts táblába szokványos command6 stb(A xyz koordinátat legegyszerűbben úgy tudod megnézni,hogy ingame tele add név a a db-ben game_tele táblában kikeresed és csak át kell másolni)
Csinálsz minden scripthez,ha úgy tetszik egy-egy helyhez egy gossip_menu_option bejegyzést.

Pl.

gossip_menu : entry 2  textid 328
gossip_scripts: id 1   delay 2    command   6    datalong 578    datalong2 0  dataint 0    x:1061.41    y:1095.96    z:432.52    o:0.64
gossip_menu_option:Menu id:2(ez a kapcsolat a gossip_menu táblával)    id:45(ez az opció saját id-je)    option icon: 1  option_text:Stage 1  option id:1(gossip)  npc_option_npcflag:3(itt kell megadni az npc npcflagját,amelyik használni tudja)   action menu id:0  actionpoi:0 actionscript id:1(ez az érték kapcsolja az opcióhoz a scriptet)    box_coded:0 box_money:0     Box_text:Stage 1    0    0    0    0    0    0    0    0    0
Adott npc-hez kötni úgy lehet,hogy a creature_templateben beírod az npcnek a gossip_menu id-t és az npcflaget 3nak.

És nem kell szenvedned egyenként a questeket megcsinálni,az involved és questrelationokat beirkálni.

human374

Hey Apostol!

Nagyon jó a leírás köszi! Egy kérdésem lenne csak. Csináltam egy teleporter NPC-t, de csak az első menü látszik. Kettőt tettem be:
-Port me to The Lich King!
-Port me to Dalaran.

A gossip scriptet megcsináltam a másodiknak is és a `gossip_menu_option` táblához is hozzáadtam egyező menu_id-val és eltérő ID-val. Ami még eltér az az action_script_id és az option_text szövege.
Mit kell még beállítanom, hogy látszódjon a második opció is? Az npc_option_flag a rossz? (3)

Előre is köszönöm a segítséget!

Athmor

Ha azt akarod hogy több menü látszodjon, akkor a gossip_menu táblában ugyanazzal a menu_id-vel kell hogy legyen az option, mert máskülönben másik gossip_menuhöz rendeled.

Ha az npcnek pl 50000 a gossip_manu_id-je, akkor ha optiont akarsz bele rakni akkor lesz neked 3db 50000-es kezdésü menu_id-d a gossip_menu táblában.

asdasdasd
:d

Hanthal

Én találtam benne 1-2 hibát ami a trinity-ben nem volt jó de kijavítottam és finoman magyarosítottam ami persze nyugodtan visszacsinálhattok ha nem teccik!Annyi volt a magyarosítás h egyszerűen ékezetes betűk nélkül fejeztem ki a tele npc menüjét!De kipróbáltam és minden változtatásommal tökéletessen működik!köszönöm szépen a forrást!

Powered by EzPortal