PtokaX forum

PtokaX => Support => Topic started by: Smulf on 11 January, 2004, 19:13:25

Title: Profiles.DAT
Post by: Smulf on 11 January, 2004, 19:13:25
Is it posible to add a profile like "Owner" in the profile.dat without making an error?

I have tried: 0|Owner|11111111111111111111000000000000
1|Master|11111111111111111111000000000000
2|Operator|11111100011001111111000000000000
3|VIP|10000000000001111000000000000000
4|Reg|10000000000000000000000000000000

But it keeps making an error... why...?
Title:
Post by: AlwaysConnected on 11 January, 2004, 19:19:33
i hae it like this

0|Master|11111111111111111111000000000000
1|Operator|11111100011001111111000000000000
2|VIP|10000000000001111000000000000000
3|Reg|10000000000000000000000000000000
4|Hubowner|11111111111111111111000000000000
Title: safe
Post by: raz on 11 January, 2004, 19:22:29
safe, yeah there is a way 2 add a profile u can just click on advanced options and den profile manager. owner is master anyway. why don't u add a admin profile dat might help u out mine is like dis at the moment. :D

Title:
Post by: raz on 11 January, 2004, 19:23:17
looks like ac beat me.lol :D
Title:
Post by: Smulf on 11 January, 2004, 19:34:03
Yeh, but if you are adding a profile in the "profile manager", fx. Owner... A normal OP could Kick the owner... and not the other way around...
Title:
Post by: raz on 11 January, 2004, 19:44:31
lol. if that happens what u need is den is a script.lol. there is a script somewhere around dat stops a op from kicking another op. :D
Title:
Post by: Smulf on 11 January, 2004, 19:53:32
Is it posible somehow to remove those profiles that are already there...?
Title:
Post by: AlwaysConnected on 11 January, 2004, 20:09:55
QuoteOriginally posted by Smulf
Is it posible somehow to remove those profiles that are already there...?

yup
open the profiles.dat
and remove it all
;)

------offf topic----
and yes i beat you all ;) lo
Title: Yeh
Post by: Smulf on 11 January, 2004, 20:13:14
Okay that was a easy sulution, but what depence on if the can't be removed in the "Profile manager"...?
Title:
Post by: AlwaysConnected on 11 January, 2004, 20:15:52
QuoteOriginally posted by Smulf
Okay that was a easy sulution, but what depence on if the can't be removed in the "Profile manager"...?
nope its inbuild :(
so can't be done perhaps in ptokax 3.3.0  ?(
Title:
Post by: raz on 11 January, 2004, 20:27:15
maybe ptakzak can do it so we can also change names and delete profiles on da software without needing 2 open up profile.dat. :D
Title:
Post by: plop on 12 January, 2004, 00:50:54
you can solve this by making the script renumber the levels.
levels = {
   ["0"]=3,
   ["1"]=2,
   ["2"]=1,
   ["3"]=0,
   ["4"]=4 }

if levels[user.iProfile] > levels[victim.iProfile] then
 --do your kicking stuff here
else
   user:SendData(Bot, "bad bad boy don't try 2 kick users of a higher level then you")
end
plop
Title: Thanks Plop
Post by: Smulf on 12 January, 2004, 17:24:04
Thanks for it, but I can't get it working...If you have time it would be nice, but if u havn't it's ok.
Title:
Post by: pHaTTy on 12 January, 2004, 17:30:54
well you doing it wrong anyhow just move them down by a rank, Reg is not important anyhow, so technically you cud just remove it ;)

1|Owner|11111111111111111111000000000000
2|Master|11111111111111111111000000000000
3|Operator|11111100011001111111000000000000
4|VIP|10000000000001111000000000000000
5|Reg|10000000000000000000000000000000

l8rr
Title:
Post by: Smulf on 12 January, 2004, 17:44:33
Thanks for it UK...
Title:
Post by: pHaTTy on 12 January, 2004, 17:47:22
QuoteOriginally posted by Smulf
Thanks for it UK...

np problem ;)
Title:
Post by: Smulf on 12 January, 2004, 18:18:43
Plop it's okay I'v found it, thanks for your time...
Title:
Post by: plop on 12 January, 2004, 21:17:41
QuoteOriginally posted by Smulf
Plop it's okay I'v found it, thanks for your time...
np.

and phatty all i had 2 do for the switch from icecube 2 tesdrive was alter 1 function, as i don't have more then the default levels.
i can't see the need for all those extra levels.

plop