Funny error!
Funny error!
I have copied a server 095 on 096 version, and have started. The beginnings testing, and here one of mistakes which I cannot understand, it when I press on какуе a thing, to me writes "You must wait to use something again". I don't know, what script can use this function, and I'm don't know how fix it. I'm use scripts of Zulu Hotel Scandinavia. If you know, and can, help me please. Thanks!
Oh, off course! My problem have been fixed at hooks/shilSkill ; hooks/newParry & hooks/newCombat.
That was my error when. I destroy title "exported" at all functions, because there was AwardPoint, - this is not right(error is: "Function AwardPoints: Parameter gainrate was not passed, and there is no default.
")! Must be "AwardRawSkillPoints". And, when I fix this, every thing is now all right!
That was my error when. I destroy title "exported" at all functions, because there was AwardPoint, - this is not right(error is: "Function AwardPoints: Parameter gainrate was not passed, and there is no default.
")! Must be "AwardRawSkillPoints". And, when I fix this, every thing is now all right!
Find which itemdesc.cfg contains the entry for your spellbook. The entry should be something like:
change it to
and add within the entry's braces
Code: Select all
Container 0x0EFACode: Select all
Spellbook 0x0EFACode: Select all
Spelltype magicOh, great! Thanks, but I have new error!
Problem is big. When I clicked on spell, and when I get some weapon, this weapon is not blocking this spell, but must! Mana not down, words not say, and I'm cast any spell at one second! I have look for what script is working at spells and it is scroll.src(at Zulu Hotel directory opt/zulumagic/scroll.src) and look please, why it work at spellbook not correctly?!
Problem is big. When I clicked on spell, and when I get some weapon, this weapon is not blocking this spell, but must! Mana not down, words not say, and I'm cast any spell at one second! I have look for what script is working at spells and it is scroll.src(at Zulu Hotel directory opt/zulumagic/scroll.src) and look please, why it work at spellbook not correctly?!
Code: Select all
use uo;
use os;
use cfgfile;
include "include/client";
include "include/attributes";
include "getspellid";
program use_scroll( who, scroll )
var shp := GetHp(who);
var sx := who.x;
var sy := who.y;
var sz := who.z;
var smana := GetMana(who);
set_critical( 1 );
if (!scroll.amount)
return;
endif
if(!ReserveItem(scroll)) return; endif
var spellid := GetSpellId( scroll );
if (manacost(who,spellid) > GetMana(who))
PrintTextAbovePrivate(who,"Not enough mana!",who);
return;
endif
if (GetEffectiveSkill(who,SKILLID_MAGERY) < (GetSpellDifficulty( spellid ) - 20) )
PrintTextAbovePrivate(who,"Not a chance...",who);
return;
endif
SpeakPowerWords( who, spellid );
var loop := CInt((spellid + 7) / 8 * 500);
PerformAction(who,ANIM_CAST_DIR);
while ( loop > 500)
loop := loop - 1000;
sleep(1);
if ((GetHp(who) < shp ) && (smana>70))
SendSysMessage( who, "Your were interrupted while casting!");
PlayObjectCenteredEffect(who, 0x3735, 7, 7);
PlaySoundEffect(who, 0x05b);
return;
endif
/*
if (who.x != sx or who.y != sy or who.z != sz)
SendSysmessage( who , "You've lost your concentration!" );
PlayObjectCenteredEffect(who, 0x3735, 7, 7);
PlaySoundEffect(who, 0x05b);
return;
endif
*/
endwhile
sleepms(loop);
if ((GetHp(who) < shp ) && (smana>70))
SendSysMessage( who, "Your were interrupted while casting!");
PlayObjectCenteredEffect(who, 0x3735, 7, 7);
PlaySoundEffect(who, 0x05b);
return;
endif
/*
if (who.x != sx or who.y != sy or who.z != sz)
SendSysmessage( who , "You've lost your concentration!" );
PlayObjectCenteredEffect(who, 0x3735, 7, 7);
PlaySoundEffect(who, 0x05b);
return;
endif
*/
if (CanReadScroll(who))
if (CheckSkill( who, SKILLID_MAGERY, GetSpellDifficulty(spellid)-20, 0 ) )
if ( ConsumeMana( who, spellid ) )
Detach();
SubtractAmount( scroll, 1 );
StartSpellEffect( who, spellid );
return;
endif
endif
endif
PlaySoundEffect(who,0x005d);
PlayObjectCenteredEffect(who, 0x3735,10, 30);
endprogram
function CanReadScroll(me)
var cfg := ReadConfigFile(":combat:itemdesc");
var item;
var circle := 2;
var theweapon := GetEquipmentByLayer( me, LAYER_HAND1 );
var theweapon2 := GetEquipmentByLayer( me, LAYER_HAND2 );
if ((!theweapon) && (!theweapon2))
return 1;
endif
var weapon1 := cfg[theweapon.objtype].blocksCastingIfInHand;
var weapon2 := cfg[theweapon2.objtype].blocksCastingIfInHand;
if (weapon1==0 && !theweapon2)
return 1;
elseif (weapon2==0 && !theweapon)
return 1;
elseif (weapon1==0 && weapon2==0)
return 1;
endif
PrintTextAbovePrivate(me,"Your hands must be free to use that!",me);
return 0;
endfunction
function manacost(me,spellid)
var cfg := ReadConfigFile(":spells:spells");
var circle := cfg[ spellid ].circle;
cfg := ReadConfigFile("::circles");
return CInt(cfg[ circle ].mana);
endfunctionYou didnt read the 096 changelog then...
thats a cut-up and pasted version of the changelog all put together so its better understood.
Thats a MUST to go through and make sure your scripts are up to date. Many wierd and different things will happen if you dont look at everything in the changelog and figure out what that means for your scripts.
Code: Select all
Added: Extra 'spell_id' parameter is now passed to spell scripts which relates to
'SPELLID' in the spell's entry in '::spells.cfg'.
Example:
use uo;
program spellscript( who, spell_id )
SendSysMessage(who, "Casting SPELLID# " + CStr(spell_id));
// "Clumsy" has spell_id = 1, "Create Food" = 2, etc..
endprogram
Changed: Casting from the default spellbook:
* It no longer checks if you are dead, says the words of power,
performs the animations, checks for free hands, performs a
skill check, does any delaying at all or checks for
or consumes mana or reagents.
All these things must now be handled in scripts.
This should allow greater flexibility and also
simplicity in spell systems and scripts.
Thats a MUST to go through and make sure your scripts are up to date. Many wierd and different things will happen if you dont look at everything in the changelog and figure out what that means for your scripts.
Oh, yes! I didn't read change log, and this is my error. Thanks, but I'm not realy understand, what I have to do. I mean, at all scripts of spells I must add:
that or at scroll.src.
I'm very sorry for that's stupid post, and my questions because I'm not master scripter, I'm Novice!
Thank you!
Code: Select all
use uo;
program spellscript( who, spell_id )
SendSysMessage(who, "Casting SPELLID# " + CStr(spell_id));
// "Clumsy" has spell_id = 1, "Create Food" = 2, etc..
endprogramI'm very sorry for that's stupid post, and my questions because I'm not master scripter, I'm Novice!
its better to make a starter script and change your spells to go through that starter script, then add another entry in your config to where the actual spell script is. This way, the core starts the starter script, you can do everything there that you have to do (all of the checks. The function I posted was an example of only 1 addition, not everything that was removed from the core. You'll have to script that out) then afterwards, use start_script and grab the scriptname out of the config entry for the spell. You can start to see what I'm trying to say if you go through the distro development in the top forum, look up their magery package at the script called "SpellStarter.src". It might actually do more than needed but doing more is better than nothing.
Oh... To many things and to hard! I have edit this problem too ease! I have add:
thoose lines, and my problem has disappeared. But, thank you for help! If I will be have some problem, I'll post it at my topic. Thanks all!
Code: Select all
//MY CHANGES
if( TryToCast( caster, SPELLID_[b]SPELL[/b] ) != SUCCESS )
EraseObjProperty( caster, "#Casting" );
return;
endif
//END OF MY CHANGES
//addd these lines after caster:=parms in that if/elseHey!
Hallo all! :lol: I have new error, but, I don't know, how it has arisen. When I start pol, with scripts is all right, but, right at the end, there is:
What it mean, I don't know
Please, help!
Code: Select all
Couldn't find an Armor Zone for layer 0
error in objtype 1bca package combat
Server Shutdown: load_itemdesc
Execution aborted due to: Data file error-
Firedancer
- Grandmaster Poster
- Posts: 104
- Joined: Fri Feb 03, 2006 6:32 am
armor zone? I guess it's refering to the item layer.Harley wrote:Hey!Hallo all! :lol: I have new error, but, I don't know, how it has arisen. When I start pol, with scripts is all right, but, right at the end, there is:
What it mean, I don't knowCode: Select all
Couldn't find an Armor Zone for layer 0 error in objtype 1bca package combat Server Shutdown: load_itemdesc Execution aborted due to: Data file errorPlease, help!
Each Item equipable will be equiped to a certain layer on your character.. e.g. Helmets are put on Layer 6, Body armor on layer 17 afaik. For each layer there's a corresponding entry in /config/armrzone.cfg - likely you're missing that, but layer 0 is definitely the wrong layer for armor....
see here:
http://www.welt-pergon.de/poldoc/config ... mrzone.cfg
I've sadly got no complete list of which layer is which here.... but maybe someone else can help with that.
If you're running on pol096 then after using uoconvert you must copy multis.cfg, tiles.cfg and landtiles.cfg to your %poldir%/config/ .Harley wrote:Hey!Hallo all! :lol: I have new error, but, I don't know, how it has arisen. When I start pol, with scripts is all right, but, right at the end, there is:
What it mean, I don't knowCode: Select all
Couldn't find an Armor Zone for layer 0 error in objtype 1bca package combat Server Shutdown: load_itemdesc Execution aborted due to: Data file errorPlease, help!
Firedancer, thank you too, but AsYlum have told right(thank you)! This error have been, because I have no uoconvert my multis, tiles & landtiles .cfg Thanks, but! I have got new error!
I have script, that is spawnet. And, at my console, he got me error.
Look please:
I have script, that is spawnet. And, at my console, he got me error.
Look please:
Code: Select all
Runaway script[178]: pkg/systems/spawnet/bloodremover.ecl (60000 cycles)
31: Func(2,0): ListObjectsInBox
32: initforeach @46
33: local #1
34: get member id 'objtype' (4)
35: local #0
>36: in
37: local #1
38: get member id 'decayat' (22)
39: Func(2,1): ReadGameClock
40: <=
41: &&Look a few lines into your script for a ListObjectsInBox(). Its probably in a foreach loop. Just add a sleepms(5) there or something to stop that. Its not really an error, its more of a warning that your script is running extremely long without resting so POL can go to other scripts and pay attention to them.
CWO, big thanks! It is realy help! But, I have new error. Look please:
I'm very scary when I saw this error! 
Code: Select all
[06/23 10:55:28] [pkg/speechhook/TruePspeech.ecl]: 880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[pkg/speechhook/TruePspeech.ecl]: ae00600101010101010003b200035255530053797374656d0000000000000000000000000000000000000000000000000055006e006b006e006f0077006e00200063006f006d006d0061006e0064003a0020002e00610064006d0069006e0000
New interesting error. I have re-writing my shard to 097 core, and, I have a problem with my guilds scripts. Script is: WebSiteTimers. When I compile it, there are error:
When I add new module *use guilds;* I have a new error.
Look:
I don't know how fix this error and I ask u for help.
Thanks.
Code: Select all
Token '(' cannot follow token 'ListGuilds'
Function ListGuilds() is not defined.
Error compiling statement at C:\pol097~1\pkg\items\guilds~1\websiteTimers.src, Line 146
Error in function 'Guilds', File: C:\pol097~1\pkg\items\guilds~1\websiteTimers.src, Line 146
Error in function 'Guilds'.
Line 146 is:
foreach guild in ListGuilds()
Look:
Code: Select all
Error in USE statement: Expected identifier, got 'User Function guilds'
Error compiling statement at C:\pol097~1\pkg\items\guilds~1\websiteTimers.src, Line 3
Compilation Error:
Near: use guilds;
File: C:\pol097~1\pkg\items\guilds~1\websiteTimers.src, Line 3
This is very fun because modules look:
use uo;
use os;
use guilds;
Thanks.
Hm... I don't know, what is this, and I need your help. I have re-change Pol Core for 096 to 097. Compile all scripts and, when I start server, after this lines:
I have error.
And this mistake is written each 3 minutes!
But, I don't know what is this error and from where it has undertaken. Because at pol 096(not 096.1), it was not!
At pol 096 at console there are:
Thanks!
Code: Select all
Startup script complete.
Initialization complete. POL is active. Ctrl-C to stop.
Listening for HTTP requests on port 5002
Starting: Guild Timers OffCode: Select all
Starting: SpawnNet
error{ errortext = "Access denied" }
Starting: Ore ServerCode: Select all
Starting: GuildManager Loaded
sysload=1 (2) cputime=120173
scpt: 4570 task: 62(2) scin: 40349 scsl: 106967 MOB: 0 TLI: 251
sysload=0 (0) cputime=0
scpt: 2495 task: 60 scin: 2531 scsl: 59942 MOB: 0 TLI: 251
error{ errortext = "Access denied" }
sysload=0 (0) cputime=0
scpt: 1773 task: 60 scin: 1827 scsl: 42596 MOB: 0 TLI: 251
sysload=0 (0) cputime=0
scpt: 1797 task: 60 scin: 1834 scsl: 43189 MOB: 0 TLI: 251
error{ errortext = "Access denied" }
sysload=0 (0) cputime=0
scpt: 2789 task: 60 scin: 2840 scsl: 66983 MOB: 0 TLI: 251
sysload=0 (0) cputime=0
scpt: 4125 task: 60 scin: 4159 scsl: 95050 MOB: 0 TLI: 250
error{ errortext = "Access denied" }
sysload=0 (0) cputime=0
scpt: 2792 task: 60 scin: 2845 scsl: 64261 MOB: 0 TLI: 250
sysload=0 (0) cputime=20029
scpt: 1298 task: 60 scin: 1337 scsl: 29913 MOB: 0 TLI: 250
error{ errortext = "Access denied" }At pol 096 at console there are:
Code: Select all
Starting: SpawnNet
Starting: Ore Server