Forum

> > CS2D > Scripts > how make fire on lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English how make fire on lua

18 replies
To the start Previous 1 Next To the start

old Re: how make fire on lua

agash2010
User Off Offline

Quote
thx i love you plz i think is addtimer like this plz because when i do it its just for a second i want for 1 minute

old Re: how make fire on lua

EP
User Off Offline

Quote
You can do it in the mapeditor side, it's Gen_FX > Fire , or to keep the fire of the parse("effect "fire"") do a second hook to do it second by second, it should be
1
addhook("second","a") function a() parse("effect "fire" X Y") end

old Re: how make fire on lua

EP
User Off Offline

Quote
does the lua active the fire or the fire will start in the lua to give a furnice for the map? please answer

old Re: how make fire on lua

EP
User Off Offline

Quote
it needs a value to keep it on if you are using the second, but another hook must active it. Example:
1
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
can you understand what i mean?

old Re: how make fire on lua

agash2010
User Off Offline

Quote
look plz try      [104] = {
          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},
     },

old Re: how make fire on lua

EP
User Off Offline

Quote
that is a rune of the tibia script, it gives you a flamethrower, and that doesnt matter with the fire that you were asking

old Re: how make fire on lua

EP
User Off Offline

Quote
ask to a Tibia Editor, like Factis669 , Vendetta4 or anyone who know how to edit tibia, i can do that but im studying for a test sorry

old Re: how make fire on lua

agash2010
User Off Offline

Quote
plz just just help how to addtimer(1000, parse for effect like like this something plz >>                     addtimer(1000, parse, "effect "fire" " .. id .. ",x,y")

old Re: how make fire on lua

Alistaire
User Off Offline

Quote
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.

old Re: how make fire on lua

4Vendetta
User Off Offline

Quote
user Alistaire has written
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!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview