А у меня такая проблема с уроном...
В общем написал я в скрипте сфера_events(снизу весь скрипт)..
Код
[EVENTS e_Human_Refuse]
ON=@NPCRefuseItem
// I got something I don't want.
SAY Thou art giving me <argo.name>?
IF ( <SRC.KARMA.WICKED> || <SRC.KARMA.BELLIGERANT> )
IF ( <SRC.FAME.INFAMOUS> || <SRC.FAME.OUTLAW> )
DORAND 3
SAY No thanks!
SAY Thanks, but no.
SAY I don't want that!
ENDDO
ELIF ( <SRC.FAME.ANONYMOUS> )
DORAND 3
SAY I don't want it.
SAY I can't use that!
SAY Don't give me that!
ENDDO
ELSE
DORAND 3
SAY I really don't need thy cast-offs!
SAY Thy generosity is duly noted. Thanks, but no thanks.
SAY I don't need that.
ENDDO
ENDDO
ENDIF
ELIF ( <SRC.KARMA.NEUTRAL> )
IF ( <SRC.FAME.INFAMOUS> || <SRC.FAME.OUTLAW> )
DORAND 3
SAY Thank thee. Don't need any.
SAY I don't want it. Sorry.
SAY I don't have a use for it. Thanks, though.
ENDDO
ELIF ( <SRC.FAME.ANONYMOUS> )
DORAND 3
SAY Tis very generous of thee, but I don't need it.
SAY I can't take it. Sorry.
SAY Thank thee, but I don't want it.
ENDDO
ELSE
DORAND 3
SAY Thou art most kind <SRC.SEX good sir/good lady>, but it isn't anything that I need.
SAY Please, keep it. I don't want it.
SAY I really don't need it.
ENDDO
ENDIF
ELSE
IF ( <SRC.FAME.INFAMOUS> || <SRC.FAME.OUTLAW> )
DORAND 3
SAY Keep it! I have no need for it.
SAY 'Tis a shame I have no use for it. Keep it.
SAY If only I needed it! I don't.
ENDDO
ELIF ( <SRC.FAME.ANONYMOUS> )
DORAND 3
SAY 'Tis kind of thee, but I have no use for it.
SAY Thank thee, but no.
SAY Thank thee, kind <SRC.SEX sir/lady>, but no.
ENDDO
ELSE
DORAND 3
SAY I would like to accept thy gift, but I cannot. Thank thee.
SAY Thank thee <SRC.NAME>! But keep it. I have no use for it.
SAY 'Tis greatly appreciated, but unnecessary. I don't want it.
ENDDO
ENDIF
ENDIF
return 1
[EVENTS e_anti_bug]
on=@spelleffect
if (<src.flags>&02) && (<argn>==39) //39 - poison field
src.sysmessage You are dead and cannot be affected by any spell.
return 1
endif
ON=@LogIn
if <findlayer(52)> // Killcount Bug
findlayer(52).more=<findlayer(52).more>*10
endif
[EVENTS e_hits]
ON=@Hit
var.last_act=<act.uid>
newitem i_damage_memory
act.link=<uid>
src.equip <act.uid>
act=<var.last_act>
[ITEMDEF i_damage_memory]
ID=i_memory
TYPE=t_eq_script
ON=@Equip
attr=attr_newbie|attr_decay
more1=<src.hits>
timer=0
ON=@Unequip
link.sysmessage You hit <src.name> doing <eval <more1>+-<src.hits>> points of damage
return 1
[EOF]
а в сфере_tables....
Код
[SKILLCLASS 0]
// undeclared class.
// max skills for players of this skill class.
// might want this to be all 50.0 to make people declare a class?
DEFNAME=Class_undeclared
NAME=undeclared
// EVENTS=e_ClassUndeclared
STATSUM=300
SKILLSUM=10000.0
STR=100
INT=100
DEX=100
Anatomy=100.0
ItemID=100.0
ArmsLore=100.0
Parrying=100.0
Begging=100.0
Blacksmithing=100.0
Bowcraft=100.0
Peacemaking=100.0
Camping=100.0
Carpentry=100.0
Cartography=100.0
Cooking=100.0
DetectingHidden=100.0
Enticement=100.0
EvaluatingIntel=100.0
Healing=100.0
Fishing=100.0
Forensics=100.0
Herding=100.0
Hiding=100.0
Provocation=100.0
Inscription=100.0
LockPicking=100.0
Magery=100.0
MagicResistance=100.0
Tactics=100.0
Snooping=100.0
Musicianship=100.0
Poisoning=100.0
Archery=100.0
SpiritSpeak=100.0
Stealing=100.0
Tailoring=100.0
Taming=100.0
TasteID=100.0
Tinkering=100.0
Tracking=100.0
Veterinary=100.0
Swordsmanship=100.0
Macefighting=100.0
Fencing=100.0
Wrestling=100.0
Lumberjacking=100.0
Mining=100.0
Meditation=100.0
Stealth=100.0
RemoveTrap=100.0
Necromancy=100.0
ON=@LOGIN
EVENTS=+e_gear_detector
ON=@SpellCast
IF (<argn>==27) //curse
IF (<ACT.TYPE>==t_armor) || (<ACT.TYPE>==t_weapon_sword) || и т.д.
SYSMESSAGE You can't cast curse on that!
RETURN 1
ENDIF
ENDIF
ON=@ITEMDCLICK
if <findlayer(31)>
findlayer(31).drop
endif
ON=@ITEMEQUIP
if <findlayer(31)>
findlayer(31).drop
endif
on=@login
src.events -e_anti_bug
src.events +e_anti_bug
ON=@SkillStart
IF (<ACTION>==22)||(<ACTION>==skill_provocation)
IF <REGION.GUARDED>
SAY Criminal !
SYSMESSAGE You shall pay for your criminal actions
CRIMINAL
SKILL FAIL
ENDIF
ENDIF
ON=@SPELLEFFECT
IF ((<ARGN>==17)||(<ARGN>==16)||(<ARGN>==9)||(<ARGN>==10))
IF (<SRC.STR> + <SRC.DEX> + <SRC.INT>) >= 300
SRC.EFFECT 3,i_fx_glow,10,20,20
SRC.SYSMESSAGE Your statcap too high for this spell effect
ACT.SYSMESSAGE This spell if uneffected
RETURN 1
ELSE
RETURN 0
ENDIF
ON=@Death
REM_COMBAT_MEMS
ON=@ItemDClick
IF (<SRC.ACTION>==SKILL_lumberjack)&&((<SRC.ACT.TYPE>==t_weapon_sword)||(<SRC.ACT.TYPE>==t_weapon_mace_sharp)||(<SRC.ACT.TYPE>==t_weapon_axe))
SRC.SYSMESSAGE You must wait before performing another action.
RETURN 1
ELSEIF (<SRC.ACTION>==SKILL_mining)&&(<SRC.ACT.TYPE>==t_weapon_mace_pick)
SRC.SYSMESSAGE You must wait before performing another action.
RETURN 1
ELSE
RETURN 0
ENDIF
ON=@ItemSpell
if <argn> == 59
SRC.action = -1
return 1
endif
ON=@LOGin
events +e_hits
ON=@LOGout
events -e_hits
[EOF]
ТАк интересно в чем проблема почему урон не показывается....