CreateNPCReq_LUA function

09/13/2013 13:14 test_user3000#1
I try to understand it in some original lua files(ParasiteHouse.lua、BeeHouse.lua、Gliter_Tomb.l ua ...etc.).

=> pX2Game:CreateNPCReq_LUA(NPC_UNIT_ID.NUI_JOKE_PPOR U, //I just only know THIS ONE! :(
pNPCUnit:GetHardLevel(), //unknown No.1
TRUE, //unknown No.2
pos, //unknown No.3
pNPCUnit:GetIsRight(), //unknown No.4
0, //unknown No.5
false //unknown No.6
)

I think we can control what npc we are created is enemy or teammate. Did anyone know how to use this function?

and anyone know how to create exp. or ed cash machine?
09/13/2013 13:19 Adrian420#2
The mobs will drop absolutely nothing. No exp or ED. Don't waste your time.
09/13/2013 14:10 test_user3000#3
I find the way to create ally NPC...
pX2Game:CreateNPCReqAlly(NPC_UNIT_ID.NUI_KNIGHT_LO RD_KNIGHT, pNPCUnit:GetHardLevel(), false, vSummonPos, false, D3DXVECTOR3(0, pNPCUnit:GetKeyCode(), 0), false, TEAM_NUM.TN_RED)

Maybe we can create PVP NPC in TEAM_NUM.TN_BLUE and get NPC title...

By the way, I'm a Taiwanese player. I created a exp. machine by using EventBox_Maker.lua. This is one event that we can get exp from this Event_child_box which is made by EventBox_Maker. And Gliter_Zombie droped ED in the past.
so... Is there no anyway to create exp. or ED?
09/14/2013 07:53 HyawehHoshikawa#4
pNPCUnit:GetHardLevel(), # the summoned monster's level, you can directly set it at 120, and the summoned monster will be at level 120
TRUE, # either active, or dropping item parameter
pos, # its summoning position, i think it consist of x and y coordinat
pNPCUnit:GetIsRight(), #probably where is its facing direction when summoned
0, //unknown No.5 # i don't know either.
false //unknown No.6 # either active or droping item parameter
)
active parameter determine whether that monster can be hit or not .
droping parameter determine whether that monster can drop item or not.
though, now dropping parameter is insignificant because it is patched.
09/14/2013 10:13 Norishige-Kun#5
~ Fieeeeld, Drop and Exp hack.. ~