Barter Zone
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsGeneralBarter Zone

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 5th, 2006, 12:19 AM
Ghaleon Ghaleon is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Clarion PA USA
Posts: 1 Ghaleon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Ghaleon
Can anyone help?

Ok this is whats going on. I play this game called Shimlar. I had a script that would play for me when I'm busy doing other things. Well now they changed it to PHP I think. I would like to know if anyone can convert the code for me so I can use it again. If someone can and have the same things the first one did, I am willing to pay some cash for it. The site is www.shimlar.com My email is Katsumoto1982@Gmail.com and I can be reached there.


Here is the script. All the 0's at the end were added because the owner added some new things and made there script a bit bigger. So the 0's at the end were added so the script could be used. Also go below this script for the new one.

<!--
var q=false;var showMac=false;var displayIT="";var

dirBank="n";var maxGold=9000000000;var moved=false;var statSel=5;
var theDumbMods = new Array("Esper","A Fluffy Teddy

Bear","Shintalla","Lady Aquataria","Bird Of

Prey","Forgiving_Flames","Coin Operated Boy","Fenris","Rai

Claybourn","Magdelana","Megatron","Leviathan

Mist","BLACKJACK","Chattmatt","Thomas

Covenant","Deandria","Cardinal Fang","Elder

LongFellow","Felina","Caissa","Lady Emerald","Lord

Boma","F0zz","Maggie","Rincewind2","Koral Volotor");
function warnModArch(){
modarchspoke=1;
var mywind = window.open('', 'TINY',

'width=385,height=170,directories=no,location=no,m enubar=no,resiza

ble=no,scrollbars=no,status=yes,toolbar=no');
mywind.document.write("<html><head><title>Shim

Warning</title></head><body><embed

src='http://www.sounddogs.com/previews/2106/mp3/275555_SOUNDDOGS_A

L.mp3' hidden='true' loop='true' autostart='true'><br><br>Oh Oh

are you cheating!<br><br>Quick answer the mod/arch!<br><br>To

reset warning, change quest on/off back and

forth.</body></html>");
}
function

questSet(rb){if(rb=="yes"){q=true;modarchspoke=0;}else{q=false;mod

archspoke=0;}}
function statSelSet(val){statSel=val;}
function isMod(name){
for(dumb=0;dumb<theDumbMods.length;dumb++){
if (theDumbMods[dumb] == name){
return true;
}
}
return false;
}
function

hideShowMac(){if(!showMac){displayIT="none";}else{displayIT="";}to

p.toiminta.document.getElementById('mac').style.di splay=displayIT;

showMac=(!showMac);}
function makeDep1(){//alert("1");
moved=true;
var moveBank;
switch(dirBank){
case "n":
moveBank=1;break;
case "s":
moveBank=2;break;
case "w":
moveBank=3;break;
case "e":
moveBank=4;break;
}
setTimeout("top.mform('m',"+moveBank+",0,0)",1000);
}
function

makeDep2(){//alert("2");
setTimeout("top.mform('b2',"+gold+",0,0)",1000);
}
function

makeDep3(){//alert("3");
moved=false;
var moveBack;
switch(dirBank){
case "n":
moveBack=2;break;
case "s":
moveBack=1;break;
case "w":
moveBack=4;break;
case "e":
moveBack=3;break;
}
maxGold += newAmount();
setTimeout("top.mform('m',"+moveBack+",0,0)",1000);
setTimeout("top.newFightAction()",3000);
}
function newAmount()
{
posNeg = Math.round(Math.random()*2);
if(posNeg==1){posNeg =

1}else{posNeg=-1}
return

posNeg*(Math.round(Math.random()*10000));
}
function ctrln(vx){
if(pname=="" || version != vx){
top.location.href="http://www.shimlar.com/game.php";
alert("New

Interface, please Refresh the page.");
return 0;
}else {
return

2;
}
}
function stressj(sx){
atxt="There is a "+sx+" players

online limit.";
alert(atxt);
}
function make_stats(){
top.invent.document.open("text/html");
top.invent.document.writeln("<html><head><title>Stats</title></hea

d>");
top.invent.document.writeln("<body bgcolor='000000'

text='DDDD00' link='00FF50' vlink='00FF50' alink='00FF50'>");
top.invent.document.writeln("<span id=stat_page></span>");
top.invent.document.writeln("</body></html>");
top.invent.document.body.background=bgpic[zone_bg[loc_zone]].src;
top.invent.document.close();
}
function make_toiminta(){
top.toiminta.document.open("text/html");
top.toiminta.document.writeln("<html>");
top.toiminta.document.writeln("<body bgcolor='000000'

text='C0FFFF' link='00FF50' vlink='00FF50' alink='00FF50'>");
top.toiminta.document.writeln("<span id=act_up></span>");
top.toiminta.document.writeln("<span id=act_bstuff></span>");
top.toiminta.document.writeln("<span id=act_down></span>");
top.toiminta.document.writeln("</body></html>");
top.toiminta.document.body.background=bgpic[zone_bg[loc_zone]].src

;
top.toiminta.document.close();
}
function upd_stats(){
stat_desc="";drop_s=0;
if(statmode==0){
stat_desc+="<center><font

color='DDDDDD' size=3><i><b>"+pname+"

"+lastname+"</b></i></font>";
if(clan!="" && clan!="a"){
stat_desc+="<br><font color='DDDDDD'>("+clan+"

clan)</font></center>";
}else{
stat_desc+="</center><br>";
}
stat_desc+="<table CELLSPACING=1 CELLPADDING=1 border=0

width='100%'>"
+"<tr><td>"+race+"</td><td>Level

"+lvl+"</td></tr>"
+"<tr><td>Str: "+pil(str)+"</td><td>Dex:

"+pil(dex)+"</td></tr>"
+"<tr><td>Ntl: "+pil(ntl)+"</td><td>Wis:

"+pil(wis)+"</td></tr>"
+"<tr><td>Vit: "+pil(vit)+"</td><td>";
if(health>=vit){
stat_desc+="<font color=43F4FF>";
}else

if(health<vit&&health>=(vit*0.6)){
stat_desc+="<font

color=00CA18>";
}else if(health<(vit*0.6)&&health>=(vit*0.2)){
stat_desc+="<font color=E5FF39>";
}else

if(health<(vit*0.2)&&health>0){
stat_desc+="<font

color=FF017F>";
}else{
stat_desc+="<font color=D2D0D0>";
}
stat_desc+="Life: <b>"+pil(health)+"

("+pil(vit)+")</b></font></td></tr>"
+"<tr><td>Gold:

"+pil(gold)+"</td><td>(Bank: "+pil(banked)+")</td></tr>"
+"<tr><td>Free Exp: </td><td>"+pil(exp)+"</td></tr>";
if(freelvl>0){
stat_desc+="<tr><td>Free levels:

</td><td>"+freelvl+"</td></tr>";
}else {
stat_desc+="<tr><td>Next

level at: </td><td>"+pil(nxlvl)+"</td></tr>";
}
stat_desc+="<tr><td>Alignment: </td><td><b>";
if(alignx>100){
stat_desc+="<font color=43F4FF>";
}else if(alignx<-100){
stat_desc+="<font color=FF017F>";
}else{
stat_desc+="<font

color=D2D0D0>";
}
stat_desc+=pil(alignx)+"</b></td></tr></table>";
stat_desc+="<a

href='javascript:top.statmod(1)'>Items</a>";
if(loc_zone

!=10&&loc_zone !=21&&loc_zone !=22){
stat_desc+=" <a

href='javascript:top.statmod(3)'>Zone Map</a>";
}
}else

if(statmode==1){
stat_desc+="<center><font color='DDDDDD'

size=3><i><b>"+pname+" "+lastname+"</b></i></font></center>";
if(rhand !=0){
rhandeq=idesc(rhand-1,1);
}else {
rhandeq="Hand";
}
if(lhand !=0){
lhandeq=idesc(lhand-1,1);
}else {
lhandeq="Hand";
}
if(spellone !=0){
spelloneeq=idesc(spellone-1,1);
}else {
spelloneeq="None

Memorised";
}
if(spelltwo !=0){
spelltwoeq=idesc(spelltwo-1,1);
}else {
spelltwoeq="None Memorised";
}
if(armor !=0){
armoreq=idesc(armor-1,1);
}else {
armoreq="Rags";
}
if(accx

!=0){
acceq=idesc(accx-1,1);
}else {
acceq="Nothing";
}
ax1=0;stat_desc+="<table CELLSPACING=1 CELLPADDING=0 border=0

width='100%'>"
+"<tr><td>Right

Hand:</td><td>"+rhandeq+"</td></tr>"
+"<tr><td>Left

Hand:</td><td>"+lhandeq+"</td></tr>"
+"<tr><td>Armor:</td><td>"+armoreq+"</td></tr>"
+"<tr><td>Spell

One:</td><td>"+spelloneeq+"</td></tr>"
+"<tr><td>Spell

Two:</td><td>"+spelltwoeq+"</td></tr>"
+"<tr><td>Accessory:</td><td>"+acceq+"</td></tr></table>"
+"<form

name='inventoryDisplay' method=POST action=main2.php

target=arvot>"
+"<table CELLSPACING=0 CELLPADDING=0 border=0

width='100%'><tr><td><select name=k>";
for(i=0;i<30;++i){
if(invlist[i] !=0){
iname=idesc(i,2);ax1++;
stat_desc+="<option

value="+i+">"+iname+"</option>";
}
}
stat_desc+="</select></td></tr>"
+"<tr><td><input type=hidden

name=a value='q'>"
+"<input type=hidden name=l

value='"+login+"'>"
+"<input type=hidden name=p

value='"+pword+"'>"
+"<input type=button value='Equip'

onclick='this.disabled=true;top.equipAction();'>&nbsp;&nbsp;<a

href='javascript:top.actmod(6)'>TRADE (On/Off)</a>"
+"&nbsp;&nbsp;<a

href='javascript:top.statmod(0)'>Stats</a></td></tr>"
+"<tr><td

colspan=2>"+ax1+" of 30 item slots

used.</td></tr></table></form>";
}else if(statmode==2){
stat_desc+="<center><font color='DDDDDD' size=3><i><b>"+pname+"

"+lastname+"</b></i></font></center>"
+"<br><table border=0

width='100%'><tr><td>Your Skills:</td></tr>"
+"<tr><td>Sword:

"+masteries[0]+"%</td><td>Axe: "+masteries[1]+"%</td></tr>"
+"<tr><td>Staff: "+masteries[2]+"%</td><td>Mace:

"+masteries[3]+"%</td></tr>"
+"<tr><td>Armor:

"+masteries[8]+"%</td><td>Doublehit:

"+masteries[9]+"%</td></tr>"
+"<tr><td>Fire:

"+masteries[4]+"%</td><td>Cold: "+masteries[5]+"%</td></tr>"
+"<tr><td>Air: "+masteries[6]+"%</td><td>Arcane:

"+masteries[7]+"%</td></tr></table>"
+"<a

href='javascript:top.statmod(0)'>Stats</a>";
}else

if(statmode==3){
zone=zonelist[loc_zone];
if(loc_zone !=10){
stat_desc+="<center><font color='AF02C0'

size=3><b>"+zone+"</b></font><br><br>"
+"<table border=1

CELLSPACING=0 CELLPADDING=0 BGCOLOR='000000'><font

color='ffffaa'>";
for(a1=zkoko;a1>=0;a1--){
stat_desc+="<tr>";
for(a2=0;a2<=zkoko;a2++){
if(a1==loc_y&&a2==loc_x){
stat_desc+="<td align='center' width='16' bgcolor='009900'>";
}else {
stat_desc+="<td align='center' width='16'>";
}
if((zexit%10)==a1&&(zexit-(zexit%10))/10==a2){
stat_desc+="<strong>E</strong>";
}else

if((zshop%10)==a1&&(zshop-(zshop%10))/10==a2){
stat_desc+="<strong>S</strong>";
}else

if((zshrine%10)==a1&&(zshrine-(zshrine%10))/10==a2){
stat_desc+="<strong>R</strong>";
}else

if((zmage%10)==a1&&(zmage-(zmage%10))/10==a2){
stat_desc+="<strong>M</strong>";
}else

if((zbank%10)==a1&&(zbank-(zbank%10))/10==a2){
stat_desc+="<strong>B</strong>";
}else

if(a1==1&&a2==1&&loc_zone==26){
stat_desc+="<strong>Q</strong>";
}else if(a1==0&&a2==1&&loc_zone==16){
stat_desc+="<strong>A</strong>";
}else

if(a1==2&&a2==2&&loc_zone==37){
stat_desc+="<strong>A</strong>";
}else if(a1==1&&a2==2&&loc_zone==16){
stat_desc+="<strong>N</strong>";
}else

if(a1<10&&a2<10&&loc_zone==32){
stat_desc+="<strong>H</strong>";
}else if(a1==3&&a2==2&&loc_zone==24){
stat_desc+="<strong>G</strong>";
}else

if(a1==2&&a2==2&&loc_zone==33){
stat_desc+="<strong>G</strong>";
}else if(a1==2&&a2==2&&loc_zone==16){
stat_desc+="<strong>C</strong>";
}else

if(a1<10&&a2<18&&loc_zone==41){
stat_desc+="<strong>K</strong>";
}else {
stat_desc+="=";
}
stat_desc+="</td>";
}
stat_desc+="</tr>";
}
stat_desc+="</font></table></center>";
}
stat_desc+="<br><a href='javascript:top.statmod(0)'>Stats</a>";
}
top.invent.stat_page.innerHTML=stat_desc;
}
function

upd_toiminta(){
act_low="";
zone=zonelist[loc_zone];
act_desc="<table CELLSPACING=0 CELLPADDING=0 width='100%'><tr>"
+"<form><td width='300'>You are now at: "+loc_x+"<a

href='javascript:top.hideShowMac()'

style='text-decoration:none;color=bbbbbb'>,</a> "+loc_y+" in

<strong>"+zone+"</strong> <br> <span id='mac'

style='display:"+displayIT+"'>(w "+wmast+") (s "+smast+") (a

"+amast+") (d "+dmast+") (g "+gdep+") (maxGold "+maxGold+")<br>

(fg "+fgem+") (mg "+mgem+") (si "+sitem+") (k "+ripcount+") quest:

yes <input type='radio' name='qqq' value='yes'

onClick='top.questSet("yes")'";
if(q){act_desc+=" checked"}
act_desc+="> no <input type='radio' name='qqq' value='no'

onClick='top.questSet("no")'";
if(!q){act_desc+=" checked"}
act_desc+="><br> s <input type='radio' name='sss' value='1'

onClick='top.statSelSet(1)'";
if(statSel==1){act_desc+=" checked"}
act_desc+="> d <input

type='radio' name='sss' value='2' onClick='top.statSelSet(2)'";
if(statSel==2){act_desc+=" checked"}
act_desc+="> n <input

type='radio' name='sss' value='3' onClick='top.statSelSet(3)'";
if(statSel==3){act_desc+=" checked"}
act_desc+="> w <input

type='radio' name='sss' value='4' onClick='top.statSelSet(4)'";
if(statSel==4){act_desc+=" checked"}
act_desc+="> v <input

type='radio' name='sss' value='5' onClick='top.statSelSet(5)'";
if(statSel==5){act_desc+=" checked"}
act_desc+="> rdm <input

type='radio' name='sss' value='6' onClick='top.statSelSet(6)'";
if(statSel==6){act_desc+=" checked"}
act_desc+="></span></td>"

+"<td></td><td align='center'><a

href='javascript:top.mform("m",1,0,0)'><img name='mN' border='0'

alt='North'></a></td><td></td></tr><tr>";
if(zone_here==10){
act_desc+="<td><center><a

href='javascript:top.mform("m",5,0,0)'>Venture into The

Wilderness</a>";
}else

if(zone_here==15&&(loc_zone==21||loc_zone==46)){
act_desc+="<td><center><a

href='javascript:top.mform("m",5,0,0)'>Return to Ta'lorn</a>";
}else

if(zone_here==19&&(loc_zone==22||loc_zone==34||loc_zone==47)){
act_desc+="<td><center><a

href='javascript:top.mform("m",5,0,0)'>Return to Demon

Gate</a>";
}else if(zone_here==21){
if(loc_zone==15){
act_desc+="<td><center><a

href='javascript:top.mform("m",6,0,0)'>Ascend to Dimension of

Light</a>";
}else {
act_desc+="<td><center><a

href='javascript:top.mform("m",5,0,0)'>Ascend to Dimension of

Light</a>";
}
}else if(zone_here==22){
if(loc_zone==19){
act_desc+="<td><center><a

href='javascript:top.mform("m",6,0,0)'>Explore Dimension of

Chaos</a>";
}else {
act_desc+="<td><center><a

href='javascript:top.mform("m",5,0,0)'>Explore Dimension of

Chaos</a>";
}
}else if(zone_here>34&&zone_here<40){
if(loc_zone<zone_here){
act_desc+="<td><center><a

href='javascript:top.mform("m",6,0,0)'>Climb Up to

"+top.zonelist[zone_here]+"</a>";
}else {
act_desc+="<td><center><a

href='javascript:top.mform("m",5,0,0)'>Climb Down to

"+top.zonelist[zone_here]+"</a>";
}
}else

if(zone_here>0||(zone_here==0&&loc_zone==10&&loc_x==14&&loc_y==14)

){
act_desc+="<td><center><a

href='javascript:top.mform("m",6,0,0)'>Enter

"+top.zonelist[zone_here]+"</a>";
}else {
act_desc+="<td><center>";
}
if(stuff_here==0 || stuff_here==7){
act_desc+="&nbsp; <form><input type=button value='Refresh'

onclick='this.disabled=true;top.mform("rf",0,0,0);'></td></form>

";
}else{
act_desc+="</td>";
}
act_desc+="<td align='right'><a

href='javascript:top.mform("m",3,0,0)'><img name='mW' border='0'

alt='West'></a></td>"
+"<td align='center'><a

href='javascript:top.mform("m",2,0,0)'><img name='mS' border='0'

alt='South'></a></td>"
+"<td align='left'><a

href='javascript:top.mform("m",4,0,0)'><img name='mE' border='0'

alt='East'></a></td>"
+"</form></tr></table>";
if(stuff_here==0){
act_desc+="<center><table width='100%'

border=0><tr>"
+"<form method=POST name=stuph action=battle4.php

target=arvot><td><center>"
+"<select name=a

onchange='top.tlist()'>"
+"<option value='n'>Fight

Creatures</option>";
if(loc_zone>8&&loc_zone !=12&&loc_zone

!=15&&loc_zone !=21&&loc_zone !=24&&loc_zone !=25&&loc_zone

!=26&&loc_zone !=34&&loc_zone !=45&&loc_zone !=46&&loc_zone

!=37){
act_desc+="<option value='d'>Duel Players</option>";
}else

if(is_arch) {
act_desc+="<option value='d'>Duel

Players</option>";
}
act_desc+="</select><select name=k>";
for(i=0;i< mnum;++i){
act_desc+="<option

value="+i+">"+mlist[i]+"</option>";
}
if(zhunt>0){
act_desc+="<option value=999>"+zbname+"</option>";
}
fmc=top.location.href.charAt(fmt);
act_desc+="</select><input

type=hidden name=l value='"+login+"'>"
+"<input type=hidden name=p

value='"+pword+"'>"
+"<input type=hidden name=m

value='"+fmc+"'>"
+"<span id=nefb><input type=button value='New

Fight'

onclick='this.disabled=true;top.newFightAction();' ></span></td></f

orm></tr></table></center>";
make_toiminta();
top.toiminta.act_up.innerHTML=act_desc;
top.toiminta.stuph.a.options.selectedIndex=lastfig ht;
tlist();
upd_fight();
}else if(stuff_here==4){
act_desc+="<table

width='100%' valign='top'>"
+"<tr><td>Local office of the 1st

Shimlar Bank.</td></tr>"
+"<tr><td><form method=POST target=arvot

onsubmit='top.chat.msg.target.focus();'>"
+"<input type=text

SIZE=15 MAXLENGTH=10 name=k value=''>&nbsp;"
+"<select name=a>"
+"<option value='b2'>Deposit All</option>"
+"<option

value='b'>Deposit</option>"
+"<option

value='w'>Withdraw</option>"
+"<option value='w2'>Withdraw

All</option></select>&nbsp;"
+"<input type=hidden name=l

value='"+login+"'>"
+"<input type=hidden name=p

value='"+pword+"'>"
+"<input type=button value='OK'

onclick='this.disabled=true;top.mform(this.form.a. value,this.form.

k.value,0,0);'></form></td></tr>"
+"<tr><form><td>"
+"Transfer

<input type=text SIZE=10 MAXLENGTH=10 name=k value=''>"
+" Gold to

<input type=text SIZE=16 MAXLENGTH=20 name=m value=''>"
+"<input

type=button value='Transfer'

onclick='this.disabled=true;top.mform("x",this.form.k.value,this

.form.m.value,0);'></td></form></tr></table>";
}else

if(stuff_here==1){
act_desc+="There is a Shrine Here.";
if(health==0){
act_desc+="<form><input type=button value='Revive'

onclick='this.disabled=true;top.mform("r",0,0,0);'></form>";
}
act_desc+="<form>"
+"<select name=k>";
for(i=0;i< 21;++i){
if(i

!=10)
act_desc+="<option value="+i+">"+zonelist[i]+"</option>";
}
act_desc+="<option value=26>"+zonelist[26]+"</option>"
+"<option

value=21>"+zonelist[21]+"</option>"
+"<option

value=22>"+zonelist[22]+"</option>"
+"<option

value=32>"+zonelist[32]+"</option>"
+"<option

value=40>"+zonelist[40]+"</option>"
+"<option

value=41>"+zonelist[41]+"</option>";
if(accx>0&&invlist[accx-1]==41180000 ){
cost=0;
}else {
cost=20000;
}
act_desc+="<input type=button value='Teleport

("+cost+")'

onclick='this.disabled=true;top.mform("t",this.form.k.value,0,0)

;'></form>";
}else if(stuff_here==2){
act_desc+="Welcome to the

Shop."
+"<form name=buyitems>"
+"Buy Items: <select name=k

onchange='top.shop()'>"
+"<option value=1>Swords</option>"
+"<option value=2>Axes</option>"
+"<option

value=3>Staves</option>"
+"<option value=4>Maces</option>"
+"<option value=9>Body Armor</option>"
+"<option

value=10>Shields</option>";
if(loc_zone==17||loc_zone==24){
act_desc+="<option value=41>Accessories</option>";
}
act_desc+="</select><select name=m>";
for(i=0;i< max_wep;++i){
act_desc+="<option value="+i+">"+top.wep_list1[i]+"

"+pil(Math.round(50*Math.pow(1.7,i)))+"</option>";
}
act_desc+="</select>"
+"<input type=button value='Buy'

onclick='this.disabled=true;top.mform("u",this.form.k.value,this

.form.m.value,0);'>"
+"&nbsp;&nbsp;<input type=button

value='Examine' onclick='javascript:top.examine(4)'></form>"
+"<form name=sellitems>"
+"Sell Items: <select name=k>";
for(i=0;i<30;++i){
if(invlist[i]> 0){
iname=idesc(i,1);
if(rhand==(i+1)||lhand==(i+1)||spellone==(i+1)||sp elltwo==(i+1)||a

rmor==(i+1)||accx==(i+1)){
}else {
act_desc+="<option

value="+i+">"+iname+"</option>";
}
}
}
act_desc+="</select>"
+"<input type=button value='Sell'

onclick='this.disabled=true;top.sellScript(this.fo rm.k.options[thi

s.form.k.selectedIndex].value,escape(this.form.k.options[this.form

.k.selectedIndex].text));'>"
+"&nbsp;&nbsp;<input type=button

value='Examine' onclick='javascript:top.examine(1)'></form>";
}else if(stuff_here==3){
act_desc+="You enter the Magic Tower."
+"<form name=buyspells>"
+"Buy Items: <select name=k

onchange='top.mage()'>"
+"<option value=5>Fire</option>"
+"<option

value=6>Cold</option>"
+"<option value=7>Air</option>"
+"<option

value=8>Arcane</option>"
+"</select><select name=m>";
for(i=0;i<

max_spells;++i){
act_desc+="<option

value="+i+">"+top.spell_list1[i]+"

"+pil(Math.round(50*Math.pow(1.7,i)))+"</option>";
}
act_desc+="</select>"
+"<input type=button value='Buy Spell'

onclick='this.disabled=true;top.mform("u",this.form.k.value,this

.form.m.value,0);'>"
+"&nbsp;&nbsp;<input type=button

value='Examine' onclick='javascript:top.examine(5)'></form>"
+"<form method=POST>"
+"Enchant Items: <select name=k>";
for(i=0;i<30;++i){
if(invlist[i]>9999&&invlist[i]<41000000&&(invlist[i]%10000==0||(in

vlist[i]%10000<100&&(invlist[i]>10990000||invlist[i]%1000000>=1500

00)))){
iname=idesc(i,1);
if(rhand==(i+1)||lhand==(i+1)||spellone==(i+1)||sp elltwo==(i+1)||a

rmor==(i+1)){

}else {
act_desc+="<option

value="+i+">"+iname+"</option>";
}
}
}
act_desc+="</select> with

<select name=m>";
for(i=0;i<30;++i){
if(invlist[i]>0&&invlist[i]<100){
iname=idesc(i,1);
act_desc+="<option value="+i+">"+iname+"</option>";
}
}
act_desc+="</select>"
+"<input type=button value='Enchant'

onclick='this.disabled=true;top.enchantScript(this .form.k.options[

this.form.k.selectedIndex].value,this.form.m.options[this.form.m.s

electedIndex].value,escape(this.form.k.options[this.form.k.selecte

dIndex].text),escape(this.form.m.options[this.form.m.selectedIndex

].text));'></form>"
+"<form method=POST target=arvot

