Hello all ^^
I have been playing around with editing KOM for a little while now and I have gotten various degree of success.
I wanted to hack for the Altera secret set so I started with Normal mode and the boss dropped gloves and boots for me.
Seeing how the boss didn't drop the rest of the set, I thought it must drop at hell mode so I tried that but I couldn't seem to get the boss at hell mode to drop anything.
I am using a lvl 55 character and I set the boss lvl to 60, yet, I got no ED, EXP, or item from the boss.
I have included the code I used, so please do take a look to see if I am doing anything wrong or let me know if I am not fighting the right boss.
Thank you very much in advance.
function CF_CUSTOM_TRIGGER0(pKTDXApp, pX2DungeonGame, pX2DungeonSubStage)
return true
end
function RF_CUSTOM_TRIGGER0(pKTDXApp, pX2DungeonGame, pX2DungeonSubStage)
local msgStr = ""
local myMsgBox
if pX2DungeonGame ~= nil then
do
local npcEnumID = "NUI_ELSWORD_PARASITE_EXTRA"
if NPC_UNIT_ID[npcEnumID] ~= nil then
do
local npcCount = pX2DungeonGame:LiveNPCNumType_LUA(NPC_UNIT_ID[npcEnumID])
if npcCount > 0 then
pX2DungeonGame:KillNPC(NPC_UNIT_ID[npcEnumID], npcCount)
end
local lpMyUnit = pX2DungeonGame:GetMyUnit()
local pos = lpMyUnit:GetPos()
pos.x = pos.y - 480
local bRight = false
local cnt = 0
for cnt = 1, 5 do
pX2DungeonGame:CreateNPCReq_LUA(NPC_UNIT_ID[npcEnumID], 60, false, pos, bRight, 0, false)
end
end
else
msgStr = "NPC_UNIT_ID not found"
end
end
else
msgStr = "pX2DungeonGame uninitialized"
end
if msgStr ~= "" then
myMsgBox = g_pMain:KTDGUIOKMsgBox(D3DXVECTOR2(250, 300), msgStr, g_pStage)
myMsgBox:SetModal(true)
myMsgBox:SetFront(true)
myMsgBox:SetLayer(X2_DIALOG_LAYER.XDL_MESSENGER)
myMsgBox:SetEnableMoveByDrag(true)
end
end