Page 1 of 1

I found Unknown4c Function!!

PostPosted: Thu Nov 19, 2015 2:34 pm
by panic
unknown4c mean holder of inventory!!

example code.
#MapInitialize
Gvar5 = create("WarHammer",Waypoint("SpawnHammer"))
call hitHammer
Gvar6 // holder of hammer

#hitHammer
var0[1]
___
var0 = MaxHealth(Gvar5) - CurrentHealth(Gvar5) // hammer hit the obstacle.
if not var0 != 0 jump 10
restoreHealth(Gvar5,100)
Gvar6 = unknown4c(Gvar5) // holder of hammer.
enchant(Gvar6,"ENCHANT_SHOCK",f5)
castSpellOn("SPELL_EARTHQUAKE",Gvar6,Gvar6)
:10
FrameTimer(1,c) // 'c' mean Current function number.
return



this map use unknown4c function...!!
map name is 'Magic Swords Duel. !!'

Re: I found Unknown4c Function!!

PostPosted: Mon Aug 01, 2016 11:58 pm
by Host_6
I've added this function to the new version of Map Editor under the name: "GetHolder" even with description, thanks