[Complete] Tails Up

Need some help here. The quest mob should on spellhit fall asleep, become friendly and offer a gossip. Clicking the gossip should make it have a 33% chance to become a female (entry 33010) and a 66% chance to become a male (entry 33007). When I click the gossip, nothing happens.

Please note this is a new version where I used action 22 instead of 30. (thanks to ?? on IRC for pointing me in that direction!)

[CODE]-- [Q] Tails Up
– Apparently it won’t fall asleep due to evading. We are evading because the gossip won’t show if we are in combat… /emoticons/default_sleep.png

– Frost Leopard SAI
SET @ENTRY := 29327;
SET @QUEST := 13549;
SET @GOSSIP := 54000;
SET @SPELL_RAKE := 54668;
SET @SPELL_BLOWGUN := 62105;
SET @SPELL_SLEEP := 52742;
UPDATE creature_template SET AIName=‘SmartAI’,npcflag=0,gossip_menu_id=@GOSSIP,faction_A=1990,faction_H=1990,unit_flags=unit_flags|0 WHERE entry=@ENTRY;
DELETE FROM creature_ai_scripts WHERE creature_id=@ENTRY;
DELETE FROM smart_scripts WHERE entryorguid IN (@ENTRY,@ENTRY100,@ENTRY100+1,@ENTRY100+2,@ENTRY100+3);
INSERT INTO smart_scripts (entryorguid,source_type,id,link,event_type,event_phase_mask,event_chance,event_flags,event_param1,event_param2,event_param3,event_param4,action_type,action_param1,action_param2,action_param3,action_param4,action_param5,action_param6,target_type,target_param1,target_param2,target_param3,target_x,target_y,target_z,target_o,comment) VALUES
(@ENTRY,0,0,0,0,0,100,0,1000,1000,8000,11000,11,@SPELL_RAKE,0,0,0,0,0,2,0,0,0,0,0,0,0,“Frost Leopard - In Combat - Cast Rake”),
(@ENTRY,0,1,0,25,0,100,0,0,0,0,0,2,1990,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Reset - Set Faction Back”),
(@ENTRY,0,2,0,8,0,100,1,@SPELL_BLOWGUN,0,0,0,80,@ENTRY100,0,2,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Spellhit - Run Script”),
(@ENTRY
100,9,0,0,0,0,100,0,0,0,0,0,11,@SPELL_SLEEP,2,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script - Cast Sleep”),
(@ENTRY100,9,1,0,0,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script - Set Faction Friendly”),
(@ENTRY
100,9,2,0,0,0,100,0,0,0,0,0,81,1,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script - Set npc_flag Gossip”),
(@ENTRY100,9,3,0,0,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script - Evade”), – The gossip only shows out of combat…
(@ENTRY
100,9,4,0,0,0,100,0,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script - Stop Auto Attack”),

(@ENTRY,0,3,0,62,0,100,0,@GOSSIP,0,0,0,88,@ENTRY100+1,@ENTRY100+3,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Gossip Select - Run Random Script”),
(@ENTRY100+1,9,0,0,0,0,100,0,0,0,0,0,36,33007,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script 1 - Update Template Male”),
(@ENTRY
100+2,9,0,0,0,0,100,0,0,0,0,0,36,33010,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script 2 - Update Template Female”),
(@ENTRY100+2,9,1,0,0,0,100,0,0,0,0,0,33,33005,0,0,0,0,0,7,0,0,0,0,0,0,0,“Frost Leopard - On Script 2 - Quest Credit”),
(@ENTRY
100+2,9,2,0,0,0,100,0,0,0,0,0,29,2,0,0,0,0,0,7,0,0,0,0,0,0,0,“Frost Leopard - On Script 2 - Follow Player”), – Apparently crediting doesn’t work through this action
(@ENTRY*100+3,9,0,0,0,0,100,0,0,0,0,0,36,33007,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script 3 - Update Template Male”);

