cs_AwayZ
Messages postés17Date d'inscriptionvendredi 16 juillet 2004StatutMembreDernière intervention14 mai 2005
-
9 oct. 2004 à 02:45
yvesio
Messages postés4Date d'inscriptionmercredi 29 janvier 2003StatutMembreDernière intervention13 janvier 2005
-
13 janv. 2005 à 23:21
Salut je voudrais savoir comment on pourrait savoir les departements francais en tapant /dep1 , /dep2 ... sa me retourne le département numéro 1 , 2...
en ne mettant pas tout les departement dans nos remotes
cs_SornDrixer
Messages postés2084Date d'inscriptionjeudi 12 décembre 2002StatutMembreDernière intervention30 janvier 20118 9 oct. 2004 à 08:56
Bonjour,
Il va falloir te constituer une base de donnée dans un .ini
Tu peux utiliser ce code :
ALIAS dep {
if $1 { echo -a $readini(departements.ini,dep,$1) }
}
Il te suffit donc de taper /dep numero pour avoir le nom du département, mais pour que cela marche, comme je l'ai dis avant, il faut faire ta base de donnée.
Je te propose ce code pour ajouter des départements facilement :
ALIAS add-dep {
if $1 && $2- { writeini departements.ini dep $1 $2- }
}
Utilisation : /add-dep numero Nom du Departement
-<gras>[ Sorn_Drixer ]-</gras>
-
:question) Vous pouvez me retrouver sur irc.rs2i.net:6667
yvesio
Messages postés4Date d'inscriptionmercredi 29 janvier 2003StatutMembreDernière intervention13 janvier 2005 13 janv. 2005 à 23:21
eh ben c tout con dans ton remote tu mets ceci, ensuite tu tapes 01,02,03,04 etc...
on *:input:#:{
if ($mid($1,1,1) == /) { goto end }
if ($mid($1-,1,1) == !) {
if ($1 == !01) { /msg $active ain | halt }
if ($1 == !02) { /msg $active aisne | halt }
if ($1 == !03) { /msg $active allier | halt }
if ($1 == !04) { /msg $active alpes de haute provence | halt }
if ($1 == !05) { /msg $active hautes alpes | halt }
if ($1 == !06) { /msg $active alpes maritimes | halt }
if ($1 == !07) { /msg $active ardèche | halt }
if ($1 == !08) { /msg $active ardennes | halt }
if ($1 == !09) { /msg $active ariege | halt }
if ($1 == !10) { /msg $active aube | halt }
if ($1 == !11) { /msg $active aude | halt }
if ($1 == !12) { /msg $active aveyron | halt }
if ($1 == !13) { /msg $active bouches du rhône | halt }
if ($1 == !14) { /msg $active calvados | halt }
if ($1 == !15) { /msg $active cantal | halt }
if ($1 == !16) { /msg $active charente | halt }
if ($1 == !17) { /msg $active charente-maritime | halt }
if ($1 == !18) { /msg $active cher | halt }
if ($1 == !19) { /msg $active corrèze | halt }
if ($1 == !2a) { /msg $active corse du sud | halt }
if ($1 == !2b) { /msg $active haute-corse | halt }
if ($1 == !21) { /msg $active côte d'or | halt }
if ($1 == !22) { /msg $active côtes d'armor | halt }
if ($1 == !23) { /msg $active creuse | halt }
if ($1 == !24) { /msg $active dordogne | halt }
if ($1 == !25) { /msg $active doubs | halt }
if ($1 == !26) { /msg $active drôme | halt }
if ($1 == !27) { /msg $active eure | halt }
if ($1 == !28) { /msg $active eure et loir | halt }
if ($1 == !29) { /msg $active finistere | halt }
if ($1 == !30) { /msg $active gard | halt }
if ($1 == !31) { /msg $active haute garonne | halt }
if ($1 == !32) { /msg $active gers | halt }
if ($1 == !33) { /msg $active gironde | halt }
if ($1 == !34) { /msg $active hérault | halt }
if ($1 == !35) { /msg $active ille et vilaine | halt }
if ($1 == !36) { /msg $active indre | halt }
if ($1 == !37) { /msg $active indre et loire | halt }
if ($1 == !38) { /msg $active isère | halt }
if ($1 == !39) { /msg $active jura | halt }
if ($1 == !40) { /msg $active landes | halt }
if ($1 == !41) { /msg $active loir et cher | halt }
if ($1 == !42) { /msg $active loire | halt }
if ($1 == !43) { /msg $active haute loire | halt }
if ($1 == !44) { /msg $active loire-atlantique | halt }
if ($1 == !45) { /msg $active loiret | halt }
if ($1 == !46) { /msg $active lot | halt }
if ($1 == !47) { /msg $active lot-et-gazone | halt }
if ($1 == !48) { /msg $active lozère | halt }
if ($1 == !49) { /msg $active maine-et-loire | halt }
if ($1 == !50) { /msg $active manche | halt }
if ($1 == !51) { /msg $active marne | halt }
if ($1 == !52) { /msg $active haute marne | halt }
if ($1 == !53) { /msg $active mayenne | halt }
if ($1 == !54) { /msg $active meurthe et moselle | halt }
if ($1 == !55) { /msg $active meuse | halt }
if ($1 == !56) { /msg $active morbihan | halt }
if ($1 == !57) { /msg $active moselle | halt }
if ($1 == !58) { /msg $active nièvre | halt }
if ($1 == !59) { /msg $active nord | halt }
if ($1 == !60) { /msg $active oise | halt }
if ($1 == !61) { /msg $active orne | halt }
if ($1 == !62) { /msg $active pas de calais | halt }
if ($1 == !63) { /msg $active puy de dome | halt }
if ($1 == !64) { /msg $active pyrénées atlantiques | halt }
if ($1 == !65) { /msg $active hautes pyrénées | halt }
if ($1 == !66) { /msg $active pyrénées orientales | halt }
if ($1 == !67) { /msg $active bas-rhin | halt }
if ($1 == !68) { /msg $active haut rhin | halt }
if ($1 == !69) { /msg $active rhône | halt }
if ($1 == !70) { /msg $active haute saône | halt }
if ($1 == !71) { /msg $active saône et loire | halt }
if ($1 == !72) { /msg $active sarthe | halt }
if ($1 == !73) { /msg $active savoie | halt }
if ($1 == !74) { /msg $active haute savoie | halt }
if ($1 == !75) { /msg $active paris | halt }
if ($1 == !76) { /msg $active seine maritime | halt }
if ($1 == !77) { /msg $active sein et marne | halt }
if ($1 == !78) { /msg $active yvelines | halt }
if ($1 == !79) { /msg $active deux-sèvres | halt }
if ($1 == !80) { /msg $active somme | halt }
if ($1 == !81) { /msg $active tarn | halt }
if ($1 == !82) { /msg $active tarn-et-garonne | halt }
if ($1 == !83) { /msg $active var | halt }
if ($1 == !84) { /msg $active vaucluse | halt }
if ($1 == !85) { /msg $active vendée | halt }
if ($1 == !86) { /msg $active vienne | halt }
if ($1 == !87) { /msg $active haute vienne | halt }
if ($1 == !88) { /msg $active vosges | halt }
if ($1 == !89) { /msg $active yonne | halt }
if ($1 == !90) { /msg $active territoire de belfort | halt }
if ($1 == !91) { /msg $active essonne | halt }
if ($1 == !92) { /msg $active hauts de seine | halt }
if ($1 == !93) { /msg $active seine st denis | halt }
if ($1 == !94) { /msg $active val de marne | halt }