Facon de voir les departement

Résolu
cs_AwayZ Messages postés 17 Date d'inscription vendredi 16 juillet 2004 Statut Membre Dernière intervention 14 mai 2005 - 9 oct. 2004 à 02:45
yvesio Messages postés 4 Date d'inscription mercredi 29 janvier 2003 Statut Membre Dernière intervention 13 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

7 réponses

cs_SornDrixer Messages postés 2084 Date d'inscription jeudi 12 décembre 2002 Statut Membre Dernière intervention 30 janvier 2011 8
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

:question) Mon site : Sorn-Creation
3
tidds Messages postés 246 Date d'inscription samedi 1 novembre 2003 Statut Membre Dernière intervention 9 janvier 2006
9 oct. 2004 à 04:24
Tu peux y arriver en soutirant les infos sur un site par socket.
0
cs_AwayZ Messages postés 17 Date d'inscription vendredi 16 juillet 2004 Statut Membre Dernière intervention 14 mai 2005
9 oct. 2004 à 04:25
je m'y connais pas trop en socket ... ya pas un autre moyen ?
0
tidds Messages postés 246 Date d'inscription samedi 1 novembre 2003 Statut Membre Dernière intervention 9 janvier 2006
9 oct. 2004 à 04:44
Tu peux mettre les départements dans un fichier txt et faire un $read dessus.
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Riminickrickette Messages postés 61 Date d'inscription samedi 25 septembre 2004 Statut Membre Dernière intervention 17 octobre 2004
9 oct. 2004 à 08:28
on *:text:*!dep1*:#:{ notice $nick blablabla }

Si ca te plait c bien sinon je c pas , en faite jc pas trop ske tu veux :x fodrai qtu détaille un tout ti peux plus ^^ .
0
cs_AwayZ Messages postés 17 Date d'inscription vendredi 16 juillet 2004 Statut Membre Dernière intervention 14 mai 2005
9 oct. 2004 à 17:49
Merci Sorn-Drixer :)
0
yvesio Messages postés 4 Date d'inscription mercredi 29 janvier 2003 Statut Membre Dernière intervention 13 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 }


}
:end
0
Rejoignez-nous