– Insert gossip and static text
DELETE FROM gossip_menu WHERE entry=@GOSSIP AND text_id=14266;
INSERT INTO gossip_menu (entry,text_id) VALUES (@GOSSIP,14266);
DELETE FROM gossip_menu_option WHERE menu_id=@GOSSIP;
INSERT INTO gossip_menu_option (menu_id,id,option_icon,option_text,option_id,npc_option_npcflag,action_menu_id) VALUES
(@GOSSIP,0,0,“Lift the frost leopard’s tail to check if it’s a male or a female.”,1,1,0);

– Male Frost Leopard SAI
SET @ENTRY := 33007;
SET @SPELL_RAKE := 54668;
UPDATE creature_template SET AIName=‘SmartAI’,faction_A=1990,faction_H=1990,unit_flags=unit_flags|0 WHERE entry=@ENTRY;
DELETE FROM smart_scripts WHERE entryorguid IN (@ENTRY,@ENTRY*100);
INSERT INTO smart_scripts (entryorguid,source_type,id,link,event_type,event_phase_mask,event_chance,event_flags,event_param1,event_param2,event_param3,event_param4,action_type,action_param1,action_param2,action_param3,action_param4,action_param5,action_param6,target_type,target_param1,target_param2,target_param3,target_x,target_y,target_z,target_o,comment) VALUES
(@ENTRY,0,0,0,1,0,100,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,“Male Frost Leopard - Out Of Combat - Say Line 0”),
(@ENTRY,0,1,0,0,0,100,0,3000,4000,9000,11000,11,@SPELL_RAKE,0,0,0,0,0,2,0,0,0,0,0,0,0,“Male Frost Leopard - In Combat - Cast Rake”);

– Text
DELETE FROM creature_text WHERE entry=@ENTRY;
INSERT INTO creature_text (entry,groupid,id,text,type,language,probability,emote,duration,sound,comment) VALUES
(@ENTRY,0,0,“It’s an angry male!”,42,0,100,0,0,0,“Male Frost Leopard”);

– Icepaw Bear SAI
SET @ENTRY := 29319;
SET @QUEST := 13549;
SET @GOSSIP := 55000;
SET @SPELL_CLAWS_OF_ICE := 54632;
SET @SPELL_BLOWGUN := 62105;
SET @SPELL_SLEEP := 52742;
UPDATE creature_template SET AIName=‘SmartAI’,npcflag=0,gossip_menu_id=@GOSSIP,faction_A=1990,faction_H=1990,unit_flags=unit_flags|0 WHERE entry=@ENTRY;
DELETE FROM creature_ai_scripts WHERE creature_id=@ENTRY;
DELETE FROM smart_scripts WHERE entryorguid IN (@ENTRY,@ENTRY100,@ENTRY100+1,@ENTRY100+2,@ENTRY100+3);
INSERT INTO smart_scripts (entryorguid,source_type,id,link,event_type,event_phase_mask,event_chance,event_flags,event_param1,event_param2,event_param3,event_param4,action_type,action_param1,action_param2,action_param3,action_param4,action_param5,action_param6,target_type,target_param1,target_param2,target_param3,target_x,target_y,target_z,target_o,comment) VALUES
(@ENTRY,0,0,0,0,0,100,0,1000,1000,8000,11000,11,@SPELL_CLAWS_OF_ICE,0,0,0,0,0,2,0,0,0,0,0,0,0,“Icepaw Bear - In Combat - Cast Claws of Ice”),
(@ENTRY,0,1,0,25,0,100,0,0,0,0,0,2,1990,0,0,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Reset - Set Faction Back”),
(@ENTRY,0,2,0,8,0,100,1,@SPELL_BLOWGUN,0,0,0,80,@ENTRY100,0,2,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Spellhit - Run Script”),
(@ENTRY
100,9,0,0,0,0,100,0,0,0,0,0,11,@SPELL_SLEEP,2,0,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Script - Cast Sleep”),
(@ENTRY100,9,1,0,0,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Script - Set Faction Friendly”),
(@ENTRY
100,9,2,0,0,0,100,0,0,0,0,0,81,1,0,0,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Script - Set npc_flag Gossip”),
(@ENTRY100,9,3,0,0,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Script - Evade”), – The gossip only shows out of combat…
(@ENTRY
100,9,4,0,0,0,100,0,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Script - Stop Auto Attack”),

