Closed Thread Icon

Topic awaiting preservation: i think this is more advanced stuff (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=24158" title="Pages that link to Topic awaiting preservation: i think this is more advanced stuff (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: i think this is more advanced stuff <span class="small">(Page 1 of 1)</span>\

 
slypher
Obsessive-Compulsive (I) Inmate

From: good question,where am i?
Insane since: Nov 2004

posted posted 11-23-2004 17:15

im not sure if i should post it here,but i need help,ive been improving upon a code for an RPG hack for my IPB,all i get is this stupid "loading" screen,help please?

heres the code

code:
<script>
// RPG Inferno v1.5 - Leave Copyright Intact Wherever Used
// Created For Invision Free
// Author: Zero Tolerance © Game Zone | Evolution 2004 [http://gzevolution.net]

MoneyName = "gold"
MoneyPerThread = 10
MoneyPerPoll = 10
MoneyPerReply = 5
MoneyPerQuote = 5
CardPackCost = 200
CardPackContain= 10

// Skill Point System
SkillPointAward = 20 // Amount of skill points awarded to player upon leveling up
SkillToHP = 6 // 6 HP Points Given For 1 Skill Point
SkillToMP = 6 // 6 HP Points Given For 1 Skill Point
SkillToSTR = 3 // 3 STR Points Given For 1 Skill Point
SkillToDEF = 3 // 3 DEF Points Given For 1 Skill Point

Class = []
Class[Class.length] = ["Rogue"]
Class[Class.length] = ["Mage"]
Class[Class.length] = ["swordsman"]
Class[Class.length] = ["long arm"]
Class[Class.length] = ["twin blade"]
Class[Class.length] = ["axeman"]





swordsman = 0
Rogue = 1
Mage = 2
long arm = 3
twin blade = 4
axeman = 5



// Warrior Items
Items[Items.length] = [swordsman,"http://67.18.37.15/1183/88/upload/p4096211.gif","Dagger",100,"Basic Weapon For Combat",0,[0,0,3,0],swordsman,"http://img.photobucket.com/albums/v476/bonesbora/RPG%20inferno%20items/dragonslayer.gif","long sword",200,"a sword thats pretty long"]

// Rogue Items
Items[Items.length] = [Rogue,"http://67.18.37.15/1183/88/upload/p4096216.gif","Short Bow",80,"Old Worn Bow",0,[0,0,2,1]]

// Mage Items
Items[Items.length] = [Mage,"http://67.18.37.15/1183/88/upload/p4096220.gif","Staff",80,"Basic Combat Staff",0,[0,1,1,0]]

// long arm items
Items[Items.length] = [long arm,"http://img.photobucket.com/albums/v476/bonesbora/RPG%20inferno%20items/halberd.gif",halbred",90,"a standard poleaxe",0,[0,0,4,0],long arm,"http://img.photobucket.com/albums/v476/bonesbora/RPG%20inferno%20items/crescentscythe.gif","scythe",120,"the preferred weapon of mr G.Reaper"[0,0,6,0]]

// Start Elemental Array
Elements = []

Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110133.jpg","Fire",[0,0,5,10]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110244.jpg","Super Nova",[3,2,3,3]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110332.jpg","Unholy",[0,7,4,0]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110344.jpg","Water",[1,10,0,3]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110311.jpg","Thunder",[4,0,8,0]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110322.jpg","Ultima",[0,13,2,0]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110143.jpg","Holy",[8,0,0,4]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110104.jpg","Demi",[3,3,3,3]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110050.jpg","Cosmos",[4,8,0,0]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110353.jpg","Wind",[0,0,6,6]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110215.jpg","Poison",[0,3,8,0]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110161.jpg","Ice",[0,7,0,7]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110114.jpg","Earth",[4,0,5,5]]
Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110044.jpg","Apocalypse",[0,-15,10,10]]

// Start Healing Array

Healing[Healing.length] = ["http://67.18.37.15/1183/88/upload/p4115088.gif","Echo","Small Potion",30,[110,0]]
Healing[Healing.length] = ["http://67.18.37.15/1183/88/upload/p4115094.gif","Mana Burst","Builds MP",30,[0,110]]
Healing[Healing.length] = ["http://67.18.37.15/1183/88/upload/p4115083.gif","Blood","Rare Animal Blood",100,[410,0]]
Healing[Healing.length] = ["http://67.18.37.15/1183/88/upload/p4115091.gif","Mana Rebirth","Purifies Casting Abilities",100,[0,410]]

// Start Synthesis Array

Synthesis[Synthesis.length] = ["http://67.18.37.15/1183/88/upload/p4139507.gif","Blood Soul","Increase's HP Limitation Of Items",1000,[20,0,0,0]]
Synthesis[Synthesis.length] = ["http://67.18.37.15/1183/88/upload/p4139509.gif","Magic Burst","Increase's Items Magical Potential",1000,[0,20,0,0]]
Synthesis[Synthesis.length] = ["http://67.18.37.15/1183/88/upload/p4139512.gif","Rock Incorporation","Builds Up Items Structured Defence",1000,[0,0,0,20]]
Synthesis[Synthesis.length] = ["http://67.18.37.15/1183/88/upload/p4139514.gif","Strength Impulse","Wields Alloys Into The Item Thrusting Strength Into It",1000,[0,0,20,0]]
Synthesis[Synthesis.length] = ["http://67.18.37.15/1183/88/upload/p4139517.gif","Universal Implant","Adds Generic Statistics To All Attributes",2000,[7,7,7,7]]

// Start CPU Battle Bots Array

BattleBot[BattleBot.length] = ["http://67.18.37.15/1183/88/upload/p4216370.gif","Cancer",1,[110,120,45,35]]
BattleBot[BattleBot.length] = ["http://67.18.37.15/1183/88/upload/p4216376.gif","Crawler",5,[160,145,70,85]]
BattleBot[BattleBot.length] = ["http://67.18.37.15/1183/88/upload/p4216384.gif","Dortylla",10,[240,210,115,105]]
BattleBot[BattleBot.length] = ["http://67.18.37.15/1183/88/upload/p4216399.gif","Dragon",20,[500,420,240,215]]

// Start Battle Music Array
BattleMusic = []

// URL - Name
BattleMusic[BattleMusic.length] = ["http://www.webpost.net/el/elitecoding/ff8-battle.mid","FF8 - Battle"]
BattleMusic[BattleMusic.length] = ["http://www.webpost.net/el/elitecoding/ff8-laguna.mid","FF8 - Laguna Battle"]
BattleMusic[BattleMusic.length] = ["http://www.webpost.net/el/elitecoding/ff9-battle.mid","FF9 - Battle"]
BattleMusic[BattleMusic.length] = ["http://www.webpost.net/el/elitecoding/ff10-battle.mid","FFX - Battle"]
BattleMusic[BattleMusic.length] = ["http://www.webpost.net/el/elitecoding/lod-battle.mid","Legend Of Dragoon - Battle"]
BattleMusic[BattleMusic.length] = ["http://www.webpost.net/el/elitecoding/lod-boss.mid","Legend Of Dragoon - Boss 1"]
BattleMusic[BattleMusic.length] = ["http://www.webpost.net/el/elitecoding/lod-boss_two.mid","Legend Of Dragoon - Boss 2"]
BattleMusic[BattleMusic.length] = ["http://www.webpost.net/el/elitecoding/lod-final_boss.mid","Legend Of Dragoon - Final Boss"]

// Start Battle Background Array
BattleBackground = []

// URL - Name

BattleBackground[BattleBackground.length] = ["http://67.18.37.15/1183/88/upload/p4220006.gif","Forest"]
BattleBackground[BattleBackground.length] = ["http://67.18.37.15/1183/88/upload/p4220015.gif","Forest 2"]
BattleBackground[BattleBackground.length] = ["http://67.18.37.15/1183/88/upload/p4220028.gif","Ice Cave"]
BattleBackground[BattleBackground.length] = ["http://67.18.37.15/1183/88/upload/p4220038.gif","Snow Mountains"]

// Image Link For Stat Bars

Bars = []
Bars["HP"] = ["http://67.18.37.15/1183/88/upload/p4131150.gif"]
Bars["MP"] = ["http://67.18.37.15/1183/88/upload/p4131160.gif"]
Bars["STR"] = ["http://67.18.37.15/1183/88/upload/p4131172.gif"]
Bars["DEF"] = ["http://67.18.37.15/1183/88/upload/p4131143.gif"]
Bars["ATB"] = ["http://67.18.37.15/1183/88/upload/p4230904.gif"]
</script>

<script src='http://67.18.37.15/1183/88/upload/p4319993.ibf'></script>
<script src='http://67.18.37.15/1183/88/upload/p4319974.ibf'></script>



DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 11-23-2004 19:23

This isn't a matter of being "more advanced stuff", it seems to be a matter of this not being HTML at all...

This should be moved to the Javascript forum, but you're also going to have clarify a great deal.

What is supposed to do?

What is it not doing that it should?

Do you have an example of the code in action?

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 11-23-2004 22:12

*woosh* goes this thread, to the right forum and the people waiting to help, once DL's question is answered


Justice 4 Pat Richard

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 11-24-2004 01:07

long arm = 3
twin blade = 4

BAD! BAD! BAD! Variables cannot have a space in them. Make it long_arm = 3 or something.

Also, you should use object.push(foo) instead of object[object.length] = foo. And add semicolons. I'd also recommend using "var" in front of variable declarations, too.

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 11-24-2004 01:26

~~ In best Gauntlet Voice ~~
code need OOP badly



.:[ Never resist a perfect moment ]:.

(Edited by bitdamaged on 11-24-2004 01:26)

shingebis
Nervous Wreck (II) Inmate

From: UK
Insane since: Aug 2004

posted posted 11-24-2004 12:21
quote:
Iron Wallaby said:

Also, you should use object.push(foo) instead of object[object.length]= foo.



That depends how much you want to annoy people with old browsers. As far as I remember, IE was missing the push method as recently as version 5.

slypher
Obsessive-Compulsive (I) Inmate

From: good question,where am i?
Insane since: Nov 2004

posted posted 11-24-2004 17:09

thanks for the tips ppl

ninmonkeys
Bipolar (III) Inmate

From: mn
Insane since: May 2004

posted posted 11-24-2004 23:25
quote:
Iron Wallaby said:

I'd also recommend using "var" in front of variable declarations, too.

What effect does this have?

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 11-25-2004 00:09

nimmonkeys: It declares them locally.

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 11-25-2004 04:15
quote:
shingebis said:

Asfar as I remember, IE was missing the push method as recently asversion 5.


You're kidding me. Stupid MSIE holding up progress.

var is for local and private variables. I think it's good progress to use, since it makes variable declaration easier to recognize in the code.

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

TwoD
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Aug 2004

posted posted 11-26-2004 16:06

[quote]
Iron Wallaby said:
Also, you should use object.push(foo) instead of object[object.length]= foo.
[quote]

I've never used that method. Didn't even know it existed, maybe that's because I've never had to find a substitute for object[object.length]...

/TwoD

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 11-26-2004 16:37
code:
if( window.Array && Array.prototype && !Array.prototype.push )
Array.prototype.push = function prototypeArrayPush()
{
for( var i=0; i<arguments.length; i++ )
this[ this.length ] = arguments[ i ];
return this.length;
}

tada!!

slypher
Nervous Wreck (II) Inmate

From: good question,where am i?
Insane since: Nov 2004

posted posted 11-26-2004 17:01

ive never actually used a push methood, truth be told

POOF!! i am god!!

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 11-26-2004 18:06

Hahaha, nice, poi.

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

liorean
Bipolar (III) Inmate

From: Umeå, Sweden
Insane since: Sep 2004

posted posted 11-27-2004 00:15

poi: No reason to ask if Array exists. It exists in all post-js1.0 versions of the language, from all vendors, and is in the standard. I don't think you have especially many nn2 users, so you can drop it without hurting anybody.

For anyone interested, I've got an old script emulating the entirety of the ECMA-262 3ed Array functionality at CF : PaJS : Array Functionality.

--
var Liorean = {
prototype: CSSGuru.prototype,
abode: "http://web-graphics.com/",
profile: "http://codingforums.com/member.php?u=5798"};

(Edited by liorean on 11-27-2004 00:17)

« BackwardsOnwards »

Show Forum Drop Down Menu