Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Scripts/Questions/Help

6,770 replies
Page
To the start Previous 1 2243 244 245338 339 Next To the start

old Re: Lua Scripts/Questions/Help

Soja1997
User Off Offline

Quote
Arctic has written
Soja1997 has written
i dont need this script but now i need reset funciton glow,freeimage on player


reset or remove the image?

for hook 'say' this is example! others thing use your brain.
1
2
3
if (txt == "!remove") then
		freeimage(id)
end

for hook 'serveraction'
1
2
3
if (action == 1) then -- 1 mean for F2/serveraction1
		freeimage(id)
end

dont work;/ no errors

old Re: Lua Scripts/Questions/Help

Blacko
User Off Offline

Quote
Hi, I need your help !
I search a script who make a color of different writting and with the name "Admin" after the pseudo and quite his configured with the USGN, for example : iDios(Admin):I need your help ! ... And all written in the color red for example ...
Thanks you !

old Re: Lua Scripts/Questions/Help

Rainoth
Moderator Off Offline

Quote
This was written 1 page before iDios.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Code:
addhook("say","adminsay")
function membersay(id,t)
if (player(id,"usgn") == 15476) then
if t=="rank" then
return 0
else
msg("©255000000"..player(id,"name").." (Script Author): "..t)
return 1 end
elseif (player(id,"usgn") == YourUSIDhere) then
if t=="rank" then
return 0
else
msg("©255000000"..player(id,"name").." (Admin): "..t)
return 1
end
end
end

Where written "YourUSIDhere" change to your ID

old Rp Lua Prob

Slayer
User Off Offline

Quote
I have a prob w/ my...rp Lua here's the problems:
1. When I do !rp_admin dunno it goes at the chat
2. When I talk it spams 2 msg's
so thts all pls FIX!

And here's download link it won't show up here so: http://www.mediafire.com/?mu17ifsv8t9sdua its txt doc but if u use Goggle Chrome its Lua so plz fix

old Re: Lua Scripts/Questions/Help

HaRe
User Off Offline

Quote
batlaizys has written
I have a question about "menu" hook. Is it posible to make exampl 5 menus with 1 "menu" hook ? If so then how ?

idk if you mean this but

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
addhook("serveraction","menu1")
function menu1(id,b)
	if b==1 then
		menu(id,"Menu 1,Menu 2,Menu 3,Menu 4")
	end
end

function menu2(id)
	menu(id,"Menu 2,This is menu 2,what ever")
end
function menu3(id)
	menu(id,"Menu 3,This is menu 3,what ever")
end
function menu4(id)
	menu(id,"Menu 4,This is menu 4,what ever")
end

addhook("menu","menu1m")
function menu1m(id,title,button)
	if title=="Menu 1" then
		if button==1 then
			menu2(id)
		elseif button==2 then
			menu3(id)
		elseif button==3 then
			menu4(id)
		end
	end
end

old Kamikaze for team 1

wero
User Off Offline

Quote
I need script that makes this kamikaze work only for team 1


Spoiler >

old Re: Lua Scripts/Questions/Help

HaRe
User Off Offline

Quote
Soja1997 has written
i need script if player kill player give him medikit


1
2
3
4
addhook("die","getmedikit")
function getmedikit(victim,killer,weapon,x,y)
	parse("sethealth "..killer.." 100")
end

old Re: Lua Scripts/Questions/Help

Blacko
User Off Offline

Quote
Hi all, today I saw a strange script in the map [Bloker] ! This script allowed admins (with their USGN) to cross walls ! The movements when they cross are the same that those of the NPC ! I think he move with a menu ? Is it a script ? If yes how to make it ? Sorry for my english
Thanks you !
edited 1×, last 29.08.10 06:28:10 pm

old Re: Lua Scripts/Questions/Help

KenVo
User Off Offline

Quote
I need some help with my mana system in my tibia script
when i have under 100 mana and when i quit then rejoin the server, my mana will me glitched and i'm not gaining mana any more

Spoiler >


please help
To the start Previous 1 2243 244 245338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview