![]() |
Antharas summon with skills
How do I summon Antharas and make him attack using his skills?
|
Well....if you mean summoning antharas as a creature then you need to edit antharas's AI because its settled to attack after people come into his cave.
Yours. EntroX |
Hmm im bad at ai, any idea in how can i do it? if i summon inside cave, it wont attack..
|
what about
//summon antaras //setai lilith or anakim? if we/you/i/ have/has anakim/lilith AI with skills working.. maybe he use atleast that skills? //setai npcname give him AI of that npc ?? [because //setai karik start attacking ppl] |
Just do as I've told everyone else. Sell the portal stone in a shop and summon the Heart of Warding. Make people talk to it and port into the cave. After 10 minutes (as he's supposed to) he'll come out and attack the nearest person.
|
Quote:
Yours. EntroX |
Hm.. ive got portal stone but warding says im not able to go to antaras.. do i need anything else?
|
Try having 2 other people with you in a party
|
Imm I tried with 1-2-3-4 ppl but didnt work.. :/
|
q_portal_stone_1
if everyone has one of those, it will work. if not, your server has a bug |
ahhh everybody needs it then ¬¬ thanks
|
Hmm ive got 3 ppl with portal stone (mind if quest item?) and no luck..
[php:1:a26115f913] class ai_boss04_heart_of_warding : default_npc handler 3 // TALKED variable_begin "talker" "myself" "_choiceN" "_code" "_from_choice" variable_end shift_sp 1 push_event // talker push_const 32 add fetch_i S455. "heart_of_warding001.htm" push_string S455 func_call 43 // func[ShowPage] shift_sp -2 shift_sp -1 handler_end handler 28 // TELEPORT_REQUESTED variable_begin "talker" "i0" "c0" "i1" "i2" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // i0 push_const 192 add push_reg_sp fetch_i shift_sp 1 push_const 1 func_call 33 // func[GetGlobalMap] shift_sp -1 assign shift_sp -1 push_event // i0 push_const 192 add fetch_i push_const 1 negate not_equal branch_false L3756 L3755 push_event // c0 push_const 272 add push_reg_sp fetch_i shift_sp 1 push_event // i0 push_const 192 add fetch_i func_call 30 // func[GetCreatureFromIndex] shift_sp -1 assign shift_sp -1 push_event // c0 push_const 272 add fetch_i // alive push_const 112 add fetch_i branch_false L3758 L3757 push_event // c0 push_const 272 add fetch_i // db_value push_const 1892 add fetch_i push_const 0 equal push_reg_sp fetch_i branch_true L3759 push_event // c0 push_const 272 add fetch_i // db_value push_const 1892 add fetch_i push_const 1 equal or L3759 branch_false L3761 L3760 shift_sp 1 push_event // talker push_const 32 add fetch_i push_const 3865 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 0 greater branch_false L3763 L3762 shift_sp 1 push_event // talker push_const 32 add fetch_i push_const 3865 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c0 push_const 272 add fetch_i push_const 0 push_const 0 func_call 34 // func[SendScriptEvent] shift_sp -3 shift_sp -1 push_event // i1 push_const 196 add push_reg_sp fetch_i push_const 179700 shift_sp 1 push_const 700 func_call 55 // func[Rand] shift_sp -1 add assign shift_sp -1 push_event // i2 push_const 200 add push_reg_sp fetch_i push_const 113800 shift_sp 1 push_const 2100 func_call 55 // func[Rand] shift_sp -1 add assign shift_sp -1 shift_sp 1 push_event // talker push_const 32 add fetch_i push_event // i1 push_const 196 add fetch_i push_event // i2 push_const 200 add fetch_i push_const 7709 negate func_call 46 // func[InstantTeleport] shift_sp -4 shift_sp -1 jump L3764 L3763 shift_sp 1 push_event // talker push_const 32 add fetch_i S456. "heart_of_warding004.htm" push_string S456 func_call 43 // func[ShowPage] shift_sp -2 shift_sp -1 L3764 jump L3765 L3761 push_event // c0 push_const 272 add fetch_i // db_value push_const 1892 add fetch_i push_const 2 equal push_reg_sp fetch_i branch_true L3766 push_event // c0 push_const 272 add fetch_i // db_value push_const 1892 add fetch_i push_const 3 equal or L3766 branch_false L3768 L3767 shift_sp 1 push_event // talker push_const 32 add fetch_i S457. "heart_of_warding003.htm" push_string S457 func_call 43 // func[ShowPage] shift_sp -2 shift_sp -1 L3768 L3765 jump L3769 L3758 shift_sp 1 push_event // talker push_const 32 add fetch_i S458. "heart_of_warding002.htm" push_string S458 func_call 43 // func[ShowPage] shift_sp -2 shift_sp -1 L3769 jump L3770 L3756 shift_sp 1 push_event // talker push_const 32 add fetch_i S459. "heart_of_warding002.htm" push_string S459 func_call 43 // func[ShowPage] shift_sp -2 shift_sp -1 L3770 handler_end class_end [/php:1:a26115f913] |
well it seems that i have same problem some ppl on my server managed to complete quest but they were not able to enter the lair.
i tried myself no luck.. though the ai seems to be fine.. and it dosen't make difference i think if it is a quest item.. any sugestions on what might be wrong ? |
if the quest don't work:
check your npcpos.txt Code:
npc_begin [antaras] pos={185708;114298;-8221;32768} on_delete_create(10sec,{[teleport_cube_antaras]}) total=1 respawn=10min respawn_rand=10min dbname=[antaras] dbsaving={death_time;parameters;pos} ai_parameters={[GM_ID]=[1]} npc_endok, and here some parts of the antaras related AIs heart_of_warding [php:1:a836eafe56]EventHandler TALKED: { ShowPage(talker, "heart_of_warding001.htm"); } EventHandler TELEPORT_REQUESTED: { i0 = GetGlobalMap(1); if (i0 <> -1) { // -1 == unregistered GlobalMap c0 = GetCreatureFromIndex(i0); if (c0.alive) { if (c0.db_value == 0 || c0.db_value == 1) { if (OwnItemCount(talker, @q_portal_stone_1) > 0) { DeleteItem1(talker, @q_portal_stone_1, 1); SendScriptEvent(c0, 0, 0); i1 = 179700 + Rand(700); i2 = 113800 + Rand(2100); InstantTeleport(talker, i1, i2, -7709); } ShowPage(talker, "heart_of_warding004.htm"); } else if (c0.db_value == 2 || c0.db_value == 3) { ShowPage(talker, "heart_of_warding003.htm"); } } else { ShowPage(talker, "heart_of_warding002.htm"); } } else { ShowPage(talker, "heart_of_warding002.htm"); } }[/php:1:a836eafe56] corresponding code in antaras AI:[php:1:a836eafe56]EventHandler SCRIPT_EVENT: { if (myself.sm.db_value == 0) { AddTimerEx(1001, 10 * 60 * 1000); SetDBValue(myself.sm, 1); } }[/php:1:a836eafe56] the other handler of this AI are checking against (mysqlf.sm.db_value == 3) which is the state of Antaras in his Lair... db_value (seen in boss db table): 0 = not active 1 = quest activated - 10min for players to enter the lair 2 = antaras got activated and is moving into his lair 3 = antaras is in "battle mode" antaras CREATED:[php:1:a836eafe56]EventHandler CREATED: { if (reply == 0) { SetDBValue(myself.sm, 0); } myself.i_ai1 = GetTick(); myself.i_ai2 = 0; myself.i_ai3 = 0; myself.i_ai4 = 0; if (GM_ID <> 0) { i0 = GetGlobalMap(GM_ID); if (i0 == -1) { RegisterGlobalMap(GM_ID, GetIndexFromCreature(myself.sm)); } } if (myself.sm.db_value == 1) { AddTimerEx(1001, 10 * 60 * 1000); } else if (myself.sm.db_value == 2) { InstantTeleport(myself.sm, 185452, 114835, -8221); AddMoveToDesire(181911, 114835, -7678, 100000); EffectMusic(myself.sm, 10000, "antaras"); } else if (myself.sm.db_value == 3) { AddTimerEx(1002, 1 * 60 * 1000); myself.i_ai1 = GetTick(); AddMoveAroundDesire(5, 5); } }[/php:1:a836eafe56] the only way to get a working summon for antaras is to change this handler a bit:[php:1:a836eafe56]EventHandler CREATED: { if (reply == 0) { SetDBValue(myself.sm, 0); } myself.i_ai1 = GetTick(); myself.i_ai2 = 0; myself.i_ai3 = 0; myself.i_ai4 = 0; if (GM_ID <> 0) { i0 = GetGlobalMap(GM_ID); if (i0 == -1) { RegisterGlobalMap(GM_ID, GetIndexFromCreature(myself.sm)); } } else { // here we have the summoned antaras that is not in his lair SetDBValue(myself.sm, 3); // and let the rest of the script do the work } if (myself.sm.db_value == 1) { AddTimerEx(1001, 10 * 60 * 1000); } else if (myself.sm.db_value == 2) { InstantTeleport(myself.sm, 185452, 114835, -8221); AddMoveToDesire(181911, 114835, -7678, 100000); EffectMusic(myself.sm, 10000, "antaras"); } else if (myself.sm.db_value == 3) { AddTimerEx(1002, 1 * 60 * 1000); myself.i_ai1 = GetTick(); AddMoveAroundDesire(5, 5); } }[/php:1:a836eafe56] this should work btw - I like this great AI with all the skills but maybe it's a bad idea with the fear skill on a normal map... your character will run a long time :) |
tnx xellos but can you post the ai as in ai.obj
since nasc.exe says can't open that file.. |
ai.obj before change:[php:1:492752a29e].
func_call 29 // func[GetIndexFromCreature] shift_sp -1 func_call 31 // func[RegisterGlobalMap] shift_sp -2 shift_sp -1 L2414 L2412 push_event // myself push_const 28 add fetch_i // sm[/php:1:492752a29e] make it look like this:[php:1:492752a29e]. func_call 29 // func[GetIndexFromCreature] shift_sp -1 func_call 31 // func[RegisterGlobalMap] shift_sp -2 shift_sp -1 // here starts the change jump L2414 L2412 shift_sp 1 push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i push_const 3 func_call 68 // func[SetDBValue] shift_sp -2 shift_sp -1 L2414 // end of change push_event // myself push_const 28 add fetch_i // sm [/php:1:492752a29e] can't check it atm, because my dev-server is offline atm :/ |
notice:
hmm, maybe we have to change the MY_DYING handler too, because it unregisters the global mapping of the npc and I don't know what happens when UnregisterGlobalMap(0) is called (with the 0) but i guess that this will be no prob at all please check what your npc server says when the summoned antaras dies |
well this code works fine for heart :
Code:
class ai_boss04_heart_of_warding : default_npcso i'm sking how it was made on official does all persons who with to enter the lair must have this stone or just one ? |
All people who want to enter the lair have to have the quest done, and have the portal stone.
|
sure,
btw - this is the original ncsoft ai (antaras + heart of warding + the whole quest) it's working exactly like on retail the first npc of this quest (Gabrielle) tells u about that... she says, that your friends have to take the quest too, to qualify for the battle with antaras :P and u should tell them to contact her to get the starting item |
| All times are GMT. The time now is 21:52. |