whats wrong with my script?

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: whats wrong with my script?
Apprentice
Member # 5311
Profile #0
whats wrong with my script?

begindefinecreature 244;
cr_name = "Dark dragon";
cr_default_script = "basicnpc";
cr_level = 350;
cr_hp_bonus = 1000000;
cr_sp_bonus = 1000000;
cr_special_abil = 33; //Breathes darkness (damage + enfeeblement)
cr_default_attitude = 3; //Neutral
cr_species = 5; //Reptile
cr_natural_armor = 10000;
cr_attack_1 = 1000;
cr_attack_1_type = 2; //Bite
cr_attack_2 = 1000;
cr_attack_23_type = 7; //Burns
cr_attack_3 = 500;
cr_ap_bonus = 50;
cr_default_strategy = 0; //Default. Creature runs up to nearest foe and fights
cr_default_agression = 50;
cr_default_courage = 100;
cr_which_sheet = 128;
cr_which_sheet_upper = 129;
cr_small_or_large_template = 1;
cr_what_stat_adjust 0 = 0; //Strength
cr_amount_stat_adjust 0 = 1000;
cr_what_stat_adjust 1 = 11; //Mage Spells
cr_amount_stat_adjust 1 = 1000;
cr_what_stat_adjust 2 = 2; //Intelligence
cr_amount_stat_adjust 2 = 1000;
cr_what_stat_adjust 3 = 1; //Dexterity
cr_amount_stat_adjust 3 = 10000;
cr_what_stat_adjust 4 = 3; //Endurance
cr_amount_stat_adjust 4 = 10000;
cr_what_stat_adjust 5 = 12; //Priest Spells
cr_amount_stat_adjust 5 = 1000;
cr_immunities 0 = 100; //Fire
cr_immunities 1 = 100; //Cold
cr_immunities 2 = 100; //Magic
cr_immunities 3 = 100; //Mental
cr_immunities 4 = 99; //Poison/acid
cr_immunities 5 = 100; //Melee
Posts: 46 | Registered: Monday, December 20 2004 08:00
Off With Their Heads
Member # 4045
Profile Homepage #1
Other than that the monster is terrible, this is your problem:

cr_default_agression = 50;

should be

cr_default_aggression = 50;

I highly recommend to you Alint. It spots these problems in moments.

[ Thursday, March 17, 2005 19:09: Message edited by: Kelandon ]

--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00
Apprentice
Member # 5311
Profile #2
i know it's terible
Posts: 46 | Registered: Monday, December 20 2004 08:00
...b10010b...
Member # 869
Profile Homepage #3
Also, there are several illegal values there. Monster levels can't be higher than 100, and I'm pretty sure total monster HP (base+bonus) can't be higher than 32767. And since the maximum damage from an attack is 32767, and any value higher than that will wrap around and probably count as 0 damage, you should rejig Strength and melee attacks as well.

Since it looks as if it's the kind of monster that the party is really Not Supposed To Fight, why not just give it 100% resistance to all damage and give it a creature script that kills the party if it's ever hostile?

[ Thursday, March 17, 2005 23:55: Message edited by: Thuryl ]

--------------------
The Empire Always Loses: This Time For Sure!
Posts: 9973 | Registered: Saturday, March 30 2002 08:00
Apprentice
Member # 5311
Profile #4
[ Saturday, April 30, 2005 11:32: Message edited by: Phish Phlot ]
Posts: 46 | Registered: Monday, December 20 2004 08:00
Off With Their Heads
Member # 4045
Profile Homepage #5
Syntactically? Nothing, I think. Are you getting an error message?

--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00
...b10010b...
Member # 869
Profile Homepage #6
Uh, a piece of armour shouldn't have an it_weapon_skill_used field.

--------------------
The Empire Always Loses: This Time For Sure!
Posts: 9973 | Registered: Saturday, March 30 2002 08:00
Apprentice
Member # 5311
Profile #7
I'm geting an errer that says "the editer just failed to load this graphic: sheet 129, icon one..." :confused:
Posts: 46 | Registered: Monday, December 20 2004 08:00
Off With Their Heads
Member # 4045
Profile Homepage #8
Are you trying to use a custom graphic? If so, it should be numbered between 500 and 600.

The sheet, that is.

[ Saturday, March 19, 2005 17:27: Message edited by: Kelandon ]

--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00
Apprentice
Member # 5311
Profile #9
Now it does not have an errer but it won't show the graphic.
Posts: 46 | Registered: Monday, December 20 2004 08:00
Off With Their Heads
Member # 4045
Profile Homepage #10
Try to give slightly more information when you need help, please. I'm having a horrible time figuring out what you've done.

So is the graphic actually numbered something between 500 and 600 in your custom graphics file? Does your script now match up to that? Is it a properly formatted graphic (bmp on PC, PICT resource on a Mac)?

--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00
Triad Mage
Member # 7
Profile Homepage #11
You're only giving it a floor graphic - you need to give it a regular graphic too.

--------------------
"At times discretion should be thrown aside, and with the foolish we should play the fool." - Menander
====
Drakefyre's Demesne - Happy Happy Joy Joy
Encyclopedia Ermariana - Trapped in the Closet
====
You can take my Mac when you pry my cold, dead fingers off the mouse!
Posts: 9436 | Registered: Wednesday, September 19 2001 07:00
Infiltrator
Member # 4637
Profile Homepage #12
Jaaari's Creature and Item Editor Tools might be useful too. You can get them here .

--------------------
Visit the Blades of Avernum Center
and the Beta Testing Center

--------------
"Beware lest anyone cheat you through philosophy and empty deceit, according to the tradition of men, according to the basic principles of the world, and not according to Christ." Colossians 2:6-9
Posts: 483 | Registered: Tuesday, June 29 2004 07:00