2× editiert, zuletzt 20.02.12 23:50:03
Forum
CS2D Scripts how make fire on luahow make fire on lua
18 Antworten 1
1
effect "fire" X Y
1
addhook("second","a") function a() parse("effect "fire" X Y") end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Afire = {} Afire = false addhook("say","a") function a(id,txt) 	if txt == "!fire" then 	Afire = true 	elseif txt == "!nofire" then 	Afire = false 	end end addhook("second","b") function b() 	if Afire == true then 	parse("effect "fire" X Y") 	end end
name = "flamethrower rune",
Class = {"Noobie","Magician","Knight","Ninja"},
desc = "You may only use it once.",
r = 185, g = 25, b = 25,
action = {"cast","hold"},
slot = 9,
fimage = "gfx/weiwen/rune.png",
func = {function(id,itemslot,itemid,equip)
radiusmsg(player(id,"name") .. " casts a firewave rune.", player(id,"x"), player(id,"y"))
parse("equip " .. id .. " 46")
parse("setweapon " .. id .. " 46")
addtimer(1000, parse, "strip " .. id .. " 46")
destroyitem(id, itemslot, equip)
end,equip},
},
Alistaire hat geschrieben
Most 'tibia editors' have just read the tutorial on tibia. They aren't that much of a good scripter. Vendetta-guy for example just copied other tibia scripts and asks for help at everything he wants.
Yep. I do my self just simple edits!
1