TestMax.dk Paster
  • Forside
  • Print
  • Bookmark
  • Kontakt
  • SiteMap


infobox infobox
 

Split script

23-10-2009 21:16:41
 
 
Muligheder (Anmeld)
Skrevet af Strauss
Kliks 747
Kategori mIRC scripting request
Hmm, det jeg leder efter, er et noget advanceret script, vil jeg selv mene..

Undskyld at der ikke er så meget info, håber folk kan forstå hvad jeg mener!


<Strauss> !add Jazzmin 1 2 3 4 5 6 7 8
<botnick> Current target: Jazzmin
<Strauss> !add Sigil 9 10 11 12 13 14
<botnick> Current target: Jazzmin Sigil



<Strauss> !take Jazzmin 1
<botnick> Splits for Jazzmin: 1 (Strauss) 2 3 4 5 6 7 8
<Strauss> !take Jazzmin 3
<botnick> Splits for Jazzmin: 1 (Strauss) 2 3 (Strauss) 4 5 6 7 8
<ReLaX> !take Jazzmin 2
<botnick> Splits for Jazzmin: 1 (Strauss) 2 (ReLaX) 3 (Strauss) 4 5 6 7 8



<Strauss> !splits
<botnick> Splits for Jazzmin: 1 (Strauss) 2 (ReLaX) 3 (Strauss) 4 5 6 7 8
<botnick> Splits for Sigil: 9 10 11 12 13 14



<Strauss> !free
<botnick> Free for Jazzmin: 4 5 6 7 8
<botnick> Free for Sigil: 9 10 11 12 13 14



Quit: <Strauss> has quitted
<botnick> Attention: There are free splits since Strauss has left.
 
infobox infobox


infobox infobox
 
#1Thagaard(Anmeld) 19-11-2009 20:43:10
 
 
Er startet på det..

lige pt er det flg:


on *:text:!add & *:#: {
if ($auth($nick)) && ($auth($2)) {
if ($13) { msg $chan Max 10 numre | halt }
if ($remove($3-,$chr(32)) !isnum) { msg $chan Kun tal! | halt }

writeini split.ini Split $auth($2) $replace($sorttok($3-,32,n),$chr(32),$chr(32) $+ !NON! $+ $chr(32)) $+ !NON!

msg $chan Current targets: $Split:Target


}
}

on *:text:!take & &:#: {
if ($auth($nick)) && ($auth($2)) {
if ($3 !isnum) { msg $chan Kun tal! | halt }
if (!$istok($readini(Split.ini,Split,$auth($2)),$3,32)) { msg $chan $3 er taget eller ikke brugt! | halt }
var %Temp.data = $reptok($remove($readini(Split.ini,Split,$auth($2)),!NON!),$3,$3 $+ -( $+ $auth($nick) $+ ),1,32)
msg $chan %Temp.data $readini(Split.ini,Split,$auth($2))
writeini split.ini Split $auth($2) $replace(%Temp.data,$chr(32),$chr(32) $+ !NON! $+ $chr(32))
msg $chan Current targets: $Split:Target
}
}

on *:text:!splits:#: {
if ($auth($nick)) {
set %a 1
while (%a <= $ini(Split.ini,split,0)) {

msg $chan Splits for $+ $authnick($ini(Split.ini,Split,%a)) $+  $remove($readini(Split.ini,Split,$ini(Split.ini,Split,%a)),!NON!)

inc %a
}
else { msg $chan Ingen splits igang | halt }
}
}

on *:text:!free:#: {
if ($auth($nick)) {
set %a 1
while (%a <= $ini(Split.ini,split,0)) {
set %b 1
while (%b <= $findtok($readini(Split.ini,Split,$ini(Split.ini,Split,%a)), !NON!, 0, 32)) {
var %Test = $readini(Split.ini,Split,$ini(Split.ini,Split,%a))
var %Temp.data = %Temp.data $gettok(%test,$calc( $findtok(%test, !NON!, %b, 32) +1) ,32)
inc %b
}
msg $chan Free for $+ $authnick($ini(Split.ini,Split,%a)) $+  $remove(%Temp.data,!NON!)
unset %temp.data
inc %a
}
else { msg $chan Ingen splits igang | halt }
}
}


alias Split:Target {
set %a 1
while (%a <= $ini(Split.ini,split,0)) {

var %Temp.Data = %Temp.data $authnick($ini(Split.ini,Split,%a)) ( $+ $remove($readini(Split.ini,Split,$ini(Split.ini,Split,%a)),!NON!) $+ )

inc %a
}
if (%Temp.Data) { return $ifmatch }
else { return 0 }
}

 
infobox infobox

infobox infobox
 
#2Strauss(Anmeld) 21-11-2009 11:06:21
 
 
Fedt, der er måske noget jeg kan arbejde videre på...

Nogle gange er det bedst lige at få en ide til hvordan det hele skal bygges op
 
infobox infobox

infobox infobox
 
#3Thagaard(Anmeld) 21-11-2009 22:01:28
 
 
Ja nemlig, altså det meste af det du søger er i det script, jeg har ikek kommenteret hver linie.. men kontakt mig over mIRC så kan du evt forklare hvad det skal bruges til.. er svært at ligge så meget tid i det når man ikke kan se det store bilede..

Quakenet: Patty^ eller #ProZoneGaming
 
infobox infobox

Påmindelse ved nyt svar

Ved at tilmelde dig automatisk påmindelse, modtager du en email så snart denne tråd bliver besvaret, dog sender vi kun en mail til dig, også selvom der er kommet flere svar, simpelthen for at spare dig for spam i din indbakke.


infobox infobox
  Svar på tråden  
   
 
 
infobox infobox

infobox infobox
  Læs dette før du sender dit indlæg!  
 
Ved tryk på send knappen accepterer du vores regelsæt som kan læses her
Praktiske informationer
Type Eksempel Resultat
Fed [b]din tekst[/b] din tekst
Kursiv [k]din tekst[/k] din tekst
Understreg [u]din tekst[/u] din tekst
Kode felt [code]din tekst[/code]
din tekst
infobox infobox