mIRC Home    About    Download    Register    News    Help

Print Thread
#146659 06/04/06 08:06 PM
Joined: Apr 2006
Posts: 13
L
LandbO Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Apr 2006
Posts: 13
are there somebody who can make me a script that can display what country the user have when he enter the channel on #CSmixes

// IF the user come from Denmark the bot vil answer:
$nick Is from Denmark

it something whit the host mask but i cant figure it out

i would like thess countrys in the scriots

Denmark
Norway
Sweden
Deutchland
England

its a littel delicious code work

someone plz help smile

Last edited by LandbO; 06/04/06 08:09 PM.
#146660 06/04/06 08:35 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
I got the list from acidmax script. To make it say the country you can do this:

on !*:JOIN:#YourChannel:{
msg $chan $nick is from $country($address($nick,2))
}

Code:
alias country {
  if (*.af iswm $1 ) return Afghanistan
  else if (*.al iswm $1 ) return Albania
  else if (*.dz iswm $1 ) return Algeria
  else if (*.as iswm $1 ) return American Samoa
  else if (*.ad iswm $1 ) return Andorra
  else if (*.ao iswm $1 ) return Angola
  else if (*.ai iswm $1 ) return Anguilla
  else if (*.aq iswm $1 ) return Antarctia
  else if (*.ag iswm $1 ) return Antigua and Barbuda
  else if (*.ar iswm $1 ) return Argentina
  else if (*.am iswm $1 ) return Armenia
  else if (*.aw iswm $1 ) return Aruba
  else if (*.ac iswm $1 ) return Ascension Island
  else if (*.au iswm $1 ) return Australia
  else if (*.at iswm $1 ) return Austria
  else if (*.az iswm $1 ) return Azerbaijan
  else if (*.bs iswm $1 ) return Bahamas
  else if (*.bh iswm $1 ) return Bahrain
  else if (*.bd iswm $1 ) return Bangladesh
  else if (*.bb iswm $1 ) return Barbados
  else if (*.by iswm $1 ) return Belarus
  else if (*.be iswm $1 ) return Belgium
  else if (*.bz iswm $1 ) return Belize
  else if (*.bj iswm $1 ) return Benin
  else if (*.bm iswm $1 ) return Bermuda
  else if (*.bt iswm $1 ) return Bhutan
  else if (*.bo iswm $1 ) return Bolivia
  else if (*.ba iswm $1 ) return Bosnia and Herzegowina
  else if (*.bw iswm $1 ) return Botswana
  else if (*.bv iswm $1 ) return Bouvet Island
  else if (*.br iswm $1 ) return Brazil
  else if (*.io iswm $1 ) return British Indian Ocean Territory
  else if (*.bn iswm $1 ) return Brunei Darussalam
  else if (*.bg iswm $1 ) return Bulgaria
  else if (*.bf iswm $1 ) return Burkina Faso
  else if (*.bi iswm $1 ) return Burundi
  else if (*.kh iswm $1 ) return Cambodia
  else if (*.cm iswm $1 ) return Cameroon
  else if (*.ca iswm $1 ) return Canada
  else if (*.ky iswm $1 ) return Cayman Islands
  else if (*.cv iswm $1 ) return Cape Verde
  else if (*.cf iswm $1 ) return Central African Republic
  else if (*.td iswm $1 ) return Chad
  else if (*.cl iswm $1 ) return Chile
  else if (*.cn iswm $1 ) return China
  else if (*.cx iswm $1 ) return Christmas Island
  else if (*.cc iswm $1 ) return Cocos (Keeling) Islands
  else if (*.co iswm $1 ) return Columbia
  else if (*.com iswm $1 ) return Internic Commercial 
  else if (*.km iswm $1 ) return Comoros
  else if (*.cd iswm $1 ) return Democratic People's Republic of Congo
  else if (*.cg iswm $1 ) return Republic Of Congo
  else if (*.ck iswm $1 ) return Cook Islands
  else if (*.cr iswm $1 ) return Costa Rica
  else if (*.ci iswm $1 ) return Cote D'Ivoire
  else if (*.hr iswm $1 ) return Croatia/Hrvatska
  else if (*.cu iswm $1 ) return Cuba
  else if (*.cy iswm $1 ) return Cyprus
  else if (*.cz iswm $1 ) return Czech Republic
  else if (*.dk iswm $1 ) return Denmark
  else if (*.dj iswm $1 ) return Djibouti
  else if (*.dm iswm $1 ) return Dominica
  else if (*.do iswm $1 ) return Dominican Republic
  else if (*.tp iswm $1 ) return East Timor
  else if (*.ec iswm $1 ) return Ecuador
  else if (*.edu iswm $1 ) return Educational Institution
  else if (*.eg iswm $1 ) return Egypt
  else if (*.sv iswm $1 ) return El Salvador
  else if (*.gq iswm $1 ) return Equatorial Guinea
  else if (*.er iswm $1 ) return Eritrea
  else if (*.ee iswm $1 ) return Estonia
  else if (*.et iswm $1 ) return Ethiopia
  else if (*.fk iswm $1 ) return Falkland Islands (Malvinas)
  else if (*.fo iswm $1 ) return Faroe Islands
  else if (*.fj iswm $1 ) return Fiji
  else if (*.fi iswm $1 ) return Finland
  else if (*.fr iswm $1 ) return France
  else if (*.fx iswm $1 ) return Metropolitan France
  else if (*.gf iswm $1 ) return French Guiana
  else if (*.pf iswm $1 ) return French Polynesia
  else if (*.tf iswm $1 ) return French Southern Terrirories
  else if (*.ga iswm $1 ) return Gabon
  else if (*.gm iswm $1 ) return Gambania
  else if (*.ge iswm $1 ) return Georgia
  else if (*.de iswm $1 ) return Germany
  else if (*.gh iswm $1 ) return Ghana
  else if (*.gi iswm $1 ) return Gibraltar
  else if (*.gr iswm $1 ) return Greece
  else if (*.gl iswm $1 ) return Greenland
  else if (*.gd iswm $1 ) return Grenada
  else if (*.gp iswm $1 ) return Guadeloupe
  else if (*.gu iswm $1 ) return Guam
  else if (*.gt iswm $1 ) return Guatemala
  else if (*.gg iswm $1 ) return Guernsey
  else if (*.gn iswm $1 ) return Guinea
  else if (*.gw iswm $1 ) return Guinea-Bissau
  else if (*.gy iswm $1 ) return Guyana
  else if (*.ht iswm $1 ) return Haiti
  else if (*.hm iswm $1 ) return Heard and McDonald Islands
  else if (*.va iswm $1 ) return Holy See (Vatican City State)
  else if (*.hn iswm $1 ) return Honduras
  else if (*.hk iswm $1 ) return Hong Kong
  else if (*.hu iswm $1 ) return Hungary
  else if (*.is iswm $1 ) return Iceland
  else if (*.in iswm $1 ) return India
  else if (*.id iswm $1 ) return Indonesia
  else if (*.ir iswm $1 ) return Iran (Islamic Republic Of)
  else if (*.iq iswm $1 ) return Iraq
  else if (*.ie iswm $1 ) return Ireland
  else if (*.im iswm $1 ) return Isle of Man
  else if (*.il iswm $1 ) return Israel
  else if (*.it iswm $1 ) return Italy 
  else if (*.jm iswm $1 ) return Jamaica
  else if (*.jp iswm $1 ) return Japan
  else if (*.je iswm $1 ) return Jersey
  else if (*.jo iswm $1 ) return Jordan
  else if (*.kz iswm $1 ) return Kazakhstan
  else if (*.ke iswm $1 ) return Kenya
  else if (*.ki iswm $1 ) return Kiribati
  else if (*.kp iswm $1 ) return Democratic People's Republic of Korea
  else if (*.kr iswm $1 ) return Republic Of Korea
  else if (*.kw iswm $1 ) return Kuwait
  else if (*.kg iswm $1 ) return Kyrgzstan
  else if (*.la iswm $1 ) return People's Democratic Republic Of Lao
  else if (*.lv iswm $1 ) return Latvia
  else if (*.lb iswm $1 ) return Lebanon
  else if (*.ls iswm $1 ) return Lesotho
  else if (*.lr iswm $1 ) return Liberia
  else if (*.ly iswm $1 ) return Libyan Arab Jamahiriya
  else if (*.li iswm $1 ) return Liechtenstein
  else if (*.lt iswm $1 ) return Lithuania
  else if (*.lu iswm $1 ) return Luxembourg
  else if (*.mo iswm $1 ) return Macau
  else if (*.mk iswm $1 ) return Macedonia
  else if (*.mg iswm $1 ) return Madagascar
  else if (*.mw iswm $1 ) return Malawi
  else if (*.my iswm $1 ) return Malaysia
  else if (*.mv iswm $1 ) return Maldives
  else if (*.ml iswm $1 ) return Mali
  else if (*.mt iswm $1 ) return Malta
  else if (*.mh iswm $1 ) return Marshall Islands
  else if (*.mq iswm $1 ) return Martinique
  else if (*.mr iswm $1 ) return Mauritania
  else if (*.mu iswm $1 ) return Mauritius
  else if (*.yt iswm $1 ) return Mayotte
  else if (*.mx iswm $1 ) return Mexico
  else if (*.fm iswm $1 ) return Federal States of Micronesia
  else if (*.md iswm $1 ) return Republic Of Moldova
  else if (*.mc iswm $1 ) return Monaco
  else if (*.mn iswm $1 ) return Mongolia
  else if (*.ms iswm $1 ) return Monsterrat
  else if (*.ma iswm $1 ) return Morocco
  else if (*.mz iswm $1 ) return Mozambique
  else if (*.mm iswm $1 ) return Myanmar
  else if (*.na iswm $1 ) return Nambia
  else if (*.nr iswm $1 ) return Nauru
  else if (*.np iswm $1 ) return Nepal
  else if (*.nl iswm $1 ) return Netherlands
  else if (*.an iswm $1 ) return Netherlands Antilles
  else if (*.nc iswm $1 ) return New Calendonia
  else if (*.nz iswm $1 ) return New Zealand
  else if (*.ni iswm $1 ) return Nicaragua
  else if (*.ne iswm $1 ) return Niger
  else if (*.net iswm $1 ) return Internic Network
  else if (*.info iswm $1 ) return Internic Information
  else if (*.ng iswm $1 ) return Nigeria
  else if (*.nu iswm $1 ) return Niue
  else if (*.nf iswm $1 ) return Norfolk Island
  else if (*.mp iswm $1 ) return Northern Mariana Islands
  else if (*.no iswm $1 ) return Norway
  else if (*.om iswm $1 ) return Oman
  else if (*.pk iswm $1 ) return Pakistan
  else if (*.pw iswm $1 ) return Palau
  else if (*.pa iswm $1 ) return Panama
  else if (*.pg iswm $1 ) return Papua New Guinea
  else if (*.py iswm $1 ) return Paraguay
  else if (*.pe iswm $1 ) return Peru
  else if (*.ph iswm $1 ) return Phillippines
  else if (*.pn iswm $1 ) return Pitcairn
  else if (*.pl iswm $1 ) return Poland
  else if (*.ot iswm $1 ) return Portugal
  else if (*.pt iswm $1 ) return Portugal
  else if (*.org iswm $1 ) return Internic Non-Profit Organization
  else if (*.pr iswm $1 ) return Puerto Rico
  else if (*.qa iswm $1 ) return Qatar
  else if (*.re iswm $1 ) return Reunion
  else if (*.ro iswm $1 ) return Romania
  else if (*.ru iswm $1 ) return Russian Federation
  else if (*.rw iswm $1 ) return Rwanda
  else if (*.kn iswm $1 ) return Saint Kitts and Nevis
  else if (*.lc iswm $1 ) return Saint Lucia
  else if (*.vc iswm $1 ) return Saint Vincent and the Grenadines
  else if (*.ws iswm $1 ) return Samoa
  else if (*.sm iswm $1 ) return San Marino
  else if (*.st iswm $1 ) return Sao Tome and Principe
  else if (*.sa iswm $1 ) return Saudi Arabia
  else if (*.sn iswm $1 ) return Senegal
  else if (*.sc iswm $1 ) return Seychelles
  else if (*.sl iswm $1 ) return Sierra Leone
  else if (*.sg iswm $1 ) return Singapore
  else if (*.sk iswm $1 ) return Slovakia (Slovak Republic)
  else if (*.si iswm $1 ) return Slovenia
  else if (*.sb iswm $1 ) return Soloman Islands
  else if (*.so iswm $1 ) return Somalia
  else if (*.za iswm $1 ) return South Africa
  else if (*.gs iswm $1 ) return South Georgia and Sandwich Isl.
  else if (*.es iswm $1 ) return Spain
  else if (*.lk iswm $1 ) return Sri Lanka
  else if (*.sh iswm $1 ) return St. Helena
  else if (*.pm iswm $1 ) return St. Pierre and Miquelon
  else if (*.sd iswm $1 ) return Sudan
  else if (*.sr iswm $1 ) return Suriname
  else if (*.sj iswm $1 ) return Svalbard and Jan Mayen Isl.
  else if (*.sz iswm $1 ) return Swaziland
  else if (*.se iswm $1 ) return Sweden
  else if (*.ch iswm $1 ) return Switzerland
  else if (*.sy iswm $1 ) return Syrian arab Republic
  else if (*.tw iswm $1 ) return Taiwan
  else if (*.tj iswm $1 ) return Tajikistan
  else if (*.tz iswm $1 ) return Tanzania
  else if (*.th iswm $1 ) return Thailand
  else if (*.tg iswm $1 ) return Togo
  else if (*.tk iswm $1 ) return Tokelau
  else if (*.to iswm $1 ) return Tonga
  else if (*.tt iswm $1 ) return Trinidad and Tobago
  else if (*.tn iswm $1 ) return Tunisia
  else if (*.tr iswm $1 ) return Turkey
  else if (*.tm iswm $1 ) return Turkmenistan
  else if (*.tc iswm $1 ) return Turks and Ciacos Islands
  else if (*.tv iswm $1 ) return Tuvalu
  else if (*.ug iswm $1 ) return Uganda
  else if (*.ua iswm $1 ) return Ukraine
  else if (*.ae iswm $1 ) return United Arab Emirates
  else if (*.gb iswm $1 ) return United Kingdom
  else if (*.us iswm $1 ) return United States
  else if (*.uk iswm $1 ) return United Kingdom
  else if (*.um iswm $1 ) return United States Minor Outlying Islands
  else if (*.uy iswm $1 ) return Uruguay
  else if (*.uz iswm $1 ) return Uzbekistan
  else if (*.vu iswm $1 ) return Vanuatu
  else if (*.ve iswm $1 ) return Venezuela
  else if (*.vn iswm $1 ) return Viet Nam
  else if (*.vg iswm $1 ) return Virgin Islands (British)
  else if (*.vi iswm $1 ) return Virgin Islands (United States)
  else if (*.wf iswm $1 ) return Wallis and Futuna Islands
  else if (*.eh iswm $1 ) return Western Sahara
  else if (*.ye iswm $1 ) return Yemen
  else if (*.yu iswm $1 ) return Yugoslavia
  else if (*.zr iswm $1 ) return Zaire
  else if (*.zm iswm $1 ) return Zambia
  else if (*.zw iswm $1 ) return Zimbabwe
  else if (*.*0 iswm $1 ) return Unknown
  else if (*.*1 iswm $1 ) return Unknown
  else if (*.*2 iswm $1 ) return Unknown
  else if (*.*3 iswm $1 ) return Unknown
  else if (*.*4 iswm $1 ) return Unknown
  else if (*.*5 iswm $1 ) return Unknown
  else if (*.*6 iswm $1 ) return Unknown
  else if (*.*7 iswm $1 ) return Unknown
  else if (*.*8 iswm $1 ) return Unknown
  else if (*.*9 iswm $1 ) return Unknown
  else if ($1 == $null ) return Unknown
  else return Unknown
}

#146661 06/04/06 08:36 PM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Quote:
are there somebody who can make me a script that can display what country the user have when he enter the channel on #CSmixes

// IF the user come from Denmark the bot vil answer:
$nick Is from Denmark

it something whit the host mask but i cant figure it out

i would like thess countrys in the scriots

Denmark
Norway
Sweden
Deutchland
England

its a littel delicious code work

someone plz help smile


Sure, I charge $25/hour, and it shouldn't take more than an hour... So make a $25 paypal payment to "admin@mirc-dll.com" and I'll write it for you. I will send the results to the e-mail address you used to send the payment. (Even though it will only take an hour, please allow 24 hours for delivery)

I think this is the best offer you will get, these forums are for helping out people when they have specific questions... Noone here is going to write, from scratch, a (semi-)complex script for you. wink


NaquadaBomb
www.mirc-dll.com
#146662 06/04/06 08:40 PM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Hay was trying to make a point, but you negated it, by posting an existing script... There are other web site for sharing scripts, please don't post them here, give a link if anything... Punk! :tongue:

Last edited by NaquadaServ; 06/04/06 08:41 PM.

NaquadaBomb
www.mirc-dll.com
#146663 06/04/06 08:42 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Even if I wrote only the countries he asked for from scratch, it would take 1 minute tops to make the script. There is nothing complex about it.

