mIRC Homepage
Posted By: Gwsms1 Triggers - 05/07/06 10:05 AM
I am trying to create some ! triggers where if i type !(command here) that itll post send a notice to the person
the kinds of commands i am wondering about is

!farms
will list all the objects in a list of farms!
!farms (Number) (number)
itll show only the farms listed equal or lower than the first number and the second number will have only the same or higher than the second number and also if only one is specified it will list the results of just that specified number.
!addfarm (number) (number)
this will add a farm to the list of other farms only sop and fop will be able to use it.
!request (msg)
this will be sent to the fop and sop in a notice to show a request from a regular user/op/hop etc

can u sum how make a system like this? i have no clue how to make a script like this!
would really help to have sumthin like this smirk


Edit: Hope im not confusing lmao although i know i prolly am wink
Posted By: Karas Re: Triggers - 05/07/06 10:57 AM
What's the farm list style ?
is it a INI file ?
a variable ?
how ?

shocked
Posted By: Gwsms1 Re: Triggers - 05/07/06 11:10 AM
ummm... id prolly make it a .txt file and have it so everytime i did the !addfarm command it would add the info to the .txt file

u think that would work : smirk ?


edit-
also have like a del or update command to update the list?
Posted By: Gwsms1 Re: Triggers - 06/07/06 08:30 AM
sry for the double post but yea.... basically i got the commands working except here are sum specifics i want....
!farms will list all the farms in the farms.ini/.txt/ or w/e kind of file it should be any suggestions on the file type?
but can i get it so that !addfarms (param one which will be a name) (number1) (number2)
same for !delfarms
and make it so that only sop and fop's can use !addfarms and !delfarms
also make it so if a person wishes to request a farm they can type !request (number1) (number2) and it will notice all fop's and sop's!
also make farms so that if u type !farms (number1) (number2) it will show only farms > (lessthan) number1 and only farms with <(greater than) number 2

also if the number of farms = 0 then halt not sure how to do that...

if anyone knows how to do this plz help!
© mIRC Discussion Forums