Forum

> > CS2D > Scripts > Tibia script thread (Post tibia requests here)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Tibia script thread (Post tibia requests here)

347 Antworten
Seite
Zum Anfang Vorherige 1 27 8 917 18 Nächste Zum Anfang

alt i need help

skillerLTU
User Off Offline

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

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

Bobakrome
User Off Offline

Zitieren
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
1× editiert, zuletzt 09.02.12 16:56:24

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

Bobakrome
User Off Offline

Zitieren
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..
1× editiert, zuletzt 09.02.12 17:00:44

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

skillerLTU
User Off Offline

Zitieren
user Bobakrome hat geschrieben
user Bobakrome hat geschrieben
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

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

Bobakrome
User Off Offline

Zitieren
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!
1× editiert, zuletzt 09.02.12 17:11:57

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

skillerLTU
User Off Offline

Zitieren
user Bobakrome hat geschrieben
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

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

skillerLTU
User Off Offline

Zitieren
user Bobakrome hat geschrieben
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...
2× editiert, zuletzt 09.02.12 17:54:27
Zum Anfang Vorherige 1 27 8 917 18 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht