-
Ritter
MIRC scripting - Brauche Hilfe!
Ein guter Freund von mir hat mir dieses Script geschrieben. Es funktioniert nicht richtig, viele Leute sagen, es fehlt eine Zeile, damit das Script erkennt, dass es von der Textdatei immer von Zeile zu Zeile wechseln soll:
;################################################################
;# Script coded by BlackEagle
;################################################################
on *:text:taki:#elders_palace:{
;# -------------------------------- Prüft of script ein oder aus ist *
if %noname == 0 { halt }
;# -------------------------------- Reaktion wenn er am ende der txt file ist *
;if %line \\ 1 { set %line 1 }
;MassaRoddel
if (%line > $lines(elder.txt)) set %line 1
;# -------------------------------- Speichert die alte Line ab *
set %line2 $read(elder.txt, %line )
;# -------------------------------- Display der message *
notice $nick %line2
}
;# -------------------------------- Menu Tag
menu menubar {
Taki-Script Settings :{ dialogscript }
}
;# -------------------------------- Dia Alias
alias dialogscript { dialog -m dialogscript dialogscript }
;# -------------------------------- Dialog
dialog dialogscript {
title "Script Options by BlackEagle"
icon mirc.exe,1
size -1 -1 300 280
button "OK", 1, 115 240 60 30, ok
box "Rotation Time (sec)", 2, 70 180 160 40
edit "", 3, 80 195 140 20, autohs %script-time
button "Start", 4, 100 90 50 30
button "Stop", 5, 150 90 50 30
button "Edit text", 6, 125 125 50 30
text " Here you can start or stop the script. By clicking the -edit text- button you can edit the displayed textes.", 7, 10 10 280 60, center
}
;# -------------------------------- Events
on *:dialog:dialogscript:*:*: {
if ($devent == sclick) {
if ($did == 4) { set %noname 1 | set %line 1 | timerfw -stop | timerfw 0 %script-time set %line $calc( %line + 1 ) | did -h $dname 4 | did -v $dname 5 }
if ($did == 5) { set %noname 0 | unset %line | did -h $dname 5 | did -v $dname 4 }
if ($did == 6) { write elder.txt | run elder.txt }
}
if ($devent == init) { did -ra $dname 3 %script-time }
if ($devent == init) && ( %noname == 1) { did -h $dname 4 | did -v $dname 5 }
if ($devent == init) && ( %noname == 0) { did -v $dname 4 | did -h $dname 5 }
}
on *:connect:{
if %noname == 1 {
timerfw 1 %script-time set %line $calc( %line + 1 )
}
Ich hoffe, ihr könnr mit helfen. Danke im Vorraus
-
Deus
Die Leute im PC-Forum können da sicher noch viel besser helfen als wir im QFRAT 
*schieb*
--
Forever is what I want with you / For the search is at an end /
Our hearts have found each other / As lovers, as soul-mates, as friends.
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- Anhänge hochladen: Nein
- Beiträge bearbeiten: Nein
-
Foren-Regeln