.:Hilfe:. Lehrer NPC

06/16/2013 13:36 wow-player#1
Moin Moin

Ich habe mir gestern einen NPC geholt der den Playern fehlende Spells beibringen soll. Das Problem ist das die Spells beim NPC nicht angezeig werden. Ich benutze eine Trinity Core auf dem Patch 3.3.5a.

Hier ist der SQL inhalt

Ich hoffe das mir jemand helfen kann :). ich habe das gefühl das ist einfach nur n kleiner fehler, und ich bin zu dumm ihn zu finden ^^

Liebe grüße

Mitch
06/16/2013 13:59 °"Crazy"°#2
schon cache gelöscht und server restartet?
06/16/2013 14:02 wow-player#3
jup das mit dem cache löschen habe ich mir jetzt langsam auch ahngewöhnt weil das schon öfters das problem war ^^

ist sonst niemand da der eine idee hat :(?
06/16/2013 20:54 °"Crazy"°#4
Code:
/*
Created by Crazy - e*pvp
Support des Scripts unter: http://www.elitepvpers.com/forum/members/2653940--crazy-.html
*/

SET @entry = '';
SET @name = '';
SET @subname = '';
SET @displayID = '';


REPLACE INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction_A`, `faction_H`, `npcflag`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Health_mod`, `Mana_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `equipment_id`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`) VALUES 
(@entry, 0, 0, 0, 0, 0, @displayID, 0, 0, 0, @name, @subname, '', @entry, 80, 80, 0, 35, 35, 16, 1, 0, 1000, 2000, 0, 1000, 20, 2000, 2000, 2, 0, 8, 0, 2, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 1, 637, 0, 2, '');

DELETE FROM `npc_trainer` WHERE (`entry`=@entry);
INSERT INTO `npc_trainer` (entry, spell, spellcost, reqskill, reqskillvalue, reqlevel) VALUES 
(@entry, 71, 10000, 0, 0, 0),
(@entry, 355, 10000, 0, 0, 0),
(@entry, 688, 10000, 0, 0, 0),
(@entry, 691, 10000, 0, 0, 0),
(@entry, 697, 10000, 0, 0, 0),
(@entry, 712, 10000, 0, 0, 0),
(@entry, 883, 10000, 0, 0, 0),
(@entry, 982, 10000, 0, 0, 0),
(@entry, 1515, 10000, 0, 0, 0),
(@entry, 2458, 10000, 0, 0, 0),
(@entry, 2641, 10000, 0, 0, 0),
(@entry, 5394, 10000, 0, 0, 0),
(@entry, 5487, 10000, 0, 0, 0),
(@entry, 6795, 10000, 0, 0, 0),
(@entry, 6807, 10000, 0, 0, 0),
(@entry, 6991, 10000, 0, 0, 0),
(@entry, 7328, 10000, 0, 0, 0),
(@entry, 8071, 10000, 0, 0, 0);


DELETE FROM `gossip_menu` WHERE (`entry`=@entry);
INSERT INTO `gossip_menu` VALUES (@entry, 6289);


DELETE FROM `gossip_menu_option` WHERE (`menu_id`=@entry);
INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `box_coded`, `box_money`, `box_text`) VALUES
(@entry, 0, 3, 'Neue Waffen lernen', 5, 16, 0, 0, 0, 0, NULL);

/*
Created by Crazy - e*pvp
Support des Scripts unter: http://www.elitepvpers.com/forum/members/2653940--crazy-.html
*/


Das sollte funktionieren.