Quest: Gambling Debt

Trying to Fix this quest. Have the First Half of the Event Working. Problem is your Supposed to get him to submit he resets, then you talk to him to get the quest Item. I have the fight and submit working but have no idea how to do the condition for the fight is “done”.

[SPOILER]DELETE FROM gossip_menu_option WHERE menu_id=9010 AND id=2;
INSERT INTO gossip_menu_option (menu_id,id,option_icon,option_text,option_id,npc_option_npcflag,action_menu_id,action_poi_id,action_script_id,box_coded,box_money,box_text) VALUES
(9010,2,0, ‘Taruk sent me to collect what you owe.’,1,1,0,0,0,0,0,‘’);

UPDATE creature_template SET AIName=‘SmartAI’ WHERE entry=24539;
DELETE FROM smart_scripts WHERE entryorguid IN (24539,2453900);
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
(24539,0,0,0,62,0,100,0,9010,1,0,0,2,14,0,0,0,0,0,1,0,0,0,0,0,0,0, ‘Silvermoon Hary - Turn Hostile’),
(24539,0,1,0,4,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0, ‘Silvermoon Hary - Speach on Aggro’),
(24539,0,2,0,2,0,100,0,0,50,0,0,80,2453900,0,2,0,0,0,1,0,0,0,0,0,0,0, ‘Silvermoon Hary - Gambling Debt Start Script Submit’),
(2453900,9,0,0,0,0,100,0,0,0,0,0,2,0,0,0,0,0,0,1,0,0,0,0,0,0,0, ‘Silvermoon Hary - Reset Faction’),
(2453900,9,2,0,0,0,100,0,2000,2000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0, ‘Silvermoon Hary - Say Line’),
(2453900,9,3,0,0,0,100,0,0,0,0,0,56,34115,1,0,0,0,0,21,0,0,0,0,0,0,0, ‘Silvermoon Hary - Give Item’),
(2453900,9,1,0,0,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0, ‘Silvermoon Hary - Evade’);

DELETE FROM creature_text WHERE entry=24539;
INSERT INTO creature_text (entry,groupid,id,text,type,language,probability,emote,duration,sound,comment) VALUES
(24539,0,0, ‘Do not test me, scurvy dog! I'm trained in the way of Blood Knights!’,0,0,100,0,0,0, ‘Silvermoon Hary - Gambling Debt’),
(24539,1,0, ‘I'll pay! I'll pay! Eeeek! Please don't hurt me!’,0,0,100,0,0,0, ‘Silvermoon Hary - Gambling Debt’);

DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9010 AND SourceEntry=2;
INSERT INTO conditions (SourceTypeOrReferenceId,SourceGroup,SourceEntry,ElseGroup,ConditionTypeOrReference,ConditionValue1,ConditionValue2,ConditionValue3,ErrorTextId,ScriptName,Comment) VALUES
(15,9010,2,0,9,11464,0,0,0,‘’,‘’);

-- Quest: Gambling Debt (11464)

[/SPOILER]

this may sound stupid, but i have just had an issue with sending an npc on path at spawn… all it done was stand there spinning around like it didnt know where to go…

fix, i put the simple on spawn go pathing script inside of a timed script #9.

so maybe try having everything in the timed scripts to see if it clears it… if it does, then rat may need to take a look at something, maybe somehow stop non timed scripts from looping.

i hope i explained it so you understand, its worth a try, especially if it simplifies things.

but have no idea how to do the condition for the fight is “done”.

Perhaps a clever use of phases can do the trick (I didn’t do/researched this quest yet, I can’t say more than this)

[ul][li]You will aggro Harry by choosing the gossip option “Taruk sent me to collect what you owe.” He’s a fire mage.[/li]
[/ul]

[ul][li]“Silvermoon” Harry says: Do not test me, scurvy dog! I’m trained in the way of Blood Knights! [/li]
[/ul]

[ul][li]Get him below 50% and he’ll say: “I’ll pay! I’ll pay! Eeeek! Please don’t hurt me!”. Choose the gossip option[/li]
[/ul]

@ http://www.wowwiki.com/Quest:Gambling_Debt

i have focused this quest, too.

there is another gossip option when he’s giving up.

i called this gossip option “Payday!” which adds the item on select gossip option to player

i have a problem with the gossip option conditions and he isn’t reseting when player is running out of combat before 50% life.

if you wanna look at my code reply a message

there are 2 similar following quests it would be good to fix this quest /emoticons/default_smile.png

sry for my english XD

The only solution is to put one aura for condition and in action for fight condition “done” is has aura.In action list change give item to cast one aura.The item will be get by select gossip and this will make more blizzlike,dont forget to remove aura after event gossip was triggered.I don’t know exactly if a player die or get disconnected will make the npc to enter in evade mode and reset,if this part (i am not sure) then need to change phase when a player trigger the event gossip select and out of combat in phase1 to do action evade for reset faction.

above post would suggest that on 50% hp (you can get that with SAI) simply make him unattackable etc and do whateveryou have to do

for the player running before 50%, maybe mob enters evasion mode or returns to home?