Fighting Q-proto in training

06/19/2013 16:10 sucreaulait#1
Hello all,

I have been working on getting titles by fighting epic NPC in free training.
So far I managed to fight all the NPCs except for Q Proto 00.
I have been using Ernilos' lua editor to do all this and it's been working great.

It seems that the problem with this is the ID for Q Proto 00, which is PVP_HERO_Q-PROTO_00, and when you edit her in free training and save with the lua editor, the editor treats the dash symbol between the "Q" and "proto" as an operator, which result in the ID being changed to PVP_HERO_Q - PROTO_00 (notice the spaces added as oppose to the correct ID).

I am wondering if anyone has found a way around this or has found another way to get the Q Proto 00 title.

Thank you in advance.

P.S. The Ernilos' new KOM editor will yield the same result.
06/19/2013 16:22 Zeizmo#2
Quote:
Originally Posted by sucreaulait View Post
Hello all,

I have been working on getting titles by fighting epic NPC in free training.
So far I managed to fight all the NPCs except for Q Proto 00.
I have been using Ernilos' lua editor to do all this and it's been working great.

It seems that the problem with this is the ID for Q Proto 00, which is PVP_HERO_Q-PROTO_00, and when you edit her in free training and save with the lua editor, the editor treats the dash symbol between the "Q" and "proto" as an operator, which result in the ID being changed to PVP_HERO_Q - PROTO_00 (notice the spaces added as oppose to the correct ID).

I am wondering if anyone has found a way around this or has found another way to get the Q Proto 00 title.

Thank you in advance.

P.S. The Ernilos' new KOM editor will yield the same result.

I think the ID is: NUI_PVP_HERO_CODE_Q_PROTO_00
06/19/2013 16:24 sucreaulait#3
I think I already tried NUI_PVP_HERO_CODE_Q_PROTO_00 before and it didn't work.
Also, the ID is shown as PVP_HERO_Q-PROTO_00 in data37 so I am pretty convinced that is it.

I will try PVP_HERO_Q_PROTO_00 one more time when the game is back online and I will let you know if it works or not.

*Edit*
Confirmed that PVP_HERO_Q_PROTO_00 does not work.
06/20/2013 08:15 ernilos#4
I know why it apears, the - is interpret as operator, and add the spaces… i will try do with hex conversion and concats :I
06/20/2013 15:01 Blowfy#5
NUI_PVP_HERO_CODE_Q_PROTO_00
I test it myself, work.
06/20/2013 15:21 omieqqe#6
Quote:
Originally Posted by Blowfy View Post
NUI_PVP_HERO_CODE_Q_PROTO_00
I test it myself, work.
So what is code? i tried and it's still not work

