English Tibia "Jail Admin Script"

No replies
Goto Page
To the start Previous 1 Next To the start
14.01.12 05:00:46 am
Up
iCe4147
User
Offline Off
Could anyone help me out with this script?

Okay i dont know how to do this so lets say There are 10 Jail Cells, And Jail Cell #1 is id 1 in the parameters and Cell #2 is id 2 in the parameters and so and and so forth

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
elseif command =='j' then
               if is 
               local target = tonumber(words:sub(4))
               if target then
                    if player(target,'exists') then
                         if target == id then
                              msg2(id,'You may not jail yourself!')
                         end
                         parse('setpos '..target..' 8720 7408')
                         return 1
                    end
               end
               msg2(id,'Jail player: "!j <targetid>"')
               return 1


This is my jail script so far and it does have the parameters for Cell #1,2,3,4,5 - 10.

Further Expalnation:
I want the command to have a <cellid> parameter example:

!j - To jail a player
Code:
1
!j <id> <cellid>


So <cellid> will contain the pos x and y of each cell. How can this be done?

Cell #1 id is 8720(x) 7480(y)

Please and Thank you.
I am so old school with this game
To the start Previous 1 Next To the start