Forum

> > CS2D > Scripts > how make fire on lua
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch how make fire on lua

18 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: how make fire on lua

agash2010
User Off Offline

Zitieren
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

alt Re: how make fire on lua

EP
User Off Offline

Zitieren
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

alt Re: how make fire on lua

EP
User Off Offline

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

alt Re: how make fire on lua

EP
User Off Offline

Zitieren
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?

alt Re: how make fire on lua

agash2010
User Off Offline

Zitieren
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},
     },

alt Re: how make fire on lua

EP
User Off Offline

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

alt Re: how make fire on lua

EP
User Off Offline

Zitieren
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

alt Re: how make fire on lua

agash2010
User Off Offline

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

alt Re: how make fire on lua

Alistaire
User Off Offline

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

alt Re: how make fire on lua

4Vendetta
User Off Offline

Zitieren
user 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!
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht