3 new little problems - massis87 - 03-18-2017 05:32 PM
1) NPC AI:
// NPC AI settings
// NPC_AI_PATH 00001 NPC pathfinding
// NPC_AI_FOOD 00002 NPC food search (objects + grass)
// NPC_AI_EXTRA 00004 NPC magics, etc
// NPC_AI_ALWAYSINT 00008 Always be as smart as possible with pathfinding
// NPC_AI_INTFOOD 00010 NPC food search (more intelligent and trusworthy)
// NPC_AI_COMBAT 00040 Look for friends in combat
// NPC_AI_VEND_TIME 00080 vendors closing their shops at nighttime
// NPC_AI_LOOTING 00100 loot corpses an the way
// NPC_AI_MOVEOBSTACLES 00200 if moveable items block my way, try to move them
// NPC_AI_PERSISTENTPATH 00400 NPC will try often to find a path with pathfinding
// NPC_AI_THREAT 00800 Enable the use of the threat variable when finding for target while fighting.
// NPC_AI_OLDMOVESPEED 01000 Enable backwards SpeedMove formula (55i like) for walk delays.
NPCAI=0004|0040|0008|0200
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
// Extra combat flags to control the fight (default:0, 0.55i compatible)
// COMBAT_NODIRCHANGE 00001 // Not rotate player when fighting (like was in 0.51a)
// COMBAT_FACECOMBAT 00002 // Allow faced combat only (recommended)
// COMBAT_PREHIT 00004 // Allow prehit for close combat. first hit is instant (delay 0.1sec)
// COMBAT_ELEMENTAL_ENGINE 00008 // Use DAM*/RES* to split damage/resist into Physical/Fire/Cold/Poison/Energy (AOS) instead use old AR (pre-AOS)
// COMBAT_DCLICKSELF_UNMOUNTS 00020 // Unmount horse when dclicking self while in warmode
// COMBAT_ALLOWHITFROMSHIP 00040 // Allow attacking opponents from ships
// COMBAT_ARCHERYCANMOVE 00100 // Allow firing bow while moving
// COMBAT_STAYINRANGE 00200 // Abort attack swing when out of range instead of waiting to come back in range
// COMBAT_STACKARMOR 01000 // If a region is covered by more than one armor part, all AR will count
// COMBAT_NOPOISONHIT 02000 // Disables old (55i like) poisoning style (0~100% chance based on Poisoning skill for monsters, or 50% chance for poisoned weapons)
// COMBAT_SPECIALDAMAGE 00010 // use character tags TAG.*DAMAGE to apply additional damage
CombatFlags=00001|00020|00010|00100
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. .
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.
///////////////////////////////////////////////////////////////
//////// Client Management
///////////////////////////////////////////////////////////////
// What client protocol version used
// Comment out the ClientVersion line to allow any client that is supported.
//ClientVersion=2.0.3
// Set this to 1 to allow login to encrypted clients
UseCrypt=1
// Set this to 1 to allow login to unencrypted clients
UseNoCrypt=1
// Maximum total open connections to server
ClientMax=256
// Maximum open connections to server per IP
ClientMaxIP=20
// Maximum total (not-in-game) connections to server
ConnectingMax=32
// Maximum total simultaneous (not-in-game) connections to server per IP
ConnectingMaxIp=32
// How long logged out clients linger in seconds
ClientLinger=15
// Walk limiting code: buffer size (in tenths of second)
WalkBuffer=150
// Walk limiting code: regen speed (%)
WalkRegen=50
// Only commands issued by this plevel and higher will be logged
CommandLog=0
// Set to 1 to enable logging of commands issued via telnet
TelnetLog=1
// Prefix for ingame commands
CommandPrefix=.
// Set from 0 - 7 to set what the default plevel is to use commands.
DefaultCommandLevel=7
// Function to call if client is executing a command to override the default.
//CommandTrigger=f_oncommand
// Use the built in http server
// 0 - disable http server and webpage generation
// 1 - disable http server and enable webpage generation
// 2 - enable http server and webpage generation (default)
UseHttp=2
// Use the OSI AuthID to avoid possible hijack to game server.
UseAuthID=0
// Set account RESDISP automatically based on player client version
AutoResDisp=6
// Default setting for new accounts specifying default priv level
AutoPrivFlags=010
// How often send my hits updates to visible clients (in seconds)
//HitsUpdateRate=1 No error in console simply disconnected
My server kick out players ramdomly when i took 60+ players.
Tnx for attention, enjoy.
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
|