(@ENTRY,0,3,0,62,0,100,0,@GOSSIP,0,0,0,88,@ENTRY100+1,@ENTRY100+3,0,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Gossip Select - Run Random Script”),
(@ENTRY100+1,9,0,0,0,0,100,0,0,0,0,0,36,33008,0,0,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Script 1 - Update Template Male”),
(@ENTRY
100+2,9,0,0,0,0,100,0,0,0,0,0,36,33011,0,0,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Script 2 - Update Template Female”),
(@ENTRY100+2,9,1,0,0,0,100,0,0,0,0,0,33,33006,0,0,0,0,0,7,0,0,0,0,0,0,0,“Icepaw Bear - On Script 2 - Quest Credit”),
(@ENTRY
100+2,9,2,0,0,0,100,0,0,0,0,0,29,2,0,0,0,0,0,7,0,0,0,0,0,0,0,“Icepaw Bear - On Script 2 - Follow Player”), – Apparently crediting doesn’t work through this action
(@ENTRY*100+3,9,0,0,0,0,100,0,0,0,0,0,36,33008,0,0,0,0,0,1,0,0,0,0,0,0,0,“Icepaw Bear - On Script 3 - Update Template Male”);

– Insert gossip and static text
DELETE FROM gossip_menu WHERE entry=@GOSSIP AND text_id=14267;
INSERT INTO gossip_menu (entry,text_id) VALUES (@GOSSIP,14267);
DELETE FROM gossip_menu_option WHERE menu_id=@GOSSIP;
INSERT INTO gossip_menu_option (menu_id,id,option_icon,option_text,option_id,npc_option_npcflag,action_menu_id) VALUES
(@GOSSIP,0,0,“Lift the icepaw bear’s tail to check if it’s a male or a female.”,1,1,0);

– Male Icepaw Bear SAI
SET @ENTRY := 33008;
SET @SPELL_CLAWS_OF_ICE := 54632;
UPDATE creature_template SET AIName=‘SmartAI’,faction_A=1990,faction_H=1990,unit_flags=unit_flags|0 WHERE entry=@ENTRY;
DELETE FROM smart_scripts WHERE entryorguid IN (@ENTRY,@ENTRY*100);
INSERT INTO smart_scripts (entryorguid,source_type,id,link,event_type,event_phase_mask,event_chance,event_flags,event_param1,event_param2,event_param3,event_param4,action_type,action_param1,action_param2,action_param3,action_param4,action_param5,action_param6,target_type,target_param1,target_param2,target_param3,target_x,target_y,target_z,target_o,comment) VALUES
(@ENTRY,0,0,0,1,0,100,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,“Male Icepaw Bear - Out Of Combat - Say Line 0”),
(@ENTRY,0,1,0,0,0,100,0,3000,4000,9000,11000,11,@SPELL_CLAWS_OF_ICE,0,0,0,0,0,2,0,0,0,0,0,0,0,“Male Icepaw Bear - In Combat - Cast Claws of Ice”);

– Text
DELETE FROM creature_text WHERE entry=@ENTRY;
INSERT INTO creature_text (entry,groupid,id,text,type,language,probability,emote,duration,sound,comment) VALUES
(@ENTRY,0,0,“It’s an angry male!”,42,0,100,0,0,0,“Male Icepaw Bear”);

– Only show first gossip if player is on quest Tails Up
DELETE FROM conditions WHERE SourceGroup=@GOSSIP AND ConditionValue1=@QUEST;
DELETE FROM conditions WHERE SourceEntry IN (@SPELL_BLOWGUN) AND ConditionValue1 IN (29327,29319);
INSERT INTO conditions (SourceTypeOrReferenceId,SourceGroup,SourceEntry,ElseGroup,ConditionTypeOrReference,ConditionValue1,ConditionValue2,ConditionValue3,ErrorTextId,ScriptName,Comment) VALUES
(15,@GOSSIP,0,0,9,@QUEST,0,0,0,‘’,“Only show gossip if player is on quest Tails Up”),
(17,0,@SPELL_BLOWGUN,0,19,29327,0,0,0,‘’,“Spell To’kini’s Blowgun can only be cast at Frost Leopard”),
(17,0,@SPELL_BLOWGUN,1,19,29319,0,0,0,‘’,“Spell To’kini’s Blowgun can only be cast at Icepaw Bear”);[/sql]
[/CODE]

