The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tGolemAssembly
Author Message
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #2
RE: tGolemAssembly
And this should be the standard NPC Golem...

Code:
[Events AIGolem]
On=@SpellEffect
If (<ArgN1> == sHeal) || (<ArgN1> == sGreaterHeal) || (<ArgN1> == sParalyze) || (<ArgN1> == sPoison)
Return 1
EndIf

On=@GetHit
If (<IsPet>)
If (<Owner.Distance> <= 7)
  If (<ArgN1> > <Owner.Mana>)
   Local.Dam=<Eval (<ArgN1> - <Owner.Mana>)>
   Owner.Mana -= <ArgN1>
   Owner.Damage <Local.Dam>,DamGod,<Src.UID>
  Else
   Owner.Mana -= <ArgN1>
  EndIf
EndIf
EndIf

On=@Hit
If !(<R19>)
Src.SMsgL -1,1070696    // You have been stunned by a colossal blow.
If (<Src.Events> == eStunned)
  Src.FindID.iStunMemory.Timer += 10
Else
  Src.Events +eStunned
  Src.Flags &= ~StatFWar
  Src.Flags |= StatFParalyzed
  Serv.NewItem iStunMemory,1,<Src.Equip>
EndIf
EndIf

On=@DeathCorpse
NewLoot=GolemLoot


[Events eStunned]
On=@WarMode
Return 1

On=@SpellCast
Return 1

On=GetHit
ArgN2 |= DamNoUnparalyze
Return


[ItemDef iStunMemory]
ID=iMemory
Name=Stun Memory

On=@Create
Timer=10

On=@Timer
Cont.Events -eStunned
Cont.Flags &= ~StatFParalyzed
Remove
Return 1


[Template GolemLoot]
Category=Templates: NPC Loot
Subsection=Monsters: Mechanical
Description=Golem
Item=iArcaneGem,1,R19
Item=iPowerCrystal,1,R19
Item=iClockworkAssembly,1,R19
Item={RandomCommonMusicBoxGear 75 RandomUncommonMusicBoxGear 24 RandomRareMusicBoxGear 1},1,R19
Item=RandomIngot,{11 25}


[CharDef 02F0]
DefName=cGolem
Name=golem
Can=CanWalk|CanUseHands
MoveRate=100
Dam=13,24
Armor=35,55
Icon=iGolemIcon
Sound=
FoodType=
MaxFood=0
Resources=0
Aversions=tTrap
Desires=tIngot
BloodColor=-1
TEvents=AIGolem

Category=Monsters
Subsection=Mechanical
Description=Golem

On=@Create
NPC=BrainMonster

Fame=3500
Karma=-3500
//Alignment=Evil

DamPhysical=100
DamFire=0
DamCold=0
DamPoison=0
DamEnergy=0

ResPhysical=35,55
ResFire=100
ResCold=10,30
ResPoison=10,25
ResEnergy=30,40

OStr={251 350}
ODex={76 100}
OInt={101 150}
MaxHits={151 210}

Wrestling={601 1000}
Tactics={601 1000}
MagicResistance={1501 1900}
Parrying={601 1000}


[EOF]

Fixed a small typo! ^_^
(This post was last modified: 03-27-2016 07:43 PM by Khaos.)
03-27-2016 07:06 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
tGolemAssembly - Khaos - 03-27-2016, 05:19 PM
RE: tGolemAssembly - Khaos - 03-27-2016 07:06 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)