ESNation Forums pics downloads links forum faq about news nnscript misc

Go Back   ESNation Forums > NNScript > Themes
Reply
 
Thread Tools Display Modes
Old 6th Apr 2006, 22:32 CEST   #1
blackwind
Newbie Citizen
 
Join Date: Apr 2006
Location: Canada
Posts: 14
Default [NNT] Classic BitchX 1.0.5 (UPDATED: 2007-11-17)

NOTE: BitchX Classic 1.0.4 is now bundled with NNS.

Introduction:
Classic BitchX is your standard BitchX poser theme for NNS4. To experience CBX in its full glory, you must add the following code to ownstuff.nns:
Code:
; Begin Classic BitchX required definitions.
alias country {
  if (!$hget(country)) { 
    hmake country $calc($lines(scripts/tables/country.tbl)-1) 
    hload -i country scripts/tables/country.tbl 
  } 
  return $iif($hget(country,$1),$v1,unknown) 
}
; End Classic BitchX required definitions.
Screenshot:


Download:
http://blackwind.org/download/k8GYkqqqq ... tK_mlG6rrg.

Barring any major problems, it's likely that this will be the first and last release. Enjoy!
__________________
/bw
blackwind is offline   Reply With Quote
Old 6th Apr 2006, 23:05 CEST   #2
whocarez
Junior Citizen
 
Join Date: Jan 2006
Posts: 75
Default

Why is that extra code needed? nnscripts has already such country location int or am i wrong?
whocarez is offline   Reply With Quote
Old 6th Apr 2006, 23:18 CEST   #3
blackwind
Newbie Citizen
 
Join Date: Apr 2006
Location: Canada
Posts: 14
Default

It facilitates a local BX-style country lookup for whois/whowas, so as to prevent any slowdown that would be incurred utilizing the standard NNS remote lookup method.
__________________
/bw
blackwind is offline   Reply With Quote
Old 9th Apr 2006, 22:20 CEST   #4
blackwind
Newbie Citizen
 
Join Date: Apr 2006
Location: Canada
Posts: 14
Default

1.0.1 released.
__________________
/bw
blackwind is offline   Reply With Quote
Old 11th Apr 2006, 13:11 CEST   #5
TiFighter
Hardcore Citizen
 
Join Date: Feb 2003
Location: .de
Posts: 1,305
Default

/me thinks of hash tables...
TiFighter is offline   Reply With Quote
Old 11th Apr 2006, 16:40 CEST   #6
voks
NNScript Staff
 
Join Date: Jul 2002
Location: Kaiserslautern
Posts: 1,456
Send a message via ICQ to voks Send a message via Skype™ to voks
Default

Quote:
Originally Posted by TiFighter
/me thinks of hash tables...
or at least "elseif" 8)
__________________
mp3ad+ 2.41 (advertise Winamp, foobar, QCD, iTunes, Apollo, MediaMonkey, AIMP and The KMPlayer song info)
Server browser for NNScript
voks is offline   Reply With Quote
Old 11th Apr 2006, 23:13 CEST   #7
blackwind
Newbie Citizen
 
Join Date: Apr 2006
Location: Canada
Posts: 14
Default

The "country" function is something a friend of mine converted straight from a XiRCON script many, many years back. If the code bothers you, feel free to rewrite it (or, better yet, request a similar function be included in NNS itself). For my purposes, it does the job it was written to do, and that's good enough for me.
__________________
/bw
blackwind is offline   Reply With Quote
Old 15th Apr 2006, 08:46 CEST   #8
meow
Citizen
 
Join Date: Feb 2004
Posts: 165
Default

Thx looks nice Oldskool 8)
meow is offline   Reply With Quote
Old 17th Apr 2006, 13:55 CEST   #9
blackwind
Newbie Citizen
 
Join Date: Apr 2006
Location: Canada
Posts: 14
Default

Glad to see *someone* appreciates it.

1.0.2 released.
__________________
/bw
blackwind is offline   Reply With Quote
Old 21st Apr 2006, 19:36 CEST   #10
TiFighter
Hardcore Citizen
 
Join Date: Feb 2003
Location: .de
Posts: 1,305
Default