Working for both Spawns + Quest Credit. Note of quest say taking them back isn’t necessary.

[CODE]

– Frost Leopard SAI
SET @ENTRY := 29327;
SET @QUEST := 13549;
SET @GOSSIP := 54000;
SET @SPELL_RAKE := 54668; – Rake
SET @SPELL_BLOWGUN := 62105; – To’kini’s Blowgun
SET @SPELL_SLEEPING := 42648; – Sleeping Sleep
UPDATE creature_template SET AIName=‘SmartAI’,npcflag=1,gossip_menu_id=@GOSSIP WHERE entry=@ENTRY;
DELETE FROM creature_ai_scripts WHERE creature_id=@ENTRY;
DELETE FROM smart_scripts WHERE entryorguid IN (@ENTRY,@ENTRY100,@ENTRY100+1,@ENTRY100+2,@ENTRY100+3);
INSERT INTO smart_scripts (entryorguid,source_type,id,link,event_type,event_phase_mask,event_chance,event_flags,event_param1,event_param2,event_param3,event_param4,action_type,action_param1,action_param2,action_param3,action_param4,action_param5,action_param6,target_type,target_param1,target_param2,target_param3,target_x,target_y,target_z,target_o,comment) VALUES
(@ENTRY,0,0,0,0,0,100,0,1000,1000,8000,11000,11,@SPELL_RAKE,0,0,0,0,0,2,0,0,0,0,0,0,0,“Frost Leopard - In Combat - Cast Rake”),
(@ENTRY,0,1,2,8,0,100,1,@SPELL_BLOWGUN,0,0,0,11,@SPELL_SLEEPING,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Spellhit - Cast Sleeping”),
(@ENTRY,0,2,0,61,0,100,0,0,0,0,0,2,1080,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script - Set Faction Friendly”),
(@ENTRY,0,4,0,62,0,100,0,@GOSSIP,0,0,0,87,@ENTRY100+1,@ENTRY100+2,@ENTRY100+3,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Gossip Select - Run Random Script”),
(@ENTRY
100+1,9,0,0,0,0,100,0,0,0,0,0,12,33007,1,30000,1,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 1 - Spawn Male”),
(@ENTRY100+1,9,2,0,0,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 1 - Despawn”),
(@ENTRY
100+2,9,0,0,0,0,100,0,0,0,0,0,12,33010,1,30000,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 2 - Spawn Female”),
(@ENTRY100+2,9,2,0,0,0,100,0,0,0,0,0,33,33005,0,0,0,0,0,7,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 2 - Quest Credit”),
(@ENTRY
100+2,9,3,0,0,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 2 - Despawn”),
(@ENTRY100+3,9,0,0,0,0,100,0,0,0,0,0,12,33007,1,30000,0,1,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 3 - Set Phase 3”),
(@ENTRY
100+3,9,2,0,0,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 3 - Spawn Male”);

– Insert gossips and static text
DELETE FROM gossip_menu WHERE entry=@GOSSIP AND text_id=14266;
INSERT INTO gossip_menu (entry,text_id) VALUES (@GOSSIP,14266);
DELETE FROM gossip_menu_option WHERE menu_id=@GOSSIP;
INSERT INTO gossip_menu_option (menu_id,id,option_icon,option_text,option_id,npc_option_npcflag,action_menu_id) VALUES
(@GOSSIP,0,0,“Lift the frost leopard’s tail to check if it’s a male or a female.”,1,1,0);