#146664 06/04/06 08:53 PM
Joined: Sep 2005
Posts: 116
I
Vogon poet
Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
Quote:
Even if I wrote only the countries he asked for from scratch, it would take 1 minute tops to make the script. There is nothing complex about it.
indeed ill do it for free if u want :tongue:

#146665 06/04/06 10:50 PM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
My point...

No need to post entire scripts in these forums.


NaquadaBomb
www.mirc-dll.com
#146666 06/04/06 11:16 PM
Joined: Apr 2006
Posts: 13
L
LandbO Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Apr 2006
Posts: 13
Post deleted by LandbO

#146667 06/04/06 11:40 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Change
Code:
 msg $chan $nick is from $country 

to
Code:
 msg $chan $nick is from $country($address($nick,2)) 


AND

Remove the '$' from 'Alias $country'

AND

change 'else if' to 'elseif'


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#146668 06/04/06 11:44 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Quote:
hey tanks for the help i have made this now but why does it not work
i have placed it under "remote"


Well, lets see why it doesn't work.

I posted alias country and you changed it to alias $country

I posted $country($address($nick,2)) and you changed it to $country.

Both of those changes are unncessary and have caused it to not function properly.

The modified country list is ok.

The only other part of the code you should be changing is the message it says to the channel.

Quote:
change 'else if' to 'elseif'


It doesn't matter if you use 'else if' or 'elseif'. Both are the same, it's just my preference to use it with a space. wink

#146669 06/04/06 11:51 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Quote:
change 'else if' to 'elseif'


It doesn't matter if you use 'else if' or 'elseif'. Both are the same, it's just my preference to use it with a space. [/quote]

Oh, thought that it would make a difference. Just tested it & it does work.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!

Link Copied to Clipboard