PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: zinden on 18 October, 2003, 17:52:14

Title: ask for slot = warn or kick?
Post by: zinden on 18 October, 2003, 17:52:14
hello all, can someone make a script that will warn a user or kick a user when he ask for a slot thru PM?

if warn then: 3 warnings = ban

Title:
Post by: BlazeXxX on 19 October, 2003, 04:16:00
Hmm How do u know that the user is asking for slots ?

You can ask in lot of ways:

e.g.
1) Can I have a slot please?
2) I need 1 slot please?
3) Can you open an extra slot please?

If you notice the  common msgs.. It can only count if u add the word "slot", which is a normal word..

I recommend you add it to ur hub rule :)
Title:
Post by: pHaTTy on 19 October, 2003, 04:41:42
here is my little script that i was originally writing for my Keiko/Gekko script, but here i ripped it, i will be adding warning to it soon ;)


--KeikoNoAskSlotBot by Phatty
--v1.00

Bot = "Keiko"
Time = "1" --mins to be banned for

function DataArrival(user,data)
s,e,data = strfind(data, "%b<>([%a ]+)")  
if( strfind(data, "have" and "slot") ) then
user:SendData(Bot,"Do not ask for slots...goodbye :o)")
user:TimeBan(Time)
SendToAll(Bot,user.sName.." was banned for "..Time.."mins for asking for a slot")
return 1
end
end



l8rr,,

-phatty
Title:
Post by: pHaTTy on 19 October, 2003, 05:08:20
nm ive started updating already come look HERE (http://board.univ-angers.fr/thread.php?threadid=143&boardid=12&sid=780c3e4bcf722326bc2a8864a3694f14&page=1#2)

enjoy;)

-phatty