– Only show first gossip if player is on quest Tails Up
DELETE FROM conditions WHERE SourceGroup=@GOSSIP AND ConditionValue1=@QUEST;
DELETE FROM conditions WHERE SourceEntry=@SPELL_BLOWGUN AND ConditionValue2=@ENTRY;
INSERT INTO conditions (SourceTypeOrReferenceId,SourceGroup,SourceEntry,ElseGroup,ConditionTypeOrReference,ConditionValue1,ConditionValue2,ConditionValue3,ErrorTextId,ScriptName,Comment) VALUES
(15,@GOSSIP,0,0,9,@QUEST,0,0,0,‘’,“Only show gossip if player is on quest Tails Up”),
(13,0,@SPELL_BLOWGUN,0,18,1,@ENTRY,0,0,‘’,“Spell To’kini’s Blowgun can only be cast at Frost Leopard”);
[/sql][/CODE]

Nice Svannon, thanks for the help. /emoticons/default_smile.png

Look at this video, I figured out we are not done yet. http://www.xfire.com/video/17b281/

  1. The female should follow the player. I tried setting it but in no way I can get that to work.

  2. The male should not immediately attack but first evade, send a message and after some seconds attack.

  3. http://www.wowhead.com/spell=62109/ - Maybe for the random choose? (doesn’t work it seems)

  4. Apparently it doesn’t always fall asleep. Sometimes it attacks, but when I put GM on and it reaches home it falls asleep.

  5. Doesn’t offer gossip. Maybe faction issue?

Note of quest say taking them back isn’t necessary.

I’m not sure what you mean, but if it’s about conditions, they are needed. What do you think that happens when a player runs by a sleeping leopard and sees a gossip because the other player forgot to do the quest properly? /emoticons/default_tongue.png

EDIT

http://www.wowhead.c…ls+up%3A#spells

Ugh… =/ Can’t we just keep using the SAI functions? q_q

Note that there are several spells that should be used during this quest to do the summoning job:

http://old.wowhead.com/spell=62108, http://old.wowhead.com/spell=62109, http://old.wowhead.com/spell=62110, http://old.wowhead.com/spell=621016, http://old.wowhead.com/spell=62117, http://old.wowhead.com/spell=62118

  1. For the following of the player I’d use SMART_ACTION_FOLLOW. As I remember it works fine (used it somewhere else).

  2. Perhaps a combination of SMART_ACTION_AUTO_ATTACK , SMART_ACTION_ALLOW_COMBAT_MOVEMENT and SMART_ACTION_EVADE within a timed actionlist.

  3. I guess http://old.wowhead.com/spell=62110 should do the job but as smartAI spell scripts isnt implemented yet I dont see any easy way to make the random spell script work with this spell.

Thanks for trying to help, I appreciate it. /emoticons/default_smile.png

As for the auto attack part, I already resolved it right after I made the post. The following part is not possible because there is no way to target the player since we are changing creature_template.entry values. =/

And the gender spell does not work at all. As for the ‘Force Spawn ’, it always spawns a female. As you can see I found those spells in my previous post as well. /emoticons/default_wink.png

I’ll post an update very soon.

Update:

