Forum

> > CS2D > Scripts > Tibia script thread (Post tibia requests here)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tibia script thread (Post tibia requests here)

347 replies
Page
To the start Previous 1 27 8 917 18 Next To the start

old i need help

skillerLTU
User Off Offline

Quote
hello. how to make jail in tibia? like when ppl got arrested they will spawn at jail and cant do anything?

old Re: Tibia script thread (Post tibia requests here)

Bobakrome
User Off Offline

Quote
Simple just make the jail in "Deathmatch/PVP Mode" And they will never get out of there.

a.k.a Easy way.

But if you want something um harder then i will try to make it ASAP. I gtg
edited 1×, last 09.02.12 04:56:24 pm

old Re: Tibia script thread (Post tibia requests here)

Bobakrome
User Off Offline

Quote
Explicated*:
Go to : sys/lua/cs2dtibia/config.lua
Then go find
1
2
3
4
PVPZONE = {
	['mapname'] = {
	}
}
Simple add your jail cooirdonates
1
2
3
4
5
[code]PVPZONE = {
	['mapname'] = {
		{{a,b},{c,d}},
	}
}

Done?

BTW: This is easiest way. Harder way its with
1
PLAYERS[id].Spawn = {a, b}

But you don`t need to do like that, you can just simple do the easier way..
edited 1×, last 09.02.12 05:00:44 pm

old Re: Tibia script thread (Post tibia requests here)

skillerLTU
User Off Offline

Quote
user Bobakrome has written
user Bobakrome has written
BTW: This is easiest way. Harder way its with
1
PLAYERS[id].Spawn = {a, b}

But you don`t need to do like that, you can just simple do the easier way..


As i say i will try make a command for "Admin Commands"
Wait for my reply



ok when you done pls pm me and thanks for helping

old Re: Tibia script thread (Post tibia requests here)

Bobakrome
User Off Offline

Quote
Spoiler >


Untested. If doesn`t work tell me there.
-------------

How to send to jail?

type: !bust <player id> <pixel cooirdonates>

Watch out!

Cooirdonates are in pixels so if jail is x;y are 2;2 then they should be:

2*32+16 = 64+16 = 80

Don`t make mistakes there!

--Edit!

Add those in admin.lua at function "adminCommands"

--Edit 2!

If you want to copy script first click "Quote" Then copy it from that place!
edited 1×, last 09.02.12 05:11:57 pm

old Re: Tibia script thread (Post tibia requests here)

skillerLTU
User Off Offline

Quote
user Bobakrome has written
Spoiler >


Untested. If doesn`t work tell me there.
-------------

How to send to jail?

type: !bust <player id> <pixel cooirdonates>

Watch out!

Cooirdonates are in pixels so if jail is x;y are 2;2 then they should be:

2*32+16 = 64+16 = 80

Don`t make mistakes there!



ok testing thanks. and about coords i know that

old Re: Tibia script thread (Post tibia requests here)

skillerLTU
User Off Offline

Quote
user Bobakrome has written
Skiller Ltu: if you could show me wich is the line 53 then it will be more helpful for me:/



it was:
parse('setpos '..target..' '..jail")

i think fixed:
parse('setpos '..target..' '..jail')


EDIT1: nope not fixed


EDIT2:ok now fixed. but that command not work. if i do (/setpos id 7696 12496) i cant escape how to make command for this?




EDIT3: 1 more question: is there any sprites or something... to make player invisible? when aiming to that player it shows nothing...
edited 2×, last 09.02.12 05:54:27 pm
To the start Previous 1 27 8 917 18 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview