Page 1 of 1

Two problems whit scripts, after porting from 095 to 097

Posted: Sun Apr 26, 2009 10:45 am
by Nightmare
hi at all ...
hi! i've coverded zulu pol 095 scripts in 097 scripts. I've a problem : if i attack an npc or player i can hit it by all distance. i don't know how to do

Second problem : i've inserted 35 high anim (monsters) in anim file, configurated and it all works. But i've at least 10 new animals, i've inserted it in Low anim (animals), configurated but it don't work!
I create the new animal and appear only the name, no graphic

Please help me

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Sun Apr 26, 2009 12:11 pm
by Tomi
Problem 1: add some Distance checks in your combats mainhitscript or such that is controlling it.

Problem 2: adding anims is a pain in the ass because there are the files mobtypes.txt, bodyconv.def and body.def that can make problems appear also.
Take a look at a guide for those files ( I dont remember the URL to those websites anymore ) and then take a look at your files and see if those are blocking your low anims.

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Sun Apr 26, 2009 1:43 pm
by Nightmare
tnx for the help ..
For the first problem i'll check now...
For the second, i've configurated good the body and bodydef files... for mobtypes.txt i've inserted the right animation id : animid Animal 0 .. but don't work :D

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Wed May 06, 2009 4:44 am
by Nightmare
Tomi wrote:Problem 1: add some Distance checks in your combats mainhitscript or such that is controlling it.
my mainhit script control only the damage and the player can attack alredy... what'is the file who control attack ?

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Wed May 06, 2009 5:08 am
by OldnGrey
I wonder if you have this enabled as per the core-changes:
08-15 Austin:
Added : Setting for servspecopt.cfg 'ScriptedAttackChecks' Default is disabled.
If enabled, the combat hook must check distance, line of sight, visibility
and if both combatants are alive.

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Wed May 06, 2009 9:02 am
by Nightmare
k I have resolved. thank you! :D

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Sat May 09, 2009 11:00 am
by Nightmare
I have an other problem, why I see the spellbook thus?

Image

The spellbook it is full of all the magic but they are not looked at. how I can make?

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Sat May 09, 2009 11:11 pm
by CWO
make sure that the itemdesc.cfg entry for the spellbook has the following line within it

Code: Select all

Spelltype          magic
and that its defined as a spellbook, not a container.
Spellbook 0x0EFA
{
Spelltype magic
// Other stuff
}

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Sun May 10, 2009 2:44 am
by Nightmare
yes, i have already do that...

Code: Select all

Spellbook 0x0EFA
{
	Name	Spellbook
	Gump	0xFFFF
	MinX	40
	MaxX	60
	MinY	20
	MaxY	80
	RequiresAttention	0
	VendorSellsFor	22
	VendorBuysFor	11
	Newbie 1
	BlocksCastingIfInHand 0
	Weight		0
	MaxHP		500
	strrequired	1	
	Spelltype     magic
	equipscript	::skilladvancerequip
	unequipscript	::skilladvancerunequip
	DestroyScript	::maindestroy
}
but it didn't works yet.

if is important I use a mondain's legacy client. With age of shadow client the spellbook worked.

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Sun May 10, 2009 5:37 am
by Targun
I had the same problem almost a year ago.
I don't exactly remember what was it all about, but it's propably something with account.set_uo_expansion().
Try different settings (not only ML) and see what happends.

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Tue May 12, 2009 7:29 am
by Nightmare
Still it does not work. Someone has other ideas?

I have seen now that, when I make a magic, the reagents and the mana do not come consuming. I think that all this depends from an uncorrect setting after the porting from 95 to 97 or from aos client to ml client...

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Tue May 12, 2009 7:29 am
by Nightmare
Still it does not work. Someone has other ideas?

I have seen now that, when I make a magic, the reagents and the mana do not come consuming. I think that all this depends from an uncorrect setting after the porting from 95 to 97 or from aos client to ml client...

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Tue May 12, 2009 9:13 am
by Tomi
Mana and Reagent consuming was removed from the core during 096 iirc.

Now you have to do those things in scripts.

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Tue May 12, 2009 2:51 pm
by CWO
What does your UOFeatureEnable look like? And what is the setting on the account expansion?

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Wed May 13, 2009 1:24 am
by Nightmare
in the logon script we have setting FindAccount(who.acctname).set_uo_expansion("ML");
So, all the accounts are setting whit ML expansion.
in servspecopt UOFeatureEnable=0x1a0 ( 0x1a0 it's ml i think)

Edit : i've inserted 0x1a8 in uo feature and now the spellbook works but now there are all ml features enabled and i won't ! bushido ninjitsu now appeared in the skill box, names and items names appear when i'm up it whit mouse!!! i hate this things!

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Wed May 13, 2009 3:13 am
by Pierce
Bushido, Ninjitsu and Spellweaving also appear with 0x1A0 ;)
I'm using 0x1A0 and the spellbook works just fine. The difference should only
be the enabling of the npc popup/context menues.

I was wondering why you don't have a CanInsertScript for the spellbook.
I don't believe that this causes your problems, but who knows :D

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Wed May 13, 2009 10:43 am
by Nightmare
i don't know why, but if i use 0x1a0 all works fine (and use the old sistem click on object to view what is it) but the spellbook doesn't work!
if i use 0x1a8 the spellbook works fine but use all ml features and i don't want it!

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Wed May 13, 2009 2:43 pm
by CWO
Did you try setting the account expansion to T2A, the UOFeatureEnable to 0x1A0 then logging out (and making sure your char is completely logged out because I believe the expansion is part of the early login process) and then seeing if spellbooks work?

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Wed May 13, 2009 3:02 pm
by Pierce
Or did you perhaps have an old packethook installed which handles the important packets different than the core itself does. One forgotten old test packethook can make life a lot harder :D

Re: Two problems whit scripts, after porting from 095 to 097

Posted: Sat May 16, 2009 2:17 am
by Nightmare
hello! we have another little problem:
the upper menubar in the game (with map button jurnal button ecc..) don't work very good.
Sometimes work map button sometimes not. sometimes work jurnal button sometimes not
Can you help me ?

Edit : Sorry i'm solved problem. A mistake whit gump files :D