Forum

> > CS2D > Mods > CS2DTibia - RPG
Forums overviewCS2D overview Mods overviewLog in to reply

English CS2DTibia - RPG

90 replies
Page
To the start Previous 1 2 3 4 5 Next To the start

old Re: CS2DTibia - RPG

4064305
User Off Offline

Quote
Thanks for explaining that to him Wolf ;). What I want right now is to get the script working on my dedi, and I don't know what is wrong but the script gives me a whole lot of errors in the logs and it doesn't transfer the files its supposed to.
This happens with a clean installation directly downloaded from the download page. I can't think of anything I could've done wrong because I haven't done anything.

old Re: CS2DTibia - RPG

RAVENOUS
BANNED Off Offline

Quote
where can I buy crossbows and other weapons and armor? I need to level up to buy those?

old Re: CS2DTibia - RPG

Tenaika
User Off Offline

Quote
You can buy leather armor at the first town, aswell with wooden weapons. Stone weapons/armors are dropped my Onix's.
Crossbow can't be bought in this original version, but you can script it to anything you want.

old Problem

-AJAX
User Off Offline

Quote
When I create the server appears to play solo monsters walking over it because they do not attack people?

and when I open the console appears this: [code] LUA ERROR: sys/lua/cs2d/monsters.lua: 323: attempt to index field '? " (A nil value) [/ code]

and it appears that too: [code] Moon ERROR: sys/lua/cs2dtibia/hooks.lua: 48 attempt to index field '? " (A nil value) [/ code]

What are the problem?

old Re: CS2DTibia - RPG

Admir
User Off Offline

Quote
Appleee has written
When I create the server appears to play solo monsters walking over it because they do not attack people?

and when I open the console appears this: [code] LUA ERROR: sys/lua/cs2d/monsters.lua: 323: attempt to index field '? " (A nil value) [/ code]

and it appears that too: [code] Moon ERROR: sys/lua/cs2dtibia/hooks.lua: 48 attempt to index field '? " (A nil value) [/ code]

What are the problem?


use dedicated server to host this mode

old customisation fails...

4064305
User Off Offline

Quote
okay I know how to host this now. But I can't edit stuff because it gives me errors with almost everything I edit. But this a real weird one, since everything works but the logs just quit getting logged while I'm still playing in the server. No other users can join while this is happening, but I can just play on.

