SphereCommunity
3 new little problems - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: 3 new little problems (/Thread-3-new-little-problems)



3 new little problems - massis87 - 03-18-2017 05:32 PM

1) NPC AI:

my npc, with brain brain_monster, always cast spells, ALWAYS and ALL. lel.
My question is, flag 04, how it works?
If i disable it, my npc cast spell only with spellbook and addspell (int magery ecc) or they dont cast anyway? there is a sort of npc event ai settings in script master for change this AI? Any idea to fix this problem without rescript npc combat system?

2) SHIELDS T_SHIELD

With my versione of sphere (56c benedictum), shields dont grants armor, or they grants but lower, with 100 parring and armor=60 i take 4. Doubt .
spherewiki dont help me, revisions too. any idea? or a sort of fix here? i dont wanna put armor= 4000 on all my shields if is possible fix it in another way.
Ah, with attr magic ecc ecc s_enchanced works great.

3) Clients logged in.

No error in console simply disconnected
My server kick out players ramdomly when i took 60+ players.

Tnx for attention, enjoy. Bye


RE: 3 new little problems - Coruja - 03-20-2017 10:08 AM

1) you can check all AI flags on sphere.ini, NPCAI flag 04 is NPC_AI_EXTRA, which is used to enable some extra AI actions like: try to find/equip weapons/shields on combat or light up torches at night

2) shields are used mostly to parry attacks, not to increase AR/resist. So using shields you won't get too much AR increased but on the other hand you will parry (block) more attacks, which is the same of resist 100% of the damage

3) probably this is a network issue, because sphere can handle a lot of clients at the same time, but bad things will happen if you try to host it on an small AWS cloud with slow network. Some cloud/VPS hosting have connection limits on plans, usually cheap plans have cheap performance and only allow 50~100 connections. So try check your hosting limits, or you test an upgrade on your plan to check if it will fix this problem


RE: 3 new little problems - zottolo - 03-21-2017 05:02 PM

ciao beli!

About shields cloacks and various armor shoes you can fix that with
[itemdef blablabla]
all your things
armor= 0
type= t_armor or t_hide_armor (if i'm not wrong)

on=@equip
src.modar += value

on=@unequip
src.modar -= value

you can start from here and remodulating your entire armor set value.


RE: 3 new little problems - massis87 - 03-21-2017 11:49 PM

(03-21-2017 05:02 PM)zottolo Wrote:  on=@equip
src.modar += value

on=@unequip
src.modar -= value

Confused