if i want to add more then one aura to the smartai how do i do that? just put in more ids?
other thing i made a buff npc is this the correct way to do it?
cus now i mad a lot of rows:| but still only one buff click ingame tho
if i want to add more then one aura to the smartai how do i do that? just put in more ids?
other thing i made a buff npc is this the correct way to do it?
cus now i mad a lot of rows:| but still only one buff click ingame tho
Paste the entire SQL in a forum post please.
– Generated by Event Horizon - SAI Editor (http://devsource-eventhorizon.tk/)
– Lil’ K.T.
SET @ENTRY := 36979;
SET @SOURCETYPE := 0;
DELETE FROM smart_scripts
WHERE entryorguid
=@ENTRY AND source_type
=@SOURCETYPE;
UPDATE creature_template SET AIName=“SmartAI” WHERE entry=@ENTRY LIMIT 1;
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,@SOURCETYPE,0,0,62,0,100,0,60000,2,0,0,62,790,0,0,0,0,0,7,0,0,0,-2897.85,-627.477,151.091,4.74118,“Hord Mall Vendors”),
(@ENTRY,@SOURCETYPE,1,0,62,0,100,0,60000,1,0,0,62,790,0,0,0,0,0,7,0,0,0,-3339.92,327.026,217.852,1.65642,“Alliance Mall Vendors”),
(@ENTRY,@SOURCETYPE,2,0,62,0,100,0,60000,3,0,0,75,48938,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,“Buff”),
(@ENTRY,@SOURCETYPE,3,0,62,0,100,0,60000,3,0,0,75,25898,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,“Buff”),
(@ENTRY,@SOURCETYPE,4,0,62,0,100,0,60000,3,0,0,75,48074,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,“Buff”),
(@ENTRY,@SOURCETYPE,5,0,62,0,100,0,60000,3,0,0,75,48162,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,“Buff”),
(@ENTRY,@SOURCETYPE,6,0,62,0,100,0,60000,3,0,0,75,48170,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,“Buff”),
(@ENTRY,@SOURCETYPE,7,0,62,0,100,0,60000,3,0,0,75,43002,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,“Buff”),
(@ENTRY,@SOURCETYPE,8,0,62,0,100,0,60000,3,0,0,75,48470,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,“Buff”),
(@ENTRY,@SOURCETYPE,9,0,62,0,100,0,60000,3,0,0,75,24705,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,“Buff”),
(@ENTRY,@SOURCETYPE,10,0,62,0,100,0,60000,3,0,0,75,53307,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,“Buff”);
there yo go
To get back to this, you can use action_type to [COLOR=rgb(51,51,51)]SMART_ACTION_SET_EMOTE_STATE with action_param1 23 which simply is STATE_STAND.
Hello!
I’m trying to remake Nightbane in SAI as a learning process.
I have two questions right now.
Currently he does Tail sweep every X seconds regardless if there is people behind him. Is there a way to fix this so he will only do it when there are people behind him?
Secondly, He will continuously cast Rain of bones until he is out of the 73-75% hp range. Is there a way to make this a one time ability?
I know he is supposed to go to phase 2 at this point but trying to make him fly is intimidating right now =D
Thanks!
-- Nightbane SAI
SET @ENTRY := 17225;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,8000,8000,8000,8000,11,25653,0,0,0,0,0,2,0,0,0,0,0,0,0,"Nightbane - In Combat - Cast 'Tail Sweep'"),
(@ENTRY,0,1,0,0,0,100,0,25000,25000,30000,35000,11,36922,0,0,0,0,0,2,0,0,0,0,0,0,0,"Nightbane - In Combat - Cast 'Bellowing Roar'"),
(@ENTRY,0,2,0,0,0,100,0,7000,7000,5000,5000,11,30131,0,0,0,0,0,2,0,0,0,0,0,0,0,"Nightbane - In Combat - Cast 'Cleave'"),
(@ENTRY,0,3,0,0,0,100,0,10000,10000,10000,10000,11,30130,0,0,0,0,0,6,0,0,0,0,0,0,0,"Nightbane - In Combat - Cast 'Distracting Ash'"),
(@ENTRY,0,4,0,0,0,100,0,30000,30000,30000,35000,11,30129,0,0,0,0,0,6,0,0,0,0,0,0,0,"Nightbane - In Combat - Cast 'Charred Earth'"),
(@ENTRY,0,5,0,2,0,100,0,73,75,0,0,11,37098,0,0,0,0,0,6,0,0,0,0,0,0,0,"Nightbane - Between 73-75% Health - Cast 'Rain of Bones'"),
(@ENTRY,0,6,0,4,0,100,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,"Nightbane - On Aggro - Say Line 1");
Set the event_flags
to 1. You could also use event_param2 and event_param3 to place a timer in there.
Hello guys i need help making SAI on Cataclims 4.3.4 branch for creatures Volcor entry: 33094, Cerellean Whiteclaw entry: 33093, Shaldyn entry:33095 …, on quest 26385 (Breaking Waves of change in Lor’danel Darkshore)
i make this for my self for make the sentinel comes and say text, and works but… this npc stay in the beach almost die with 5% of hp more-less and need an SmartScript Action to set hp for this npc i use action 99 but don’t work, i search for some examples and nothing works… can some help mee?
this is the SAI of Volcor for example (it need to on right-click or say hello give quest credit and force to Lor’danel Sentinel npc comes close and say text ).
– Volcor SAI
SET @ENTRY := 33094;
UPDATE creature_template
SET AIName
=“SmartAI” WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE entryorguid
=@ENTRY AND source_type
=0;
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,25,0,100,0,0,0,0,0,42,0,25,0,0,0,0,1,0,0,0,0,0,0,0,“Volcor - modify hp!”), --This is the line!
(@ENTRY,0,1,2,64,0,100,0,0,0,0,0,33,33094,0,0,0,0,0,7,0,0,0,0,0,0,0,“Volcor - On Gossip Hello - Give Quest credit!”),
(@ENTRY,0,2,0,61,0,100,0,0,0,0,0,11,42053,2,0,0,0,0,10,305683,32969,0,0,0,0,0,“Volcor - On Gossip Hello - Cast spell 42053 to Lor’danel Sentinel!”);
In the last row i made to him cast an spell to the npc when the player right-click or say hello, and then use SAI for that specific npc to go to volcor position when recive a spell hit!
all this work, but the hp modify not!
Do you really expect me to understand what you just wrote?
sorry for my english! i’m cuban,
you only need to know that i need a SAI(smart_script action) way to modify the hp of a creature!
Note: i was use action 99 with param 1 with value 5 and param 2 with value 25 and not work!
more easy now?
You could try [COLOR=rgb(51,51,51)]SMART_ACTION_SET_POWER I guess. Not sure if it works.
jghgfj
Sounds like you’re looking for [COLOR=rgb(51,51,51)]SMART_ACTION_ATTACK_START (49).
i try it right now!! thanks anyway.
First, i need to understand what is the param 1 and 2 for this action 108 [COLOR=rgb(51,51,51)]SMART_ACTION_SET_POWER someone knows?
asdfas
tyee the problem i think is that you don’t specify the param 1, 2 and 3 for the event 11, i think that if you let it on value = 0 never happen that event! try and tell me later!
Note: don’t use action 20, use 49!
You’re wrong, the params can be left on 0 as long as event_param1 is left on 0 as well. 0 for event_param1 means SMART_SCRIPT_RESPAWN_CONDITION_NONE and specifies the condition in which map/zone the creature/gameobject has to respawn in order for the event to trigger.
I suggest you try a different target_type, +tyeeeee1, to test if it’s all even triggered at all.
ok! can you tell me how use the param for action 108 [COLOR=rgb(51,51,51)]SMART_ACTION_SET_POWER? someone tell that i can use aura Low Health 76143 but nothing happens when i cast the spell on the npc or put the aura on creature_template_addon, or make the npc cast that spell with action 11 of SAI.
Note: at the end i made it! thanks for your care!
I already did
dfgdgf
The code for SMART_ACTION_ATTACK_START is looking perfectly fine for me. Are you sure there are no errors logged? If not, I suggest you try to debug it with a breakpoint with condition in the core.
adfsas