onsubmit='top.chat.msg.target.focus();'>"
+"Locate Player: <input

type=text SIZE=16 MAXLENGTH=20 name=k value=''>&nbsp;";
if(accx>0&&invlist[accx-1]==41180000 ){
cost=0;
}else {
cost=20000;
}
act_desc+="<input type=hidden name=l

value='"+login+"'>"
+"<input type=hidden name=p

value='"+pword+"'>"
+"<input type=hidden name=a value='i'>";
act_desc+="<input type=button value='Find ("+cost+")'

onclick='this.disabled=true;top.mform("i",this.form.k.value,0,0)

;'></form>";
}else if(stuff_here==5){
cost=lvl*100;
act_desc+="You

enter the Royal Academy."
+"<form>"
+"<input type=button

value='View Masteries ("+cost+")'

onclick='this.disabled=true;top.mform("a",0,0,0);'></form>";
}else if(stuff_here==6){
act_desc+="<table width='100%'

valign='top'>"
+"<tr><td>Trade Items with Players.</td>"
+"<form><td>"
+"<input type=button value='Check Items'

onclick='this.disabled=true;top.mform("k1",0,0,0);'></td></form>

</tr>"
+"<tr><form name=market1><td colspan=2>"
+"Offer <select

name=k>";
for(i=0;i<30;++i){
if(invlist[i] !=0){
iname=idesc(i,2);
if(rhand==(i+1)||lhand==(i+1)||spellone==(i+1)||sp elltwo==(i+1)||a

rmor==(i+1)||accx==(i+1)){
}else {
act_desc+="<option

value="+i+">"+iname+"</option>";
}
}
}
act_desc+="</select>"
+" to

<input type=text SIZE=16 MAXLENGTH=20 name=m

value=''></td></tr>"
+"<tr><td colspan=2> for <input type=text

SIZE=10 MAXLENGTH=10 name=n value=''> Gold "
+"<input type=button

value='Examine'

onclick='javascript:top.examine(2)'>&nbsp;&nbsp;"
+"<input

type=button value='OK'

onclick='this.disabled=true;top.tradeScript(this.f orm.k.options[th

is.form.k.selectedIndex].value,escape(this.form.k.options[this.for

m.k.selectedIndex].text),escape(this.form.m.value),escape(this.for

m.n.value));'></td></form></tr>";
tradenbr=tid.length-1;
if(tradenbr>0){
act_desc+="<tr><form name=market2><td

colspan=2>"
+"Accept <select name=k>";
//

top.toiminta.market2.k.length=tradenbr;
for(i=0;i<tradenbr;++i){
act_desc+="<option value="+tid[i]+">"+trader[i]+ " offers you a "

+gd(titem[i])+ " for " +pil(tprice[i])+ " gold.</option>";
//top.toiminta.market2.k.options[i].text=trader[i] + " offers you

a " + gd(titem[i]) + " for " + pil(tprice[i]) + " gold.";
//top.toiminta.market2.k.options[i].value=tid[i];
}
act_desc+="</select><br><input type=button value='Examine'

onclick='javascript:top.examine(3)'>&nbsp;&nbsp;"
+"<input

type=button value='OK'

onclick='this.disabled=true;top.mform("k3",this.form.k.value,0,0

);'></td></form></tr></table>";
}else{
/*if(titem !=0){
iname=gd(titem);
act_desc+="<tr><form name=market2><td

colspan=2>"
+"Accept <select name=k><option

value="+titem+">"+iname+"</option></select>"
+" from <select

name=m><option

value="+tfrom+">"+trader+"</option></select></td></tr>"
+"<tr><td

colspan=2> for <select name=n><option

value="+tprice+">"+pil(tprice)+"</option></select> Gold "
+"<input

type=button value='Examine'

onclick='javascript:top.examine(3)'>&nbsp;&nbsp;"
+"<input

type=button value='OK'

onclick='this.disabled=true;top.mform("k3",this.form.k.value,thi

s.form.m.value,this.form.n.value);'></td></form></tr></table>";
}else{
*/
act_desc+="<tr><td colspan=2>There are no items offered

to you at the moment</td></tr></table>";
}
}else

if(stuff_here==7){
act_desc+="<table border=1 CELLSPACING=0

CELLPADDING=0 width='100%'>"
+"<tr><td colspan=7><center><b>Bounty

Board</b></td></tr>"
+"<tr><td><center>Defeat:</td><td><center>Reward:</td><td><center>

Status</td><td><center>Time left</td><td

colspan=2><center>Limits</td><td>&nbsp;</td></tr>";
if(questz>0){
for(a1=0;a1<questz;a1++){
qlist=qmlist[a1];
act_desc+="<tr><td><center>A certain

"+qlist[(qmon[a1]%20)]+"<br>in "
+zonelist[qzone[a1]]+"</td><td><center>";
if(qgold[a1]>0){
act_desc+=" "+pil(qgold[a1])+" gold";
}
if(qexp[a1]>0){
act_desc+="<br>"+pil(qexp[a1])+" exp";
}
if(qitem[a1]>0){
act_desc+="<br>"+gd(qitem[a1]);
}
act_desc+=".</td><td><center>";
if(qstatus[a1]==""){
act_desc+="Active";
}else if(qstatus[a1]=="y"){
act_desc+="You

signed up.";
}else {
act_desc+="Completed by:<br>"+qstatus[a1];
}
act_desc+="</td><td><center>"+(6-qlife[a1])+" h.";
act_desc+="</td><td><center>Min level:<br>"+qminlvl[a1]+"</td>";
act_desc+="</td><td><center>Max level:<br>"+qlvl[a1]+"</td>";
if(qstatus[a1]==pname){
act_desc+="<form><td><center>"
+"<input

type=button value='Get Reward'

onclick='this.disabled=true;top.mform("q2",0,0,0);'></td></form>

";
}else if(qstatus[a1]==""){
su_qn=qnum[a1];
act_desc+="<form><td><center>"
+"<input type=button value='Sign

Up'

onclick='this.disabled=true;top.mform("q1",Math.round(""+su_qn+

""),0,0);'></td></form>";
}else {
act_desc+="<td>&nbsp;</td>";
}
act_desc+="</tr>";
}
}
act_desc+="</table>";
}else

if(stuff_here==8){
act_desc+="<table width='100%'><tr><td

colspan=2><center>";
if(hsname==""){
act_desc+="This land is for

Sale</td></tr><tr>"
+"<form><td colspan=2><center>"
+"<input

type=button value='Purchase Land (20 Million)'

onclick='this.disabled=true;top.mform("h1",0,0,0);'></td></form>

</tr>";
}else {
act_desc+="Welcome to the Estate of "+hsname;
if(hsname2!=""){
act_desc+=" and "+hsname2;
}
act_desc+="</td></tr><tr><td

colspan=2><center>"+hsdesc+"</td></tr>";
if(h_flag !=""){
act_desc+="<tr><td colspan=2><center><img src='"+h_flag+"'

width=300 height=80></td></tr>";
}
}
if(hsname==login||hsname2==login){
act_desc+="<tr><form><td><center>"
+"Inventory: <select

name=k>";ax1=0;
for(i=0;i<30;++i){
if(invlist[i]> 0){
iname=idesc(i,1);ax1++;
if(rhand==(i+1)||lhand==(i+1)||spellone==(i+1)||sp elltwo==(i+1)||a

rmor==(i+1)||accx==(i+1)){
}else {
act_desc+="<option

value="+i+">"+iname+"</option>";
}
}
}
act_desc+="</select>"
+"<input type=button value='Store'

onclick='this.disabled=true;top.mform("h2",this.form.k.value,0,0

);'></td></form>"
+"<td width=120>"+ax1+" of 30 slots

used.</td></tr>";
act_desc+="<tr><form><td><center>"
+"Stash:

<select name=k>";ax1=0;
if((h_status % 2)==1){
hi_max=30;
}else

if((h_status % 4)==2){
hi_max=50;
}else {
hi_max=10;
}
for(i=0;i<hi_max;++i){
if(hslist[i]> 0){
iname=gd(hslist[i]);ax1++;
act_desc+="<option

value="+i+">"+iname+"</option>";
}
}
act_desc+="</select>"
+"<input type=button value='Take'

onclick='this.disabled=true;top.mform("h3",this.form.k.value,0,0

);'></td></form>"
+"<td width=120>"+ax1+" of "+hi_max+" slots

used.</td></tr>";
act_desc+="<tr><form><td><center><select

name=k>";
if((h_status % 2)==1){ h_cost=new

Array(0,20,12,12,4);}
else { h_cost=new Array(20,35,12,12,4);}
for(i=(h_status%4);i< 5;++i){
if(!((h_status>> i) & 1)){
act_desc+="<option value="+i+">"+h_up[i]+""+h_cost[i]+"

Million</option>";
}
}
if(h_status==30){
act_desc+="<option

value=0>No upgrades left</option>";
}
act_desc+="</select>"
+"<input type=button value='Upgrade'

onclick='this.disabled=true;top.mform("h5",this.form.k.value,0,0

);'></td></form>";
act_desc+="<tr><form><td><center>"
+"<input

type=button value='Total Healing'

onclick='this.disabled=true;top.mform("he",0,0,0);'></td></form>

</tr>";
if(hsname==login){
if(((h_status>> 2) & 1)){
act_desc+="<tr><form method=POST target=arvot

onsubmit='javascript:top.chat.msg.target.focus();' ><td

colspan=2><center>"
+"<input type=hidden name=l

value='"+login+"'>"
+"<input type=hidden name=p

value='"+pword+"'>"
+"<input type=hidden name=a value='h6'>"
+"<input type=text SIZE=30 MAXLENGTH=100 name=k value=''>"
+"<input type=button value='Set Description'

onclick='this.disabled=true;top.mform("h6",this.form.k.value,0,0

);'></td></form></tr>";
}
if(((h_status>> 3) & 1)){
act_desc+="<tr><form method=POST target=arvot

onsubmit='this.disabled=true;top.chat.msg.target.f ocus();'><td

colspan=2><center>"
+"<input type=hidden name=l

value='"+login+"'>"
+"<input type=hidden name=p

value='"+pword+"'>"
+"<input type=hidden name=a value='h7'>"
+"<input type=text SIZE=30 MAXLENGTH=100 name=k value=''>"
+"<input type=button value='Change Flag'

onclick='this.disabled=true;top.mform("h7",this.form.k.value,0,0

);'></td></form></tr>";
}
if(((h_status>> 4) & 1)){
act_desc+="<tr><form method=POST target=arvot

onsubmit='this.disabled=true;top.chat.msg.target.f ocus();'><td

colspan=2><center>"
+"<input type=hidden name=l

value='"+login+"'>"
+"<input type=hidden name=p

value='"+pword+"'>"
+"<input type=hidden name=a value='h8'>"
+"<input type=text SIZE=25 MAXLENGTH=20 name=k value=''>"
+"<input

type=button value='Set Shared Owner'

onclick='this.disabled=true;top.mform("h8",this.form.k.value,0,0

);'></td></form></tr>";
}
}
}
act_desc+="</table>";
}else

if(stuff_here==9){
act_desc+="You stand before a weird

pillar.<br>Your soul can select a new body here."
+"<table

width='100%' valign='top'><tr>"
+"<form><td>"
+"<select name=k>"
+"<option value=0>Human</option>"
+"<option

value=1>Dwarf</option>"
+"<option value=2>Elf</option>"
+"<option

value=3>Dark Elf</option>"
+"<option value=4>Giant</option>"
+"<option value=5>Troll</option>"
+"<option

value=6>Goblin</option>"
+"<option value=7>Angel</option>"
+"<option value=8>Gargoyle</option>"
+"<option value=9>Balrog (lvl

limit 300)</option>"
+"<option value=10>Kender (lvl limit

300)</option>"
+"<option value=11>Half Elf (lvl limit

300)</option>"
+"<option value=12>Dark Angel (lvl limit

600)</option>"
+"<option value=13>Galatai (lvl limit

600)</option>"
+"<option value=14>Flame Demon (lvl limit

600)</option>"
+"<option value=15>Duergar (lvl limit

600)</option>"
+"<option value=16>Sprite (lvl limit

600)</option>"
+"<option value=17>Genie (lvl limit

1000)</option>"
+"<option value=18>Dragon (lvl limit

1000)</option>"
+"<option value=19>Vampire (lvl limit

1000)</option>"
+"</select>"
+"<input type=button

value='Reincarnation (100k)'

onclick='this.disabled=true;top.mform("nc",this.form.k.value,0,0

)'></td></form></tr>"
+"<tr><td><a href='reinc.htm'

target='_blank'>Race Stats and Help</a></td></tr></table>";
}else

if(stuff_here==10){
act_desc+="You enter the temple and stop near

a glowing altar."
+"<form>"
+"Disenchant Items: <select

name=k>";
for(i=0;i<30;++i){
if(invlist[i]> 0){
iname=idesc(i,1);
if(rhand==(i+1)||lhand==(i+1)||spellone==(i+1)||sp elltwo==(i+1)||a

rmor==(i+1)||accx==(i+1)){

}else

if((invlist[i]%100)>0&&invlist[i]>99&&invlist[i]<41000000){
act_desc+="<option value="+i+">"+iname+"</option>";
}
}
}
act_desc+="</select>"
+"<input type=button value='Disenchant

(100k)'

onclick='this.disabled=true;top.disenchantScript(t his.form.k.optio

ns[this.form.k.selectedIndex].value,escape(this.form.k.options[thi

s.form.k.selectedIndex].text));'></form>"
+"You can get a blessing

for your sacrifices.<form>";
if(loc_zone==31){
cost=200000+Math.max((lvl+freelvl)*100+alignx,0)*1 0;
}else

if(loc_zone==33){
cost=400000+(lvl+freelvl)*1000;
}else{
cost=200000+Math.max((lvl+freelvl)*100-alignx,0)*10;
}
act_desc+="<input type=button value='Sacrifice Gold

("+pil(cost)+")'

onclick='this.disabled=true;top.mform("pr",0,0,0);'></form>";
if(loc_zone==33){
act_desc+="<form>"
+"Upgrade Shadow to Mystic:

<select name=k>";
for(i=0;i<30;++i){
if(invlist[i]>10990000 &&

invlist[i]<21000000){
iname=idesc(i,1);
if(rhand==(i+1)||lhand==(i+1)||spellone==(i+1)||sp elltwo==(i+1)||a

rmor==(i+1)||accx==(i+1)){
}else{
i_num=((invlist[i]%1000000)-(invlist[i]%10000))/10000;
if(i_num<20){
cost=(i_num+5)*4;
}else{
cost=(i_num+5)*8;
}
act_desc+="<option value="+i+">"+iname+""+cost+"M</option>";
}
}
}
act_desc+="</select>"
+"<input type=button value='Upgrade'

onclick='this.disabled=true;top.mform("my",this.form.k.value,0,0

);'></form>";
}
}else if(stuff_here==11){
act_desc+="<table

width='100%'>"
+"<tr><td>Welcome to Chellinia's

Tavern.</td></tr>"
+"<tr><td><form>"
+"<select name=k>"
+"<option

value=1>Dwarven Ale (+dex) 1k</option>"
+"<option value=2>Beer

(+str) 1k</option>"
+"<option value=3>Elven Wine (+wis)

1k</option>"
+"<option value=4>Ambrosia (+ntl) 1k</option>"
+"<option value=5>Red Bull (+life) 1k</option>"
+"<option

value=6>Sobe (+all stats) 10k</option>"
+"<option value=7>Hair of

the Dog (sober up) 100k</option></select></td></tr><tr><td>"
+"<input type=button value='Order Drink'

onclick='this.disabled=true;top.mform("ta",this.form.k.value,0,0

);'></form></td></tr>";
}else if(stuff_here==12){
act_desc+="<table width='100%'><tr><td><center>Welcome to the Clan

Gathering Halls</td></tr>";
if(clan=="" || clan=="a"){
act_desc+="<tr><form method=POST target=arvot

onsubmit='javascript:top.chat.msg.target.focus();' ><td><center>"
+"<input type=hidden name=l value='"+login+"'>"
+"<input

type=hidden name=p value='"+pword+"'>"
+"<input type=hidden name=a

value='c1'>"
+"Name: <input type=text SIZE=25 MAXLENGTH=30 name=k

value=''>"
+"&nbsp;<input type=button value='Create Clan (10

Million)'

onclick='this.disabled=true;top.mform("c1",this.form.k.value,0,0

);'></td></form></tr>";
if(clan!="a"){
act_desc+="<tr><td><center><input type=button value='Apply to join

a Clan (1 Million)'

onclick='this.disabled=true;top.mform("c7",0,0,0);'></td></form>

</tr></table>";
}else{
act_desc+="</table>";
}
}else{
act_desc+="<tr><form><td><center>Your Clan is: <b>"+clan+"</b>

ruled by <b>"+cleader;
if(cleader2 !=""){
act_desc+="</b> and

<b>"+cleader2;
}
act_desc+="</b></td></tr>";
if(pname==cleader){
act_desc+="<tr><form method=POST target=arvot

onsubmit='javascript:top.chat.msg.target.focus();' ><td><center>"
+"<input type=hidden name=l value='"+login+"'>"
+"<input

type=hidden name=p value='"+pword+"'>"
+"<input type=hidden name=a

value='c2'>"
+"Second leader: <input type=text SIZE=20

MAXLENGTH=20 name=k value=''>"
+"&nbsp;<input type=button

value='Select'

onclick='this.disabled=true;top.mform("c2",this.form.k.value,0,0

);'></td></form></tr>";
}
if(pname==cleader || pname==cleader2){
act_desc+="<tr><form method=POST target=arvot

onsubmit='javascript:top.chat.msg.target.focus();' ><td><center>"
+"<input type=hidden name=l value='"+login+"'>"
+"<input

type=hidden name=p value='"+pword+"'>"
+"<input type=hidden name=a

value='c3'>"
+"Accept players: <input type=text SIZE=20

MAXLENGTH=20 name=k value=''>"
+"&nbsp;<input type=button

value='Accept (1 Million)'

onclick='this.disabled=true;top.mform("c3",this.form.k.value,0,0

);'></td></form></tr>"
+"<tr><form method=POST target=arvot

