Techno_cool_00 La tecnologie wonz!!! | Aliases
Code :
- /Status {
- If (%Status- [ $+ [ $1 ] ] == on) { /Return Up }
- If (%Status- [ $+ [ $1 ] ] == off) { /Return Down }
- }
- /Servname {
- If ($1 == 1) { /Return PatchServer }
- If ($1 == 2) { /Return LoginServer }
- If ($1 == 3) { /Return CharSelectServer }
- If ($1 >= 4) { /Return GameServer $+ $1 }
- }
- /Servip {
- If ($1 == 1) { /Return 211.239.123.172 }
- If ($1 == 2) { /Return 211.239.161.74 }
- If ($1 == 3) { /Return 211.239.161.60 }
- If ($1 == 4) { /Return 211.239.161.62 }
- If ($1 == 5) { /Return 211.239.161.63 }
- If ($1 == 6) { /Return 211.239.161.66 }
- If ($1 == 7) { /Return 211.239.161.68 }
- If ($1 == 8) { /Return 211.239.161.69 }
- If ($1 == 9) { /Return 211.239.161.70 }
- If ($1 == 10) { /Return 211.239.161.71 }
- }
- /Servport {
- If ($1 == 1) { /Return 5438 }
- If ($1 == 2) { /Return 6900 }
- If ($1 == 3) { /Return 6001 }
- If ($1 >= 4) { /Return 5001 }
- }
- /Check {
- :Loop
- /Inc %Serv 1
- If (%Serv < 10) {
- /Sockopen Ragnarok- $+ %Serv $Servip(%Serv) $Servport(%Serv)
- /Goto Loop
- /sockclose Ragnarok*
- }
- Else { /Set %Serv 1 }
- }
|
Remote
Code :
- on 1:TEXT:!Test:#: {
- /check
- /Notice $Nick [Server Test]
- :Loop
- /Inc %Loop 1
- If (%Loop < 10) {
- /Notice $Nick - $Servname(%Loop) - $Status(%Loop)
- /Goto Loop
- }
- Else {
- /Notice $Nick [End Test]
- /Set %Loop 1
- }
- }
- on 1:SOCKOPEN:Ragnarok-*: {
- If ($Sockerr > 0) {
- /Set %Status [ $+ [ $Mid($Sockname,$Pos($Sockname,$Chr(45)),$Len($Sockname))) ] ] off
- /Halt
- }
- /Set %Status [ $+ [ $Mid($Sockname,$Pos($Sockname,$Chr(45)),$Len($Sockname))) ] ] on
- }
|
Ca ne Fonctionne pas normalement ca devrais vérifier si le server est online ou offline...qqun pourais l'arranger? [jfdsdjhfuetppo]--Message édité par Techno_cool_00--[/jfdsdjhfuetppo] |