The error I get is this one:
1
2
3
4
[16:12:23] Starting transfer to kiwi @ laptop (files: 16) ...
[16:12:23] kiwi @ laptop needs or accepts no files.
[16:12:31] LUA ERROR: sys/lua/cs2dtibia/monsters.lua:313: attempt to index a nil value
[16:

Its where the monsters choose a spawnpoint. But I can't figure out what the problem is since I only changed the safezones and 1 house (to test). This all works btw so... I don't get it anymore.

The edited safezones and house.
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
SAFEZONE = {
	{{1,1},{21,24}},
	{{1,72},{26,101}},
	{{104,1},{124,124}},
}

PVPZONE = {
	{{88,32},{98,43},{88,30}},
}

HOUSES = {
	{pos1 = {104,1}, pos2 = {109,5}, ent = {110,1}, door = {109,1}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 1_1
	{pos1 = {91,2}, pos2 = {93,5}, ent = {93,6}, door = {93,5}, price = 300, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 2_1
	{pos1 = {95,2}, pos2 = {97,5}, ent = {97,6}, door = {97,5}, price = 300, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 3_1
	
	{pos1 = {0,21}, pos2 = {3,24}, ent = {4,24}, door = {3,24}, price = 450, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 4_1
	{pos1 = {0,26}, pos2 = {3,32}, ent = {4,26}, door = {3,26}, price = 900, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}}}, -- 5_1, 5_2
	{pos1 = {8,21}, pos2 = {12,24}, ent = {7,24}, door = {8,24}, price = 450, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 6_1
	{pos1 = {8,26}, pos2 = {12,32}, ent = {7,26}, door = {8,26}, price = 900, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}}}, -- 7_1, 7_2
	
	{pos1 = {99,2}, pos2 = {101,5}, ent = {101,6}, door = {101,5}, price = 300, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 8_1
	{pos1 = {103,2}, pos2 = {105,5}, ent = {105,6}, door = {105,5}, price = 300, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 9_1
	
	{pos1 = {127,86}, pos2 = {131,90}, ent = {131,91}, door = {131,90}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 10_1
	{pos1 = {133,86}, pos2 = {137,90}, ent = {137,91}, door = {137,90}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 11_1
	{pos1 = {139,86}, pos2 = {143,90}, ent = {143,91}, door = {143,90}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 12_1
	{pos1 = {124,93}, pos2 = {128,97}, ent = {124,92}, door = {124,93}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 13_1
	{pos1 = {130,93}, pos2 = {134,97}, ent = {130,92}, door = {130,93}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 14_1
	{pos1 = {136,93}, pos2 = {140,97}, ent = {136,92}, door = {136,93}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 15_1
	{pos1 = {142,93}, pos2 = {146,97}, ent = {142,92}, door = {142,93}, price = 1000, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 16_1
	
	{pos1 = {140,67}, pos2 = {142,69}, ent = {140,70}, door = {140,69}, price = 250, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 17_1
	{pos1 = {144,67}, pos2 = {146,69}, ent = {144,70}, door = {144,69}, price = 250, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 18_1
	{pos1 = {140,72}, pos2 = {142,74}, ent = {140,71}, door = {140,72}, price = 250, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 19_1
	{pos1 = {144,72}, pos2 = {146,74}, ent = {144,71}, door = {144,72}, price = 250, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 20_1
	
	{pos1 = {93,11}, pos2 = {98,15}, ent = {93,16}, door = {93,15}, price = 1500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}, [3] = {}}}, -- 21_1, 21_2, 21_3
	{pos1 = {100,11}, pos2 = {105,15}, ent = {105,16}, door = {105,15}, price = 1500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}, [3] = {}}}, -- 22_1, 22_2, 22_3
	{pos1 = {93,19}, pos2 = {98,23}, ent = {93,18}, door = {93,19}, price = 1500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}, [3] = {}}}, -- 23_1, 23_2, 23_3
	{pos1 = {100,19}, pos2 = {105,23}, ent = {105,18}, door = {105,19}, price = 1500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}, [2] = {}, [3] = {}}}, -- 24_1, 24_2, 24_3
	
	{pos1 = {141,50}, pos2 = {145,53}, ent = {140,53}, door = {141,53}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 25_1
	{pos1 = {141,55}, pos2 = {145,58}, ent = {140,58}, door = {141,58}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 26_1
	{pos1 = {141,60}, pos2 = {145,63}, ent = {140,63}, door = {141,63}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- 27_1
}

old Re: CS2DTibia - RPG

goweiwen
User Off Offline

Quote
if you want to remove all PVP zones, do this
1
PVPZONE = {}

1
[16:12:31] LUA ERROR: sys/lua/cs2dtibia/monsters.lua:313: attempt to index a nil value
hmm, do any of your monsters have spawn1 or spawn2?
if they do, make sure every tile between spawn1 and spawn2 exists. if they don't, gettile will return nil which causes the indexing of it to raise an error.
otherwise, try changing line 313 to this:
1
until tile(tilex, tiley, "walkable") and tile(tilex, tiley, "frame") ~= 34 and not gettile(tilex, tiley).SAFE and not gettile(tilex, tiley).PVP

old Re: CS2DTibia - RPG

4064305
User Off Offline

Quote
Thanks a lot for your help. I got a lot working now. Houses, zones and the transfer bug are fixed now. I started on the monsters and I almost finished them except that they all have a white frame around them which is supposed to be transparent. I wasted 20 minutes with GIMP making every white spot alpha, it didn't work.

Does anyone know how to do this?

old Re: CS2DTibia - RPG

Night Till Death
User Off Offline

Quote
Night Till Death has written
a small question.... if the !i command allows you to spawn an item by its ID then why cant i spawn a scout - crossbow? and how do i spawn money?
nevermiind i understand now..
edited 1×, last 10.06.10 11:26:10 am

old Re: CS2DTibia - RPG

Homer
User Off Offline

Quote
Question weiwen, where do you transfer the PLAYERCACHE/PLAYERS[id] data to PLAYERS[id][v]?


Edit: Fixed
edited 1×, last 29.06.10 03:37:04 am

old Re: CS2DTibia - RPG

mafia_man
User Off Offline

Quote
doors on my map not works only entities what is wrong in code ?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{pos1 = {82,26}, pos2 = {84,29}, ent = {86,27}, door = {85,27}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h1
	{pos1 = {82,31}, pos2 = {84,34}, ent = {86,33}, door = {85,33}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h2
	{pos1 = {82,36}, pos2 = {84,39}, ent = {86,38}, door = {85,38}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h3
	{pos1 = {89,26}, pos2 = {91,29}, ent = {87,28}, door = {88,28}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h4
	{pos1 = {89,31}, pos2 = {91,34}, ent = {87,32}, door = {88,32}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h5
	{pos1 = {89,36}, pos2 = {91,39}, ent = {87,38}, door = {88,38}, price = 700, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- h6

	{pos1 = {134,131}, pos2 = {138,135}, ent = {136,137}, door = {136,136}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi1
	{pos1 = {128,131}, pos2 = {132,135}, ent = {130,137}, door = {130,136}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi2
	{pos1 = {122,131}, pos2 = {126,135}, ent = {124,137}, door = {124,136}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi3

	{pos1 = {110,140}, pos2 = {113,143}, ent = {115,141}, door = {114,141}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi4
	{pos1 = {110,147}, pos2 = {113,151}, ent = {115,148}, door = {114,148}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi5
	{pos1 = {110,155}, pos2 = {113,160}, ent = {115,158}, door = {114,158}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi6

	{pos1 = {120,165}, pos2 = {126,169}, ent = {123,163}, door = {123,164}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi7
	{pos1 = {128,165}, pos2 = {132,169}, ent = {130,163}, door = {130,164}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi8
	{pos1 = {128,173}, pos2 = {132,179}, ent = {134,176}, door = {133,176}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi9

	{pos1 = {139,165}, pos2 = {142,169}, ent = {137,167}, door = {138,167}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi10
	{pos1 = {139,157}, pos2 = {142,161}, ent = {137,160}, door = {138,160}, price = 500, owner = nil, endtime = nil, allow = {}, doors = {[1] = {}}}, -- hi11

[Edit]

I fixed it doors not in rectangle of house

old Re: CS2DTibia - RPG

PyKw
User Off Offline

Quote
Hi how i can add a new monster and make he respawn at 40 secounds.. Sorry for my bad english . Plase give me the code
Thanks PyK

old Re: CS2DTibia - RPG

Refresh
User Off Offline

Quote
PyKw has written
Hi how i can add a new monster and make he respawn at 40 secounds.. Sorry for my bad english . Plase give me the code
Thanks PyK

Did you even read the documentation?
To the start Previous 1 2 3 4 5 Next To the start
Log in to reply Mods overviewCS2D overviewForums overview