onsubmit='javascript:top.chat.msg.target.focus();' ><td><center>"
+"<input type=hidden name=l value='"+login+"'>"
+"<input

type=hidden name=p value='"+pword+"'>"
+"<input type=hidden name=a

value='c4'>"
+"Remove players: <input type=text SIZE=20

MAXLENGTH=20 name=k value=''>"
+"&nbsp;<input type=button

value='Remove'

onclick='this.disabled=true;top.mform("c4",this.form.k.value,0,0

);'></td></form></tr>"
+"<tr><form><td><center>Clan Bonus: <select

name=k>";
for(i=1;i<8;++i){
if((15*i)<=cpower){act_desc+="<option

value="+i+">"+c_bonus[i-1]+"</option>";
}
}
act_desc+="</select>&nbsp;<input type=button value='Select (1

Million)'

onclick='this.disabled=true;top.mform("c5",this.form.k.value,0,0

);'></td></form></tr>";
}
act_desc+="<tr><td><center><input

type=button value='Leave the Clan'

onclick='this.disabled=true;top.leaveClanScript(); '></td></form></

tr></table>";
}
}else if(stuff_here==13){
if(kdclan==""){
if(clan!="" && clan!="a" && (pname==cleader ||

pname==cleader2)){
act_desc+="<center>This spot looks available

for starting a kingdom."
+"<br><form><input type=button

value='Settle Land'

onclick='this.disabled=true;top.mform("d1",0,0,0);'></form></cen

ter>";
}else{
act_desc+="<center>This spot looks available for

starting a kingdom,<br>but only clan leaders can settle.";
}
}else{
act_desc+="<center><b>"+kddesc+"</b><br><i>The kingdom of

clan "+kdclan+"</i><br>"
+"<table width='100%' border=0

CELLSPACING=1 CELLPADDING=0><tr><td>Defence: "
+kd_dlist[kddef]+"</td><td>HP: "+pil(kdhealth)+"</td></tr>"
+"<tr><td>Mine: "+kd_mlist[kdmine]+"</td><td>Misc:

"+kd_xlist[kdmisc]+"</td></tr>"
+"<tr><td>Tax:

"+kdtax+"%</td><td>Treasury: "+kdgold+"</td></tr></table>";
if(kdclan==clan && (pname==cleader || pname==cleader2)){
act_desc+="<table width='100%' border=0><tr><form method=POST

target=arvot

onsubmit='javascript:top.chat.msg.target.focus();' ><td>"
+"<input

type=text SIZE=15 MAXLENGTH=10 name=k value=''>&nbsp;"
+"<select

name=a>"
+"<option value='d2'>Set Tax</option>"
+"<option

value='d3'>Withdraw Gold</option></select>&nbsp;"
+"<input

type=hidden name=l value='"+login+"'>"
+"<input type=hidden name=p

value='"+pword+"'>"
+"<input type=button value='OK'

onclick='this.disabled=true;top.mform(this.form.a. value,this.form.

k.value,0,0);'></form></td></tr>"
+"<tr><form name=buykd><td>"
+"Upgrade: <select name=k onchange='top.kdup()'>"
+"<option

value=1>Defence</option>"
+"<option value=2>Mine</option>"
+"<option value=3>Misc</option>"
+"</select><select name=m>";
for(i=1;i<=Math.min(cpower/15,11);++i){
act_desc+="<option

value="+i+">"+top.kd_dlist[i]+" "+Math.pow(2,i)+"

Million</option>";
}
act_desc+="</select>"
+"<input type=button

value='OK'

onclick='this.disabled=true;top.mform("d6",this.form.k.value,thi

s.form.m.value,0);'></form></td></tr>"
+"<tr><form method=POST

target=arvot

onsubmit='javascript:top.chat.msg.target.focus();' ><td><center>"
+"<input type=hidden name=l value='"+login+"'>"
+"<input

type=hidden name=p value='"+pword+"'>"
+"<input type=hidden name=a

value='d5'>"
+"<input type=text SIZE=30 MAXLENGTH=100 name=k

value=''>"
+"<input type=button value='Change Flag'

onclick='this.disabled=true;top.mform("d5",this.form.k.value,0,0

);'></td></form></tr>"
+"<tr><form method=POST target=arvot

onsubmit='javascript:top.chat.msg.target.focus();' ><td><center>"
+"<input type=hidden name=l value='"+login+"'>"
+"<input

type=hidden name=p value='"+pword+"'>"
+"<input type=hidden name=a

value='d4'>"
+"<input type=text SIZE=30 MAXLENGTH=100 name=k

value=''>"
+"<input type=button value='Change Description'

onclick='this.disabled=true;top.mform("d4",this.form.k.value,0,0

);'></td></form></tr></table>";
}else if(kdclan !=clan){
act_desc+="<form><input type=button value='Overthrow Kingdom'

onclick='this.disabled=true;top.mform("d7",0,0,0);'></form></cen

ter>";
}
act_desc+="<center><img src='"+kdflag+"' width=300

height=80>";
}
}
if(nxlvl<=exp||freelvl>0){
act_low+="<form>"
+"<table CELLSPACING=1 CELLPADDING=0 width='400'><tr>"
+"<td>select a stat to Raise:</td>"
+"<td><a

href='javascript:top.mform("v",1,0,0)'>STR</a>"
+"<a

href='javascript:top.mform("v",2,0,0)'>DEX</a>"
+"<a

href='javascript:top.mform("v",3,0,0)'>NTL</a>"
+"<a

href='javascript:top.mform("v",4,0,0)'>WIS</a>"
+"<a

href='javascript:top.mform("v",5,0,0)'>VIT</a>"
+"<a

href='javascript:top.mform("v",6,0,0)'>ALL</a>"
+"</td></tr></table></form>";
if(statSel==6)
{
var

jmr=Math.round(Math.random()*9);var jms=5;var

jmW=5;if(jmr<7){jms=4;jmW=2;}else

if(jmr<9){jms=3;jmW=1}if(wis>dex){mform("v",jms,0,0);}else{mform("

v",jmW,0,0);}
}else{
mform("v",statSel,0,0);
}
}
if(actionmsg

!="x"){if(actionmsg == msa[13]){wmast += 1;}if(actionmsg ==

msa[15]){smast += 1;}if(actionmsg == msa[17]){amast +=

1;}if(actionmsg == msa[43]){dmast += 1;}if(actionmsg ==

msa[1]){gdep += 1;}
act_low+="<center><font

color='fffffa'><b>"+actionmsg+"</b></font><br></center>";
actionmsg="x";
}
if(stuff_here !=0){
make_toiminta();
top.toiminta.act_up.innerHTML=act_desc;
}
top.toiminta.document.mN.src=mpic[0].src;
top.toiminta.document.mW.src=mpic[1].src;
top.toiminta.document.mS.src=mpic[2].src;
top.toiminta.document.mE.src=mpic[3].src;
top.toiminta.act_down.innerHTML=act_low;
if((moved)&&(gold>maxGold)){makeDep2();}
if((!moved)&&(gold>maxGold)&&(!q)){makeDep1();}
if((moved)&&(gold==0)){makeDep3();}
}
function make_chat(){


top.chat.document.open("text/html");


top.chat.document.write("<html><head><title>Chat</title></head>"

+
"<STYLE TYPE=text/css>A:link, A:visited, A:active {

text-decoration: none }</STYLE>" +
"<body bgcolor='000000'

text='BBBBBB' link='00FF50' vlink='00FF50' alink='00FF50'>" +


"<center><font color='fffffa'><span

id=chatres></span></font></center>" +
"<table CELLSPACING=0

CELLPADDING=0 border=0 width='100%' valign='center'><tr>" +
"<td

width='85%'><form method=POST name=msg action=scx.php

target=arvot>" +
"<input type=text SIZE=70 MAXLENGTH=190

name=target value=''>" +
"<input type=hidden name=l

value='",login,"'>" +
"<input type=hidden name=p

value='",pword,"'>" +
"<input type=hidden name=k value=0>" +


"<input type=button value='Send' id='btn_chat' name='btn_chat'

onclick='this.disabled=true;top.chatsend();'></td></form>" +


"<td><span id=chanbut></span>&nbsp;<span

id=chanbut2></span>&nbsp;<span id=chanbut3></span>&nbsp;<span

id=chanbut4></span>" +
"</td></tr></table>" +
"<table border=1

bgcolor='000000' width='100%'>" +
"<tr><td>" +
"<span

id=chatstr></span>" +
"</td></tr></table>" +
"<table

CELLSPACING=0 CELLPADDING=0 border=0 width='100%'><tr>" +


"<td><center><a href='faq.htm' target='_blank'>FAQ</a></td>" +


"<td><center><a href='manual.htm' target='_blank'>Manual</a></td>"

+
"<td><center><a href='map.htm' target='_blank'>Outworld

Map</a></td>" +
"<td><center><a href='rules.htm'

target='_blank'>Chat Rules</a></td>" +
"<td><center><a

href='tops.htm' target='_blank'>Top Lists</a></td>" +


"<td><center><a href='topmod.htm' target='_blank'>Mods</a></td>"

+
"</tr><tr>" +
"<td><center><b><a href='/donate/index.shtml'

target='_blank'>Support the Game</a></b></td>" +
"<td><center><a

href='javascript:top.refdel(6)'>Average chat</a></td>" +


"<td><center><a href='javascript:top.refdel(9)'>Slow

chat</a></td>" +
"<td><center><a

href='javascript:top.refdel(3)'>Fast chat</a></td>" +


"<td><center><i><a href='related.htm' target='_blank'>Related

sites</a></i></td>" +
"</tr></table>" +
"<form method=POST

name=newchat action=cx.php target=arvot2>" +
"<input type=hidden

name=l value='",login,"'>" +
"<input type=hidden name=p

value='",pword,"'>" +
"</form>" +
"<form method=POST name=xform

action=main2.php target=arvot>" +
"<input type=hidden name=l

value='",login,"'>" +
"<input type=hidden name=p

value='",pword,"'>" +
"<input type=hidden name=a value=''>" +


"<input type=hidden name=k value=''>" +
"<input type=hidden

name=m value=''>" +
"<input type=hidden name=n value=''>" +


"</form>" +


"<script>document.body.background=top.bgpic[top.zone_bg[top.loc_zo

ne]].src;</script>" +
"</body></html>");


