How to added item [set's particles]
More 

example helmet of leather:
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
[300] = { --- There are a number of all items)
	name = "leather helmet", --a name :D
	desc = "Protect yourself from headshots!", --examine
	r = 128, g = 64, b = 0, colours(no colur 255,255,255
	action = "equip", --action (example eat,equip..)
	slot = 1, --- See the second
	eimage = "gfx/weiwen/helmet.png", ---equip image
	fimage = "gfx/weiwen/helmet.png", drop image
	def = 0.05, ----in defase, see the second
	speed = -1, ---speed
	func = equip, -----function
	},
Hud system and stats
More 

A stat loading type;
Stats (COFIG.STATS)
STATS = {'Experience', 'Level', 'Money'},
--hud stats (not see :D)
STATSMENU = {"hp", "atk", "def", "spd"},
hp(heal point),atk(atack),def(defance),spd(speed).
[/code]
1
2
3
4
5
2
3
4
5
HUDImage = image('gfx/weiwen/1x1.png' --image
, 565, 407+#CONFIG.STATS*CONFIG.PIXELS/2, 2) --confinged stats added style
imagescale(HUDImage, 130,CONFIG.PIXELS+#CONFIG.STATS*CONFIG.PIXELS)
--confinged stats added style
imagealpha(HUDImage, 0.5)
STATS = {'Experience', 'Level', 'Money'},
--hud stats (not see :D)
STATSMENU = {"hp", "atk", "def", "spd"},
hp(heal point),atk(atack),def(defance),spd(speed).
[/code]
Save system
More 

local file = io.open(dir .. "saves/" .. map'name' .. ".lua")
if file then
io.close(file)
dofile(dir .. "saves/" .. map'name' .. ".lua")
for y = 0, map'ysize' do
if TMPGROUNDITEMS[y] then
for x = 0, map'xsize' do
if TMPGROUNDITEMS[y][x] then
for _, j in ipairs(TMPGROUNDITEMS[y][x]) do
if j < 0 then
spawnitem(1337, x, y, -j)
else
spawnitem(j, x, y)
end
end
end
end
end
end
for i, v in pairs(TMPHOUSES) do
for k, l in pairs(v) do
HOUSES[i][k] = l
end
end
TMPGROUNDITEMS = nil
TMPHOUSES = nil
end
local file = io.open(dir .. "saves/players.lua")
if file then
io.close(file)
dofile(dir .. "saves/players.lua")
end
file = nil
if file then
io.close(file)
dofile(dir .. "saves/" .. map'name' .. ".lua")
for y = 0, map'ysize' do
if TMPGROUNDITEMS[y] then
for x = 0, map'xsize' do
if TMPGROUNDITEMS[y][x] then
for _, j in ipairs(TMPGROUNDITEMS[y][x]) do
if j < 0 then
spawnitem(1337, x, y, -j)
else
spawnitem(j, x, y)
end
end
end
end
end
end
for i, v in pairs(TMPHOUSES) do
for k, l in pairs(v) do
HOUSES[i][k] = l
end
end
TMPGROUNDITEMS = nil
TMPHOUSES = nil
end
local file = io.open(dir .. "saves/players.lua")
if file then
io.close(file)
dofile(dir .. "saves/players.lua")
end
file = nil
There's more. i can share
ASK ME A QUESTION
edited 1×, last 26.09.11 05:36:44 pm
Say I have gote proble*m
1 
Say I have gote proble*m
Offline
FrozenDarq
wrong forum