Page 1 of 1

LunaDLL help

Posted: Tue Oct 14, 2014 10:39 pm
by Destiny
I can make Leaf/Tanooki Mario, Leaf/Tanooki Luigi and Leaf/Tanooki Peach double-jump?

Re: LunaDLL help

Posted: Tue Oct 14, 2014 11:35 pm
by lighthouse64
Kei wrote:I can make Leaf/Tanooki Mario, Leaf/Tanooki Luigi and Leaf/Tanooki Peach double-jump?
I think this'll help:

Code: Select all

canDoublejump = true

function onLoad()
	canDoublejump = true
end

function onJumpEnd()
	canDoublejump = true
end

function onLoop()
	if(uservar["jump-counter"]~=0)then
		printText("Jumps: "..tostring(uservar["jump-counter"]), 30, 160)
	end
end

function onKeyDown(keycode)
	if(canDoublejump and keycode == KEY_JUMP and player:mem(0x60,FIELD_WORD) == -1)then --0x60 is the memory offset if the player is in the air. -1 means the player is in air.
		player.speedY = -1
		canDoublejump = false;
		if(uservar["jump-counter"]~=0)then
			uservar["jump-counter"] = uservar["jump-counter"] + 1
		else
			uservar["jump-counter"] = 1
		end
	end
end

function onJump(plIndex)
	if(uservar["jump-counter"]~=0)then
		uservar["jump-counter"] = uservar["jump-counter"] + 1
	else
		uservar["jump-counter"] = 1
	end
	UserData.save()
end


Re: LunaDLL help

Posted: Wed Oct 15, 2014 12:01 am
by Destiny
Where I can get LunaDLL with Lua?

Re: LunaDLL help

Posted: Wed Oct 15, 2014 12:05 am
by lighthouse64
Kei, here is the luna lua DLL Smbx version. https://www.dropbox.com/s/pk93koju8su4w ... W.zip?dl=0 Warning it may be considered as a virus...