CS2D Tibia Helр For Begginers!
12 replies



26.04.11 08:56:09 pm
Welcome!
The Begin,
Download The Tibia RPG Script
http://www.unrealsoftware.de/files_show.php?file=1135
Then Open Your Wrapper.txt delete the 2 functions about map.
Now, Let's Edit!
Make Your Own Map(if you want)
Lua Scripts
Section : sys/lua/cs2dtibia/config.lua
Edit Your MSG (if you want)
Change Maxmonsters or Maxitems(if you want)
EXP,STATS,STATSMENU (Never Edit!)
Playerinit:
Experience = 0,(if you want)
Level = 1,(if you want)
Money = 1000,(if you want)
HP = 100,(never)(not reccomend to change)
MP = 100,(never)(not reccomend to change)
Inventory = {}, (if you want)
Equipment = {}, (if you want)
Spawn = {1632, 1600}, (if you want)(need if you changed the original map as how i sayd)
Tutorial = {},(never)(not reccomend to change)
Info = {},(never)(not reccomend to change)
Slots:
Edit Them!
Add Your Own If You Want!
Don't Add More than 9 (but if you want go to functions.lua section)
HUDTEXT,PIXELS (don't change them)
COLOURS: Mine Look Like This :
COLOURS = {},
Rates:
EXPRATE = 1,
MONEYRATE = 1,
DROPRATE = 1,
PLAYERMONEYRATE = 1,
PLAYERDROPRATE = 2000,
(Change Them If You Want)
Exhaust
EXHAUST = {
TALK = 500,
PICK = 500,
USE = 2000,
},
(Don't Change)
Range:
WEAPONRANGE = {
[34] = 350,
[46] = 128,
[50] = 27,
[69] = 32,
[78] = 32,
},
WEAPONWIDTH = {
[34] = math.pi/12,
[46] = math.pi/8,
[50] = math.pi*2/3,
[69] = math.pi*2/3,
[78] = math.pi*2/3,
}
}
(Go To Bugs/Suggestions Section For This!)
SAFEZONE = {
{{0,0},{77,75}},
}
PVPZONE = {
{{0,0},{0,0},{0,0}},
}
HOUSES = {}
(Change Them If You Want) ( These are mine )
Finish With The Config!
Section : sys/lua/cs2dtibia/server.lua
The Original :
We'll go edit from Line : HUDImage
HUDImage:
(Change It If you want)(Its The Image Where Shows You Exp,Lvl,Gold...)
HUDRadar:
The PokeBall As Ur Radar
(Change It If you want)
Section : sys/lua/cs2dtibia/commands.lua
Don't Change Them...Most Player Know Just These commands!
Section : sys/lua/cs2dtibia/admin.lua
Add Or Edit Here The Commands!
I Will Give you later some usefull commands to add!(eg !noclip,!vip)
Section : sys/lua/cs2dtibia/functions.lua
Here are the commands used in this script anyway...dont change them please!
Section : sys/lua/cs2dtibia/hooks.lua
Finaly...hooks! Arshhh Hate Them
You can Edit Them and add your own ( I will add here some too )
Don't Change Their Basic!
Weiwen Work much to do them!
Section : sys/lua/cs2dtibia/items.lua
Most of peoples has some troubles there
Click Here to see how I helped here!
Let's See How To add Items!
Comestible Items:
This is an apple....You see his basic? I can say yes...
Let me edit it a little
Something Hard Here but Trust me is not hard... Is the Line
the thing (40,50) is the random health gives you between 40 - 50
Easy!
Equipament:
My Fav! Just Change Name,eimage,fimage,def,speed,and remove color!
Swords:
Here it equips id 69 so... you have to go at bugs section to know about this
do same as Equipament but here replace def to atk...and offsets you dont need them always, depends on the png you use! you can use with black background (RGB 0 0 0)It still make Translucent Color
Shooting Weapons:
again this brings to Bugs section.... i mean the weapon it equips it don't work to atack with it if you don't change up weaponwidth and range
Mounts:
same...editable! oh i forgot about something, you can add level to items like that line
but i suggest you something at name make eg leather helm [level 1]
Section : sys/lua/cs2dtibia/npcs.lua
add your own or edit them
Position: just get into the game go to the tile u want for npc and say !n then the coordoinates will show! or
be clever and open editor then go to tile eg 0|0 and let's make it! 0*32=32+16 = 48 so the npc's pos is {48,48}
Section : sys/lua/cs2dtibia/monsters.lua
ah hard just edit them i dont know what to say here...
Bugs & Suggestions
WEAPONWIDTH & WEAPONRANGE
Do this theory:
Well if you find another... please post them here
Sry for my bad english
If something is wrong please escuse me!
With sinceritly Hano.ro
The Begin,
Download The Tibia RPG Script
http://www.unrealsoftware.de/files_show.php?file=1135
Then Open Your Wrapper.txt delete the 2 functions about map.
Now, Let's Edit!
Make Your Own Map(if you want)

Section : sys/lua/cs2dtibia/config.lua
Edit Your MSG (if you want)
Change Maxmonsters or Maxitems(if you want)
EXP,STATS,STATSMENU (Never Edit!)
Playerinit:
Experience = 0,(if you want)
Level = 1,(if you want)
Money = 1000,(if you want)
HP = 100,(never)(not reccomend to change)
MP = 100,(never)(not reccomend to change)
Inventory = {}, (if you want)
Equipment = {}, (if you want)
Spawn = {1632, 1600}, (if you want)(need if you changed the original map as how i sayd)
Tutorial = {},(never)(not reccomend to change)
Info = {},(never)(not reccomend to change)
Slots:
Edit Them!
Add Your Own If You Want!
Don't Add More than 9 (but if you want go to functions.lua section)
HUDTEXT,PIXELS (don't change them)
COLOURS: Mine Look Like This :
COLOURS = {},
Rates:
EXPRATE = 1,
MONEYRATE = 1,
DROPRATE = 1,
PLAYERMONEYRATE = 1,
PLAYERDROPRATE = 2000,
(Change Them If You Want)
Exhaust
EXHAUST = {
TALK = 500,
PICK = 500,
USE = 2000,
},
(Don't Change)
Range:
WEAPONRANGE = {
[34] = 350,
[46] = 128,
[50] = 27,
[69] = 32,
[78] = 32,
},
WEAPONWIDTH = {
[34] = math.pi/12,
[46] = math.pi/8,
[50] = math.pi*2/3,
[69] = math.pi*2/3,
[78] = math.pi*2/3,
}
}
(Go To Bugs/Suggestions Section For This!)
SAFEZONE = {
{{0,0},{77,75}},
}
PVPZONE = {
{{0,0},{0,0},{0,0}},
}
HOUSES = {}
(Change Them If You Want) ( These are mine )
Finish With The Config!
Section : sys/lua/cs2dtibia/server.lua
The Original :
We'll go edit from Line : HUDImage
HUDImage:
(Change It If you want)(Its The Image Where Shows You Exp,Lvl,Gold...)
HUDRadar:
The PokeBall As Ur Radar
(Change It If you want)
Section : sys/lua/cs2dtibia/commands.lua
Don't Change Them...Most Player Know Just These commands!
Section : sys/lua/cs2dtibia/admin.lua
Add Or Edit Here The Commands!
I Will Give you later some usefull commands to add!(eg !noclip,!vip)
Section : sys/lua/cs2dtibia/functions.lua
Here are the commands used in this script anyway...dont change them please!
Section : sys/lua/cs2dtibia/hooks.lua
Finaly...hooks! Arshhh Hate Them
You can Edit Them and add your own ( I will add here some too )
Don't Change Their Basic!
Weiwen Work much to do them!
Section : sys/lua/cs2dtibia/items.lua
Most of peoples has some troubles there
Click Here to see how I helped here!
Let's See How To add Items!
Comestible Items:
Code:
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
[1] = {
name = "apple",
article = "an",
desc = "No visible worms.",
r = 255, g = 0, b = 0,
action = "eat",
food = function() return math.random(10,20) end,
fimage = "gfx/weiwen/apple.png",
func = eat,
},
name = "apple",
article = "an",
desc = "No visible worms.",
r = 255, g = 0, b = 0,
action = "eat",
food = function() return math.random(10,20) end,
fimage = "gfx/weiwen/apple.png",
func = eat,
},
This is an apple....You see his basic? I can say yes...
Let me edit it a little
Code:
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
[1] = {
name = "Milk Box",
article = "A",
desc = "For Strong Health.",
action = "eat",
food = function() return math.random(40,50) end,
fimage = "gfx/food/milkbox.png",
func = eat,
},
name = "Milk Box",
article = "A",
desc = "For Strong Health.",
action = "eat",
food = function() return math.random(40,50) end,
fimage = "gfx/food/milkbox.png",
func = eat,
},
Something Hard Here but Trust me is not hard... Is the Line
Code:
1
food = function() return math.random(40,50)
the thing (40,50) is the random health gives you between 40 - 50
Easy!
Equipament:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
[300] = {
name = "leather helmet",
desc = "Protect yourself from headshots!",
r = 128, g = 64, b = 0,
action = "equip",
slot = 1,
eimage = "gfx/weiwen/helmet.png",
fimage = "gfx/weiwen/helmet.png",
def = 0.05,
speed = -1,
func = equip,
},
name = "leather helmet",
desc = "Protect yourself from headshots!",
r = 128, g = 64, b = 0,
action = "equip",
slot = 1,
eimage = "gfx/weiwen/helmet.png",
fimage = "gfx/weiwen/helmet.png",
def = 0.05,
speed = -1,
func = equip,
},
My Fav! Just Change Name,eimage,fimage,def,speed,and remove color!
Swords:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[304] = {
name = "wooden sword",
desc = "Mostly used for training.",
r = 128, g = 64, b = 0,
action = "equip",
slot = 3,
eimage = "gfx/weiwen/sword.png",
fimage = "gfx/weiwen/sword.png",
offsetx = 6,
offsety = 17,
equip = 69,
atk = 0.25,
speed = -1,
func = equip,
},
name = "wooden sword",
desc = "Mostly used for training.",
r = 128, g = 64, b = 0,
action = "equip",
slot = 3,
eimage = "gfx/weiwen/sword.png",
fimage = "gfx/weiwen/sword.png",
offsetx = 6,
offsety = 17,
equip = 69,
atk = 0.25,
speed = -1,
func = equip,
},
Here it equips id 69 so... you have to go at bugs section to know about this
do same as Equipament but here replace def to atk...and offsets you dont need them always, depends on the png you use! you can use with black background (RGB 0 0 0)It still make Translucent Color
Shooting Weapons:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[307] = {
name = "wooden crossbow",
desc = "It requires you to hold it with two hands.",
r = 128, g = 64, b = 0,
action = "equip",
slot = 3,
twohand = true,
eimage = "gfx/weiwen/bow.png",
fimage = "gfx/weiwen/bow.png",
offsety = 9,
equip = 34,
atk = 0.1,
speed = -2.5,
func = equip,
},
name = "wooden crossbow",
desc = "It requires you to hold it with two hands.",
r = 128, g = 64, b = 0,
action = "equip",
slot = 3,
twohand = true,
eimage = "gfx/weiwen/bow.png",
fimage = "gfx/weiwen/bow.png",
offsety = 9,
equip = 34,
atk = 0.1,
speed = -2.5,
func = equip,
},
again this brings to Bugs section.... i mean the weapon it equips it don't work to atack with it if you don't change up weaponwidth and range
Mounts:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
[401] = {
name = "white horse",
desc = "You move faster with it, but are unable to attack with it. Your defence is also reduced significantly.",
r = 255, g = 255, b = 255,
action = "ride",
slot = 7,
ground = true,
fimage = "gfx/weiwen/horse.png",
eimage = "gfx/weiwen/horse.png",
speed = 20,
def = -0.5,
level = 10,
func = equip,
},
name = "white horse",
desc = "You move faster with it, but are unable to attack with it. Your defence is also reduced significantly.",
r = 255, g = 255, b = 255,
action = "ride",
slot = 7,
ground = true,
fimage = "gfx/weiwen/horse.png",
eimage = "gfx/weiwen/horse.png",
speed = 20,
def = -0.5,
level = 10,
func = equip,
},
same...editable! oh i forgot about something, you can add level to items like that line
Code:
1
level = 10,
but i suggest you something at name make eg leather helm [level 1]
Section : sys/lua/cs2dtibia/npcs.lua
add your own or edit them
Position: just get into the game go to the tile u want for npc and say !n then the coordoinates will show! or
be clever and open editor then go to tile eg 0|0 and let's make it! 0*32=32+16 = 48 so the npc's pos is {48,48}
Section : sys/lua/cs2dtibia/monsters.lua
ah hard just edit them i dont know what to say here...

