Forum

> > CS2D > Mods > Cs2d Tibia :|
Forums overviewCS2D overview Mods overviewLog in to reply

English Cs2d Tibia :|

8 replies
To the start Previous 1 Next To the start

moved Cs2d Tibia :|

Cereal Guy
User Off Offline

Quote
∗ Please how to add new monsters on new tiles?
∗ On weiwen's map there are no enough monsters to kill so that is the reason i wan't to know how to add some monsters


Tnx for reading hope i will get some help soon

old Re: Cs2d Tibia :|

Cereal Guy
User Off Offline

Quote
@user Yates I tried to make some new monsters but i don't know how to do it, the reason is that i don't know wath are the meaning in this for example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
CONFIG.MONSTERS = 
	{
		name = 'Bulbasaur', health = 100, image = 'gfx/weiwen/pokemon/1.png', scalex = 2, scaley = 2, r = 136, g = 224, b = 32, 
		atk = 1.9, def = 2.1, spd = 6, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, runat = 10, 
		spawnchance = {['rpg_mapb'] = {100}}, 
		spawn = {
			['rpg_mapb'] = {SPAWNS.BOTTOMHALF}
		}, 
		exp = 15, money = 100, loot = {{chance = 5000, id = 102}, {chance = 250, id = 221}}, 
		spc = {1500, function(self) 
			radiusmsg("Bulbasaur casts heal!", self.x, self.y)
			parse("effect \"colorsmoke\" " .. self.x .. " " .. self.y .. " 5 5 255 255 255")
		end}, 
	}

∗ So wath do i have to know from all this stuff?
∗ Give me a tutorial on wath they mean
edited 8×, last 07.05.12 12:53:29 pm

old Re: Cs2d Tibia :|

Yates
Reviewer Off Offline

Quote
Name: Name of monster.
Health: Health of monster.
Image: The path the image is loaded.
Scalex/y: This scales the image, if x = 2 then the image is twice the size in width. And y = height.
r, g, b: Red, green, blue. If you want the monster's image to be red then then red = 255 and the rest is 0.
Atk: The damage the monster does.
Def: The amount of defence the monster has.
spd: The speed which in the monster moves.
atkspd: The speed which a monster attacks, the higher the amount the faster it attacks.
No clue what X and Y is, probably a possible place the monster spawns if it has no spawn set in another Lua file (Config if I can remember correctly)
I also don't know what ang is for, but imgang is the angle the image has, 90 would be 90 degrees to the right and 180 would turn the image upside down.
No clue what runat is for.
spawnchance: rpg_mapb is the map on which it spawns and 100 is the chance, 1 in 100 I think.
spawn: The place it spawns, you can set places in the config.lua file.
exp: obviously the amount of exp you gain when you kill the monster.
money: The money it drops.
loot: The loot you can get when you kill it, chance 1 in 5000 set here and id is the item it spawns. You can create items in the items.lua file. This monster also has another chance to spawn an item, this time it's 1 in 250 chance and id the same as I said before.

The spc is optional. But I have never created monsters so I don't know if you should leave it out or just put
1
spc = {}
In it's place.

> If there is something wrong with the details I have given please correct me.

old Re: Cs2d Tibia :|

Cereal Guy
User Off Offline

Quote
Tnx @user Yates: I am done with the monsters
Now i need to set some npc's do you have any ideas on how to set them on map?

old Re: Cs2d Tibia :|

Yates
Reviewer Off Offline

Quote
They should have x and y. You will need to setpos yourself in-game to wherever you want and copy that pos and paste it on the NPC you want to be there.

old Re: Cs2d Tibia :|

Cereal Guy
User Off Offline

Quote
@user Yates: Alright i will try....but i got a question do you know how to add pvp zones? i tried to make i made something like this
1
PVPZONE = {{xxx,xxx},{xxx,xxx}}
"the xxx are filled with numbers" but when i started the game the lua crashed

old Re: Cs2d Tibia :|

Yates
Reviewer Off Offline

Quote
There should be a table called exactly that in the config.lua file. See how he added the zones and copy it, after that just remove the ones he added so only your chosen zones are PVP.
To the start Previous 1 Next To the start
Log in to reply Mods overviewCS2D overviewForums overview