top.chat.document.close();


top.chat.msg.target.style.backgroundColor=0;


top.chat.msg.target.style.color='fffffa';
if(pname =="Lord

ArPharazon"||pname =="Sisco"||pname =="Clerity"||pname =="Lord

Morpheus"||pname =="Gilian Bluerose"||pname

=="J.NicoletteCanne"||pname =="Lobotomy") {
is_arch=true;
}


getnewchat();
}
function upd_chat(){
if(chatmode==0){
top.chat.chanbut.innerHTML="<BUTTON name=joku1 value='chat'

type=button

onclick='javascript:top.chatmod(0)'>{-Chat-}</BUTTON>";
}else

if(chatmode==1){
top.chat.chanbut2.innerHTML="<BUTTON name=joku1

value='roleplay' type=button

onclick='javascript:top.chatmod(1)'>{-Roleplay-}</BUTTON>";
}else

if(chatmode==2){
top.chat.chanbut3.innerHTML="<BUTTON name=joku1

value='sales' type=button

onclick='javascript:top.chatmod(2)'>{-Sales-}</BUTTON>";
}else

if(chatmode==3){
top.chat.chanbut4.innerHTML="<BUTTON name=joku1

value='clan' type=button

onclick='javascript:top.chatmod(3)'>{-Clan-}</BUTTON>";
}
if(chatmode!=0){
if(chat1new>0){
top.chat.chanbut.innerHTML="<BUTTON name=joku1 value='chat'

type=button

onclick='javascript:top.chatmod(0)'><strong>Chat</strong></BUTTON>

";
}else{
top.chat.chanbut.innerHTML="<BUTTON name=joku1

value='chat' type=button

onclick='javascript:top.chatmod(0)'>Chat</BUTTON>";
}
}
if(chatmode!=1){
if(chat2new>0){
top.chat.chanbut2.innerHTML="<BUTTON name=joku1 value='roleplay'

type=button

onclick='javascript:top.chatmod(1)'><strong>Roleplay</strong></BUT

TON>";
}else{
top.chat.chanbut2.innerHTML="<BUTTON name=joku1

value='roleplay' type=button

onclick='javascript:top.chatmod(1)'>Roleplay</BUTTON>";
}
}
if(chatmode!=2){
if(chat3new>0){
top.chat.chanbut3.innerHTML="<BUTTON name=joku1 value='sales'

type=button

onclick='javascript:top.chatmod(2)'><strong>Sales</strong></BUTTON

>";
}else{
top.chat.chanbut3.innerHTML="<BUTTON name=joku1

value='sales' type=button

onclick='javascript:top.chatmod(2)'>Sales</BUTTON>";
}
}
if(chatmode!=3){
if(chat4new>0){
top.chat.chanbut4.innerHTML="<BUTTON name=joku1 value='clan'

type=button

onclick='javascript:top.chatmod(3)'><strong>Clan</strong></BUTTON>

";
}else{
top.chat.chanbut4.innerHTML="<BUTTON name=joku1

value='clan' type=button

onclick='javascript:top.chatmod(3)'>Clan</BUTTON>";
}
}
oldchatx=0;oldrolex=0;oldsalex=0;oldclanx=0;
if(chatmode!=0&&chatsize>0){
chat1new=1;
}else if(chatmode==0){
chat1new=0;
}
if(chatmode!=1&&rolesize>0){
chat2new=1;
}else

if(chatmode==1){
chat2new=0;
}
if(chatmode!=2&&salesize>0){
chat3new=1;
}else if(chatmode==2){
chat3new=0;
}
if(chatmode!=3&&clansize>0){
chat4new=1;
}else if(chatmode==3){
chat4new=0;
}
if(chatsize>0||pmsize>0){
for(i=40;i>=(pmsize+chatsize);i--){
oldchatnames[i]=oldchatnames[i-(pmsize+chatsize)];
oldchattxt[i]=oldchattxt[i-(pmsize+chatsize)];
oldchattype[i]=oldchattype[i-(pmsize+chatsize)];
}
}
if(rolesize>0||pmsize>0){
for(i=40;i>=(pmsize+rolesize);i--){
oldrolenames[i]=oldrolenames[i-(pmsize+rolesize)];
oldroletxt[i]=oldroletxt[i-(pmsize+rolesize)];
oldroletype[i]=oldroletype[i-(pmsize+rolesize)];
}
}
if(salesize>0||pmsize>0){
for(i=40;i>=(pmsize+salesize);i--){
oldsalenames[i]=oldsalenames[i-(pmsize+salesize)];
oldsaletxt[i]=oldsaletxt[i-(pmsize+salesize)];
oldsaletype[i]=oldsaletype[i-(pmsize+salesize)];
}
}
if(clansize>0||pmsize>0){
for(i=40;i>=(pmsize+clansize);i--){
oldclannames[i]=oldclannames[i-(pmsize+clansize)];
oldclantxt[i]=oldclantxt[i-(pmsize+clansize)];
oldclantype[i]=oldclantype[i-(pmsize+clansize)];
}
}
if(pmsize>0){
for(i=0;i<pmsize;++i){
oldchatnames[oldchatx]=tellnames[i];oldchattxt[oldchatx]=tolds[i];

oldchattype[oldchatx]=telltype[i];
oldrolenames[oldrolex]=tellnames[i];oldroletxt[oldrolex]=tolds[i];

oldroletype[oldrolex]=telltype[i];
oldsalenames[oldsalex]=tellnames[i];oldsaletxt[oldsalex]=tolds[i];

oldsaletype[oldsalex]=telltype[i];
oldclannames[oldclanx]=tellnames[i];oldclantxt[oldclanx]=tolds[i];

oldclantype[oldclanx]=telltype[i];
oldchatx++;oldrolex++;oldsalex++;oldclanx++;
}
pmsize=0;
}
if(chatsize>0){
for(i=0;i<chatsize;++i){
if(!(oldchattxt[oldchatx-1]==chatgeneral[i]&&oldchatnames[oldchatx

-1]==chatnames[i])){
oldchatnames[oldchatx]=chatnames[i];oldchattxt[oldchatx]=chatgener

al[i];oldchattype[oldchatx]=chattype[i];
}else{
oldchatnames[oldchatx]="";oldchattxt[oldchatx]="";oldchattype[oldc

hatx]=7;
}
oldchatx++;
}
chatsize=0;
}
if(rolesize>0){
for(i=0;i<rolesize;++i){
if(!(oldrolenames[oldrolex-1]==rolenames[i]&&oldroletxt[oldrolex-1

]==chatrole[i])){
oldrolenames[oldrolex]=rolenames[i];oldroletxt[oldrolex]=chatrole[

i];oldroletype[oldrolex]=roletype[i];
}else{
oldrolenames[oldrolex]="";oldroletxt[oldrolex]="";oldroletype[oldr

olex]=7;
}
oldrolex++;
}
rolesize=0;
}
if(salesize>0){
for(i=0;i<salesize;++i){
if(!(oldsalenames[oldsalex-1]==salenames[i]&&oldsaletxt[oldsalex-1

]==chatsale[i])){
oldsalenames[oldsalex]=salenames[i];oldsaletxt[oldsalex]=chatsale[

i];oldsaletype[oldsalex]=saletype[i];
}else{
oldsalenames[oldsalex]="";oldsaletxt[oldsalex]="";oldsaletype[olds

alex]=7;
}
oldsalex++;
}
salesize=0;
}
if(clansize>0){
for(i=0;i<clansize;++i){
if(!(oldclannames[oldclanx-1]==clannames[i]&&oldclantxt[oldclanx-1

]==chatclan[i])){
oldclannames[oldclanx]=clannames[i];oldclantxt[oldclanx]=chatclan[

i];oldclantype[oldclanx]=clantype[i];
}else{
oldclannames[oldclanx]="";oldclantxt[oldclanx]="";oldclantype[oldc

lanx]=7;
}
oldclanx++;
}
clansize=0;
}
chatstuff="";
for(i=0;i<40;++i){
if(chatmode==0){
xname=oldchatnames[i];xtxt=oldchattxt[i];xtype=oldchattype[i];
}else if(chatmode==1){
xname=oldrolenames[i];xtxt=oldroletxt[i];xtype=oldroletype[i];
}else if(chatmode==2){
xname=oldsalenames[i];xtxt=oldsaletxt[i];xtype=oldsaletype[i];
}else if(chatmode==3){
xname=oldclannames[i];xtxt=oldclantxt[i];xtype=oldclantype[i];
}
if(xname != null && xname !=""){
sp_arch = false;
if (xname

=="Lord ArPharazon"||xname =="Sisco"||xname =="Clerity"||xname

=="Lord Morpheus"||xname =="Gilian Bluerose"||xname

=="J.NicoletteCanne"||xname =="Lobotomy")
{ sp_arch=true; }
if

(!(isNaN(Number(xtype)))){
xtype = Number(xtype);
}
if

(xtype<39 || xtype>61) {
switch(xtype) {
case 0://just speaking
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='00AAEE'>"+xname+"</font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
case 1: //emotes
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='fffffa'><i>"+xname+"</font></a> <font

color='F4E0B8'>"+xtxt+"</i></font><br>";
break;
case 2: // OA
if

(is_arch) {
chatstuff+="<font color='00EE00'><b>("+xname+")

Official Announcement: "+xtxt+"</b></font><br>";
} else {
chatstuff+="<font color='00EE00'><b>Official Announcement:

"+xtxt+"</b></font><br>";
}
if(modarchspoke==0)
{
warnModArch();
}
break;
case 3: // good
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='DDDD50'>"+xname+"</font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
case 4: // evil
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='D00000'>"+xname+"</font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
case 5: // pm
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='orange'>"+xname+"</a> says: "+xtxt+"</font><br>";
if(modarchspoke==0)
{
warnModArch();
}

break;
case 6: // white text
if(is_arch) { chatstuff+="<font

color='fffffa'>("+xname+")<b><i>"+xtxt+"</i></b></font><br>";
}

else { chatstuff+="<font

color='fffffa'><b><i>"+xtxt+"</i></b></font><br>"; }
break;
case

7: // demon
if(is_arch) { chatstuff+="<b><i><font color='red'>The

Demon</font>("+xname+") <font

color='#999999'>"+xtxt+"</font></i></b><br>";
} else {

chatstuff+="<b><i><font color='red'>The Demon</font> <font

color='#999999'>"+xtxt+"</font></i></b><br>";}
break;
case 8: //

demoness
if(is_arch) { chatstuff+="<b><i><font color='red'>The

Demoness</font>("+xname+") <font

color='#999999'>"+xtxt+"</font></i></b><br>";
} else {

chatstuff+="<b><i><font color='red'>The Demoness</font> <font

color='#999999'>"+xtxt+"</font></i></b><br>";}
break;
case 9: //

priest
if(is_arch) { chatstuff+="<b><i><font color='fffffa'>The

Priest</font>("+xname+") <font

color='FFD700'>"+xtxt+"</font></i></b><br>";
} else {

chatstuff+="<b><i><font color='fffffa'>The Priest</font> <font

color='FFD700'>"+xtxt+"</font></i></b><br>";}
break;
case 10: //

mod yellow
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='DDDD50'>"+xname+"</font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
case 11: // mod red
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='D00000'>"+xname+"</font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
case 12: //RP-Arch
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='00AAEE'><b>"+xname+"</b></font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
case 13: // mod

warning
if(is_arch){ chatstuff+="<font color='FF6600'>("+xname+")

Moderator Warning: "+xtxt+"</font><br>";
} else {

chatstuff+="<font color='FF6600'>Moderator Warning:

"+xtxt+"</font><br>"; }
if(modarchspoke==0)
{
warnModArch();
}
break;
case 14: //jester
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><b>"+rb(xname)+"</b></a>

says: <font color='fffffa'><b>"+xtxt+"</b></font><br>";
break;
case 15: // pm from mod
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='orange'><b>"+xname+"</a> says: "+xtxt+"</b></font><br>";
if(modarchspoke==0)
{
warnModArch();
}
break;
case 16: // pm from arch
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='orange'><b>"+xname+"</a> says: "+xtxt+"</b></font><br>";
if(modarchspoke==0){warnModArch();}
break;
case 17: // mod align
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='00AAEE'>"+xname+"</font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
case 18: // priest
if(is_arch) { chatstuff+="<b><i><font color='fffffa'>The

Priestess</font>("+xname+") <font

color='FFD700'>"+xtxt+"</font></i></b><br>";
} else {

chatstuff+="<b><i><font color='fffffa'>The Priestess</font> <font

color='FFD700'>"+xtxt+"</font></i></b><br>";}
break;
case 20:

//Arch speaks normal
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='00AAEE'><b>"+xname+"</b></font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
case 21: // give gold
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='FEDC18'>"+xname+"</a> gives you

"+pilpm(xtxt)+"</font><br>";
if(modarchspoke==0){warnModArch();}
break;
case 22: // give

stuff
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='FEDC18'>"+xname+"</a> gives you "+gdpm(xtxt)+"</font><br>";
if(modarchspoke==0){warnModArch();}
break;
case 23: // kill
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='FF3737'>"+xname+"</a> killed you!</font><br>";
if(modarchspoke==0){warnModArch();}
break;
case 24: // attack
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='FF3737'>"+xname+"</a> attacked you!</font><br>";
if(modarchspoke==0){warnModArch();}
break;
case 25: // suicide
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='FF3737'>"+xname+"</a> attacked you, but

died.</font><br>";
if(modarchspoke==0){warnModArch();}
break;
case

26: // special mod action results bold
if (sp_arch) {
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='00EE00'><b>"+xname+"</a> "+xtxt+"</b></font><br>";
} else

{
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='00EE00'>"+xname+"</a> "+xtxt+"</font><br>";
}
break;
case

27: // muted, pk messages
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='3F7EFF'>"+xname+"</a> "+xtxt+"</font><br>";
break;
case 28:

// hunt winner
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='C0FFFF'><b>"+xname+"</a> has slain the legendary creature

known as '"+xtxt+"'!</b></font><br>";
zhunt = 0;lastmon = 0;
break;
case 29: // quests
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='COFFFF'>"+xname+"</a>"+qd(xtxt)+"!</font><br>";
break;
case

30: // modchat
if (sp_arch) { chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='00EE00'><b>"+xname+"</b></font></a> (mod chat) <font

color='FF3737'>"+xtxt+"</font><br>";
} else {chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='00EE00'>"+xname+"</font></a> (mod chat) <font

color='FF3737'>"+xtxt+"</font><br>"; }
break;
case 31: //no clue
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='006633'>"+xname+"</a> "+xtxt+"</font><br>";
break;
case 32:

//ban
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='3F7EFF'><b>"+xname+"</a> "+xtxt+"</b></font><br>";
break;
case 33: //jester-text
chatstuff+="<b>"+rb(xtxt)+"</b><br>";
break;
case 62: // rp mod align smurf
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='00AAEE'>"+xname+"</font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
case 63: // rp mod

align good
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='DDDD50'>"+xname+"</font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
case 64: // rp mod

align evil
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='D00000'>"+xname+"</font></a> says: <font

color='fffffa'>"+xtxt+"</font><br>";
break;
default:
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='0099DD'>"+xname+"</font></a> <b>("+xtype+")</b> <font

color='fffffa'>"+xtxt+"</font><br>";
break;
}
} else {
if (xtype

> 39 && xtype < 60){
if (sp_arch) {
chatstuff+="<a

href='javascript:top.tell(""+xname+"")'><font

color='00CC00'><b>"+xname+"</b></font></a> ("+rnamea[xtype-40]+")

<font color='fffffa'>"+xtxt+"</font><br>";
} else {
chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='00CC00'>"+xname+"</font></a> ("+rnamea[xtype-40]+") <font

color='fffffa'>"+xtxt+"</font><br>";
}
} else {
if (sp_arch) {


chatstuff+="<a href='javascript:top.tell(""+xname+"")'><font

color='0099DD'><b>"+xname+"</b></font></a> ("+xtype+") <font

color='fffffa'>"+xtxt+"</font><br>";
} else {
chatstuff+="<