/spoil
STAGE_LIST = {
STAGE0 = {
WORLD_ID = WORLD_ID.WI_TRAINING_CENTER_FREESTAGE,
START_MOTION = FALSE,
READY_NPC = {
NPC_UNIT_ID.NUI_INVISIBLE_DUMMY,
NPC_UNIT_ID.NUI_MUSHROOM_WOODEN,
NPC_UNIT_ID.NUI_BEEHOUSE,
NPC_UNIT_ID.NUI_PVP_HERO_CODE_Q_PROTO_00
},
READY_TEXTURE = {
"DLG_KEYS.tga",
"HQ_RankPC_0.tga",
"HQ_RankPC_1.tga",
"HQ_RankPC_2.tga",
"HQ_RankPC_3.tga",
"HQ_RankPC_4.tga",
"HQ_RankPC_5.tga",
"HQ_RankPC_6.tga",
"HQ_RankPC_7.tga",
"HQ_RankPC_8.tga",
"HQ_RankPC_9.tga",
"FadeInOut.dds",
"NoAlphaImage.dds",
"PC_-.tga",
"PC_I.tga",
"HQ_Start.dds",
"Danger_Arrow.dds",
"HQ_Level_Up.dds"
},
READY_XMESH = {},
READY_XSKIN_MESH = {
"RespawnLanding01.X",
"RespawnLanding02.X"
},
READY_SOUND = {
"Succeed.wav"
},
SUB_STAGE0 = {
MAIN_LINE_SET = 0,
NPC_GROUP = {
{
NPC_ID = NPC_UNIT_ID.NUI_INVISIBLE_DUMMY,
START_POS = {7},
LEVEL = 10
},
{
NPC_ID = NPC_UNIT_ID.NUI_PVP_HERO_CODE_Q_PROTO_00,
START_POS = {6},
LEVEL = 1
}
},
TRIGGER_LIST = {
TRIGGER0 = {
HOST = TRUE,
ONE_TIME = TRUE,
INTERVAL = 0,
CONDITION_FUNC = "CF_STAGE0_SUB0_TRIGGER0",
REACT_FUNG = "RF_STAGE0_SUB0_TRIGGER0"
},
TRIGGER1 = {
HOST = TRUE,
ONE_TIME = FALSE,
INTERVAL = 3,
CONDITION_FUNC = "CF_STAGE0_SUB0_TRIGGER1",
REACT_FUNG = "RF_STAGE0_SUB0_TRIGGER1"
},
TRIGGER2 = {
HOST = TRUE,
ONE_TIME = FALSE,
INTERVAL = 3,
CONDITION_FUNC = "CF_STAGE0_SUB0_TRIGGER2",
REACT_FUNG = "RF_STAGE0_SUB0_TRIGGER2"
}
}
}
}
}
function CF_STAGE0_SUB0_TRIGGER0(pKTDXApp, pX2DungeonGame, pX2DungeonSubStage)
if pX2DungeonSubStage ~= nil and pX2DungeonSubStage:GetStarted() == true then
return true
else
return false
end
end
function RF_STAGE0_SUB0_TRIGGER0(pKTDXApp, pX2DungeonGame, pX2DungeonSubStage)
pX2DungeonGame:SetStartRealTraining(true)
end
function CF_STAGE0_SUB0_TRIGGER1(pKTDXApp, pX2DungeonGame, pX2DungeonSubStage)
pTrainingUI = pX2DungeonGame:GetTrainingGameUI()
eNPCID = pTrainingUI:GetFTNPCID()
if pX2DungeonGame:GetStartRealTraining() == true then
nCount = pX2DungeonGame:LiveNPCNumType_LUA(eNPCID) - pTrainingUI:GetFTNPCCount()
if nCount < 0 then
return true
elseif nCount > 0 then
pX2DungeonGame:KillNPC(eNPCID, nCount)
return false
end
else
return false
end
end
function RF_STAGE0_SUB0_TRIGGER1(pKTDXApp, pX2DungeonGame, pX2DungeonSubStage)
pLineMap = pX2DungeonGame:GetLineMap()
pTrainingUI = pX2DungeonGame:GetTrainingGameUI()
eNPCID = pTrainingUI:GetFTNPCID()
iNPCLevel = pTrainingUI:GetFTNPCLevel()
if eNPCID == NPC_UNIT_ID.NUI_PVP_HERO_CODE_Q_PROTO_00 then
vPos = pX2DungeonGame:GetEmptyStartPos()
vPos.y = vPos.y - 240
pX2DungeonGame:PushCreateNPCReq_Lua(eNPCID, iNPCLevel, true, vPos, false, 0, true, 0)
pX2DungeonGame:FlushCreateNPCReq()
else
pMyUnit = pX2DungeonGame:GetMyUnit()
vPos = pLineMap:GetRandomPositionDir(pMyUnit:GetPos(), 500, true, false)
vPos.y = vPos.y + 150
pX2DungeonGame:PushCreateNPCReq_Lua(eNPCID, iNPCLevel, true, vPos, false, 0, true, 0)
pX2DungeonGame:FlushCreateNPCReq()
end
end
function CF_STAGE0_SUB0_TRIGGER2(pKTDXApp, pX2DungeonGame, pX2DungeonSubStage)
if pX2DungeonGame:GetStartRealTraining() == true then
return true
else
return false
end
end
function RF_STAGE0_SUB0_TRIGGER2(pKTDXApp, pX2DungeonGame, pX2DungeonSubStage)
pTrainingUI = pX2DungeonGame:GetTrainingGameUI()
if pTrainingUI ~= nil then
pX2DungeonGame:SetEnableAllNPCConditionTable(pTrai ningUI:GetFTEnableNPCAttack())
end
end
06/20/2013 16:46 sucreaulait#7
Quote:
Originally Posted by Blowfy View Post
NUI_PVP_HERO_CODE_Q_PROTO_00
I test it myself, work.
I will try again, but at this point I am going to be defined as insane by Eisenstein lol
06/20/2013 18:16 omieqqe#8
Still dont know if it's work for other NPC title anyone can correct my .Lua above please
06/20/2013 22:14 Aucoin2#9
I too also have a problem but with the pvp npc EDan. I can summon him in free training but the kills no longer count towards the title? Any idea how to solve this?
06/21/2013 09:29 sucreaulait#10
Q_PROTO_00 doesn't work still ^^

Quote:
Originally Posted by Blowfy View Post
NUI_PVP_HERO_CODE_Q_PROTO_00
I test it myself, work.
Which lua editor are you using?
07/04/2013 21:12 PockeyLolli#11
What are the IDs for other Epic NPCs?
07/05/2013 01:20 Aucoin2#12
NUI_PVP_HERO_LOW
NUI_PVP_HERO_PENENSIO
NUI_PVP_HERO_NOA
NUI_PVP_HERO_SPIKA
NUI_PVP_HERO_LIME
NUI_PVP_HERO_AMELIA
NUI_PVP_HERO_EDAN
NUI_PVP_HERO_BALAK
NUI_PVP_HERO_CODE_Q_PROTO_00
NUI_PVP_HERO_APPLE

Took me awhile to find these, hope this helps. If you manage to get it working towards the kill count in the titles, let me know how, good luck :P