download the hash table or save this as country.tbl in your mirc folder:
Code:
[hashtable]
AD=Andorra
AE=United Arab Emirates
AF=Afghanistan
AG=Antigua/Barbuda
AI=Anguilla
AL=Albania
AM=Armenia
AN=Netherlands Antilles
AO=Angola
AQ=Antarctica
AR=Argentina
AS=American Samoa
AT=Austria
AU=Australia
AW=Aruba
AZ=Azerbaijan
BA=Bosnia
BB=Barbados
BD=Bangladesh
BE=Belgium
BF=Burkina Faso
BG=Bulgaria
BH=Bahrain
BI=Burundi
BJ=Benin
BM=Bermuda
BN=Brunei Darussalam
BO=Bolivia
BR=Brazil
BS=Bahamas
BT=Bhutan
BV=Bouvet Island
BW=Botswana
BY=Belarus
BZ=Belize
CA=Canada
CC=Cocos Islands
CF=Central African Republic
CG=Congo
CH=Switzerland
CI=The Cote d'Ivoire
CK=Cook Islands
CL=Chile
CM=Cameroon
CN=China
CO=Colombia
CR=Costa Rica
CS=Former Czechoslovakia
CU=Cuba
CV=Cape Verde
CX=Christmas Island
CY=Cyprus
CZ=Czech Republic
DE=Germany
DJ=Djibouti
DK=Denmark
DM=Frominica
DO=Frominican Republic
DZ=Algeria
EC=Ecuador
EE=Estonia
EG=Egypt
EH=Western Sahara
ER=Eritrea
ES=Spain
ET=Ethiopia
FI=Finland
FJ=Fiji
FK=Falkland Islands
FM=Micronesia
FO=Faroe Islands
FR=France
FX=France, Metropolitan
GA=Gabon
GB=Great Britain
GD=Grenada
GE=Georgia
GF=French Guiana
GH=Ghana
GI=Gibraltar
GL=Greenland
GM=Gambia
GN=Guinea
GP=Guadeloupe
GQ=Equatorial Guinea
GR=Greece
GS=The St. Georgia/St. Sandwich Islands
GT=Guatemala
GU=Guam
GW=Guinea-Bissau
GY=Guyana
HK=Hong Kong
HM=The Heard/Mcdonald Islands
HN=Honduras
HR=Croatia
HT=Haiti
HU=Hungary
ID=Indonesia
IE=Ireland
IL=Israel
IN=India
IO=British Indian Ocean Territory
IQ=Iraq
IR=Iran
IS=Iceland
IT=Italy
JM=Jamaica
JO=Jordan
JP=Japan
KE=Kenya
KG=Kyrgyzstan
KH=Cambodia
KI=Kiribati
KM=Comoros
KN=St. Kitts/Nevis
KP=North Korea
KR=South Korea
KW=Kuwait
KY=Cayman Islands
KZ=Kazakhstan
LA=Laos
LB=Lebanon
LC=Saint Lucia
LI=Liechtenstein
LK=Sri Lanka
LR=Liberia
LS=Lesotho
LT=Lithuania
LU=Luxembourg
LV=Latvia
LY=Libya
MA=Morocco
MC=Monaco
MD=Moldova
MG=Madagascar
MH=Marshall Islands
MK=Macedonia
ML=Mali
MM=Myanmar
MN=Mongolia
MO=Macau
MP=Northern Mariana Islands
MQ=Martinique
MR=Mauritania
MS=Montserrat
MT=Malta
MU=Mauritius
MV=Maldives
MW=Malawi
MX=Mexico
MY=Malaysia
MZ=Mozambique
NA=Namibia
NC=New Caledonia
NE=Niger
NF=Norfolk Island
NG=Nigeria
NI=Nicaragua
NL=Netherlands
NO=Norway
NP=Nepal
NR=Nauru
NT=Neutral Zone
NU=Niue
NZ=New Zealand
OM=Oman
PA=Panama
PE=Peru
PF=French Polynesia
PG=Papua New Guinea
PH=Philippines
PK=Pakistan
PL=Poland
PM=St. Pierre/Miquelon
PN=Pitcairn
PR=Puerto Rico
PT=Portugal
PW=Palau
PY=Paraguay
QA=Qatar
RE=Reunion
RO=Romania
RU=Russian Federation
RW=Rwanda
SA=Saudi Arabia
SB=Solomon Islands
SC=Seychelles
SD=Sudan
SE=Sweden
SG=Singapore
SH=St. Helena
SI=Slovenia
SJ=Svalbard/Jan Mayen Islands
SK=Slovak Republic
SL=Sierra Leone
SM=San Marino
SN=Senegal
SO=Somalia
SR=Suriname
ST=Sao Tome/Principe
SU=Former USSR
SV=El Salvador
SY=Syria
SZ=Swaziland
TC=The Turks/Caicos Islands
TD=Chad
TF=French Southern Territories
TG=Togo
TH=Thailand
TJ=Tajikistan
TK=Tokelau
TM=Turkmenistan
TN=Tunisia
TO=Tonga
TP=East Timor
TR=Turkey
TT=Trinidad/Tobago
TV=Tuvalu
TW=Taiwan
TZ=Tanzania
UA=Ukraine
UG=Uganda
UK=United Kingdom
UM=US Minor Outlying Islands
US=United States
UY=Uruguay
UZ=Uzbekistan
VA=Vatican City State
VC=St. Vincent/The Grenadines
VE=Venezuela
VG=British Virgin Islands
VI=US Virgin Islands
VN=Vietnam
VU=Vanuatu
WF=The Wallis/Futuna Islands
WS=Samoa
YE=Yemen
YT=Mayotte
YU=Yugoslavia
ZA=South Africa
ZM=Zambia
ZR=Zaire
ZW=Zimbabwe
COM=Internic Commercial
EDU=Educational Institution
GOV=Government
INT=International
MIL=Military
NET=Internic Network
ORG=Internic Non-Profit Organization
RPA=Old-Style Arpanet
ATO=A NATO Field
use this alias to retrieve your information:
Code:
country {
  if (!$hget(country)) {
    hmake country $calc($lines(country.tbl)-1)
    hload -i country country.tbl
  }
  return $iif($hget(country,$1),$v1,unknown)
}
TiFighter is offline   Reply With Quote
Old 28th Apr 2006, 22:41 CEST   #11
blackwind
Newbie Citizen
 
Join Date: Apr 2006
Location: Canada
Posts: 14
Default

Zip and post updated with TiFighter's additions. Thanks.
__________________
/bw
blackwind is offline   Reply With Quote
Old 2nd Oct 2006, 10:41 CEST   #12
blackwind
Newbie Citizen
 
Join Date: Apr 2006
Location: Canada
Posts: 14
Default

1.0.3 released.
__________________
/bw
blackwind is offline   Reply With Quote
Old 17th Nov 2007, 23:28 CET   #13
blackwind
Newbie Citizen
 
Join Date: Apr 2006
Location: Canada
Posts: 14
Default

CBX is now included with NNS4.2, but it appears the developers neglected to include the country alias and hashtable. If you desire that functionality, download the newly updated Classic BitchX 1.0.5 above.
__________________
/bw
blackwind is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:12 CEST.