[CODE]-- Frost Leopard SAI
SET @ENTRY := 29327;
SET @QUEST := 13549;
SET @GOSSIP := 54000;
SET @SPELL_RAKE := 54668; – Rake
SET @SPELL_BLOWGUN := 62105; – To’kini’s Blowgun
SET @SPELL_SLEEPING := 42648; – Sleeping Sleep
UPDATE creature_template SET AIName=‘SmartAI’,npcflag=1,gossip_menu_id=@GOSSIP WHERE entry=@ENTRY;
DELETE FROM creature_ai_scripts WHERE creature_id=@ENTRY;
DELETE FROM smart_scripts WHERE entryorguid IN (@ENTRY,@ENTRY100,@ENTRY100+1,@ENTRY100+2,@ENTRY100+3);
INSERT INTO smart_scripts (entryorguid,source_type,id,link,event_type,event_phase_mask,event_chance,event_flags,event_param1,event_param2,event_param3,event_param4,action_type,action_param1,action_param2,action_param3,action_param4,action_param5,action_param6,target_type,target_param1,target_param2,target_param3,target_x,target_y,target_z,target_o,comment) VALUES
(@ENTRY,0,0,0,0,0,100,0,1000,1000,8000,11000,11,@SPELL_RAKE,0,0,0,0,0,2,0,0,0,0,0,0,0,“Frost Leopard - In Combat - Cast Rake”),
(@ENTRY,0,1,0,25,0,100,0,0,0,0,0,2,1990,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Reset - Set Faction Back”),
(@ENTRY,0,2,0,8,0,100,1,@SPELL_BLOWGUN,0,0,0,80,@ENTRY100,0,2,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Spellhit - Run Script”),
(@ENTRY
100,9,0,0,0,0,100,0,0,0,0,0,11,@SPELL_SLEEPING,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script - Cast Sleeping”),
(@ENTRY100,9,1,0,0,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script - Set Faction Friendly”),
(@ENTRY
100,9,2,0,0,0,100,0,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script - Prevent Combat Movement”),
(@ENTRY100,9,3,0,0,0,100,0,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Script - Prevent Auto Attack”),
(@ENTRY,0,3,0,62,0,100,0,@GOSSIP,0,0,0,87,@ENTRY
100+1,@ENTRY100+2,@ENTRY100+3,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Gossip Select - Run Random Script”),
(@ENTRY100+1,9,0,0,0,0,100,0,0,0,0,0,12,33007,1,30000,1,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 1 - Spawn Male”),
(@ENTRY
100+1,9,1,0,0,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 1 - Despawn”),
(@ENTRY100+2,9,0,0,0,0,100,0,0,0,0,0,11,62108,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 2 - Spawn Female”),
(@ENTRY
100+2,9,1,0,0,0,100,0,0,0,0,0,33,33005,0,0,0,0,0,7,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 2 - Quest Credit”),
(@ENTRY100+2,9,2,0,0,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 2 - Despawn”),
(@ENTRY
100+3,9,0,0,0,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 3 - Spawn Male”),
(@ENTRY*100+3,9,1,0,0,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Frost Leopard - On Random Script 3 - Despawn”);

– Insert gossips and static text
DELETE FROM gossip_menu WHERE entry=@GOSSIP AND text_id=14266;
INSERT INTO gossip_menu (entry,text_id) VALUES (@GOSSIP,14266);
DELETE FROM gossip_menu_option WHERE menu_id=@GOSSIP;
INSERT INTO gossip_menu_option (menu_id,id,option_icon,option_text,option_id,npc_option_npcflag,action_menu_id) VALUES
(@GOSSIP,0,0,“Lift the frost leopard’s tail to check if it’s a male or a female.”,1,1,0);

– Only show first gossip if player is on quest Tails Up
DELETE FROM conditions WHERE SourceGroup=@GOSSIP AND ConditionValue1=@QUEST;
DELETE FROM conditions WHERE SourceEntry IN (@SPELL_BLOWGUN) AND ConditionValue2 IN (29327,29319);
INSERT INTO conditions (SourceTypeOrReferenceId,SourceGroup,SourceEntry,ElseGroup,ConditionTypeOrReference,ConditionValue1,ConditionValue2,ConditionValue3,ErrorTextId,ScriptName,Comment) VALUES
(15,@GOSSIP,0,0,9,@QUEST,0,0,0,‘’,“Only show gossip if player is on quest Tails Up”),
(13,0,@SPELL_BLOWGUN,0,18,1,29327,0,0,‘’,“Spell To’kini’s Blowgun can only be cast at Frost Leopard”),
(13,0,@SPELL_BLOWGUN,1,18,1,29319,0,0,‘’,“Spell To’kini’s Blowgun can only be cast at Icepaw Bear”);[/sql]

Remaining problems:

  1. When he falls asleep, he won’t offer the gossip. =/ I believe the problem lays with the Sleeping Sleep spell.

  2. Still no way to follow the player. Might as well give this up.

  3. There should be SAI for the males. /emoticons/default_smile.png

I’m off to my study now, it won’t take too long. I’ll update as soon as I’m home!

[/CODE]

Updated. Works now. /emoticons/default_smile.png

https://github.com/T…ore/issues/3015

(moved to completed)