WEAPONWIDTH & WEAPONRANGE
Do this theory:
Well if you find another... please post them here
Sry for my bad english
If something is wrong please escuse me!
With sinceritly Hano.ro

edited 3×, last 28.04.11 01:52:17 pm
Make this sticky, so kids that will ask about tibia shit can refer to this!
I don't want to say it's a good job, because I don't like tibia well.
I don't want to say it's a good job, because I don't like tibia well.
"A work of art is the unique result of a unique temperament." - Oscar Wilde
You should add some [code] and [spoiler ] tags to your post,
Bobakrome.

05.08.11 03:31:04 am
So i got no clue on how to fix this shit that happened to me.
Anyone care to explain + give a patch / fix? lmao
LOAD MAP: 'maps/ysize.map' does not exist
LUA ERROR: sys/lua/tibia/server.lua:21:'for' limit must be a number
Anyone care to explain + give a patch / fix? lmao
LOAD MAP: 'maps/ysize.map' does not exist
LUA ERROR: sys/lua/tibia/server.lua:21:'for' limit must be a number

So i got no clue on how to fix this shit that happened to me.
Anyone care to explain + give a patch / fix? lmao
LOAD MAP: 'maps/ysize.map' does not exist
LUA ERROR: sys/lua/tibia/server.lua:21:'for' limit must be a number
Anyone care to explain + give a patch / fix? lmao
LOAD MAP: 'maps/ysize.map' does not exist
LUA ERROR: sys/lua/tibia/server.lua:21:'for' limit must be a number
get the old "wrapper.lua" in that or download the new tibia mod
"A work of art is the unique result of a unique temperament." - Oscar Wilde
Shit about wrapper already fixed by weiwen
And ur thread is shit
And ur thread is shit
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
Nice man, I like your math...
Code:
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
[1] = {
name = "Milk Box",
article = "A",
desc = "For Strong Health.",
action = "eat",
food = function() return math.random(40,50) end,
fimage = "gfx/food/milkbox.png",
func = eat,
},
name = "Milk Box",
article = "A",
desc = "For Strong Health.",
action = "eat",
food = function() return math.random(40,50) end,
fimage = "gfx/food/milkbox.png",
func = eat,
},
dizziness from Indonesia! Visit our site: http://www.rajagame.com/
Warning: If i'm rating your uploads it mean your uploads is perfect 5/5 or defect 1/5-4/5

i know how to easy install tibia and link here
http://www.mediafire.com/?tlhcd7brrth9zgd
http://www.mediafire.com/?tlhcd7brrth9zgd



