Spitting Spiders

ITS'aME'aMARIO!!!!

New Adventurer
Joined
Jul 28, 2004
Messages
725
Reaction score
0
Location
Daragoth
Ive fought the Spitting spiders on regular thornlands and heras... then I fought the ones on nightmare thornlands....


The nightmare ones deal much more damage.... they are supposed to be the same monster right?


Also on average for the easier spiders i get 80xp while on the harder ones i get 60xp

yeah, i'm shooting myself in teh foot as i need to level but thought I'd bring it to your attention.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
There are only two kinds of spitting spiders, they give 70XP and 80XP from easiest to hardest (the harder ones do not move). If you got 60XP for one of the harder ones, it was either juiced, or it has to do with what you attacked it with.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
monsters/spider_spitting
Code:
//Giant Spider

{
	const DELETE_ON_DEATH 1
	const SOUND_PAIN 	monsters/spider/spiderhiss.wav
	const SOUND_IDLE1 	monsters/spider/spideridle.wav
	const SOUND_DEATH 	monsters/spider/spiderdie.wav
	const SND_STRUCK1 	body/flesh1.wav
	const SND_STRUCK2 	body/flesh2.wav
	const SND_STRUCK3 	body/flesh3.wav
	const SND_STRUCK4 	SOUND_PAIN
	const SND_STRUCK5 	SOUND_PAIN
	const SOUND_ATTACK1	zombie/claw_miss1.wav
	const SOUND_ATTACK2	zombie/claw_miss2.wav

	setvar ANIM_IDLE 	idle
	setvar ANIM_WALK 	walk
	setvar ANIM_RUN 	run
	setvard ANIM_ATTACK 	attack
	const ANIM_DODGE 	dodge
	setvard ANIM_DEATH 	die

	const ATTACK_SPEED   650
	const ATTACK_DAMAGE_LOW	4
	const ATTACK_DAMAGE_HIGH	6
	const ATTACK_ACCURACY 60%
	const NPC_GIVE_EXP	70
	setvard ATTACK_RANGE 32
	setvard ATTACK_HITRANGE 69

	const SPIDER_IDLE_VOL   3
	const SPIDER_IDLE_DELAY 3.6
	const SPIDER_VOLUME  10

	const SPIT_FREQ 1.0
    const AIM_RATIO 50

	setvard MOVE_RANGE 384

	setvard NO_STEP_ADJ 1 //maybe causing aiming issues

	//setvard NPC_MOVE_TARGET enemy	//base_npc_attack - Premptive attack
	setvard RETALIATE_CHANCE 75%   //base_npc_attack - Automatically switch targets to the last damaging player
}

#include monsters/spider_base

{
   eventname npc_spawn

   hp 80
   //ov 359
   width 64
   height 64
   name the|Spitting Cave Spider
   hearingsensitivity 7
   setmodel monsters/gspider.mdl

   takedmg all .8

	//catchspeech debug_props debug
}

{ debug_props
	saytextrange 1024
	saytext I cansee ( nme $cansee(enemy) hunt $cansee(HUNT_LASTTARGET) cycl CYCLE_TIME is IS_HUNTING plr HUNTING_PLAYER )
}

   // Deal damage
{ [override] bite1

	//callevent npcatk_faceattacker

	setvard AS_ATTACKING 10

	playrandomsound CHAN_VOICE SOUND_ATTACK1 SOUND_ATTACK2
	dodamage HUNT_LASTTARGET ATTACK_HITRANGE $randf(ATTACK_DAMAGE_LOW,ATTACK_DAMAGE_HIGH) ATTACK_ACCURACY

	if $cansee(enemy)
	tossprojectile HUNT_LASTTARGET ATTACK_SPEED $randf(ATTACK_DAMAGE_LOW,ATTACK_DAMAGE_HIGH) 2 proj_poison (0,48,32)
}


{ npc_targetsighted

	////dbg Validating $get(PARAM1,name) ( Delay FIRE_DELAY Cansee $cansee(enemy) )

	if $cansee(enemy)

	if $get(PARAM1,range) > ATTACK_RANGE

	playanim once ANIM_ATTACK
}

monsters/spider_turret
Code:
//Spider Turret by Thothie ( From Spitting Spider + Horror )
//- This is basically a turret - it does not move, just shoots

{
	const DELETE_ON_DEATH 1
	const SOUND_PAIN 	monsters/spider/spiderhiss.wav
	const SOUND_IDLE1 	monsters/spider/spideridle.wav
	const SOUND_DEATH 	monsters/spider/spiderdie.wav
	const SND_STRUCK1 	body/flesh1.wav
	const SND_STRUCK2 	body/flesh2.wav
	const SND_STRUCK3 	body/flesh3.wav
	const SND_STRUCK4 	SOUND_PAIN
	const SND_STRUCK5 	SOUND_PAIN
	const SOUND_ATTACK1	zombie/claw_miss1.wav
	const SOUND_ATTACK2	zombie/claw_miss2.wav

	setvar ANIM_IDLE 	idle
	setvar ANIM_WALK 	walk
	setvar ANIM_RUN 	run
	setvard ANIM_ATTACK 	attack
	const ANIM_DODGE 	dodge
	setvard ANIM_DEATH 	die

	setvard ATTACK_RANGE 128
	const ATTACK_SPEED   650
	const ATTACK_DAMAGE_LOW	12
	const ATTACK_DAMAGE_HIGH 24
	const ATTACK_ACCURACY 60%
	setvard NPC_GIVE_EXP	80

	setvard ATTACK_RANGE 128
	setvard MOVE_RANGE 75

	const SPIDER_IDLE_VOL   3
	const SPIDER_IDLE_DELAY 3.6
	const SPIDER_VOLUME  10

	const SPIT_FREQ 1.0

    const AIM_RATIO 50

	setvard NO_STEP_ADJ 1 //maybe causing aiming issues

	setvard NO_STUCK_CHECKS 1 //not stuck, I just don't move

	setvard NPC_MOVE_TARGET enemy	//base_npc_attack - Premptive attack
	setvard RETALIATE_CHANCE 75%   //base_npc_attack - Automatically switch targets to the last damaging player
}

#include monsters/spider_base

{
   eventname npc_spawn

   hp 150
   //ov 359
   width 64
   height 64
   roam 0
   movespeed 0.0
   name the|Spitting Spider
   hearingsensitivity 10
   setmodel monsters/gspider.mdl

   takedmg all .8

	catchspeech debug_props debug
}

{ debug_props
	saytextrange 1024

	if ( $cansee(enemy) ) saytext I see enemy: ( $get(ent_lastseen,name) )
	if ( IS_HUNTING ) saytext I am hunting: $get(ENTITY_ENEMY,name)
	if ( HUNTING_PLAYER ) saytext I am hunting a player.

	if ( !$cansee(enemy) ) saytext I see NO enemy.
	if ( !IS_HUNTING ) saytext I am NOT hunting.
	if ( !HUNTING_PLAYER ) saytext I am NOT hunting a player.

	saytext My cycle time is CYCLE_TIME
}

{ [override] bite1 //called from modelanim attack @frame 12

	playrandomsound CHAN_VOICE SOUND_ATTACK1 SOUND_ATTACK2
	dodamage ENTITY_ENEMY ATTACK_HITRANGE $randf(ATTACK_DAMAGE_LOW,ATTACK_DAMAGE_HIGH) ATTACK_ACCURACY

	setmovedest ENTITY_ENEMY 9999

	tossprojectile ENTITY_ENEMY ATTACK_SPEED $randf(ATTACK_DAMAGE_LOW,ATTACK_DAMAGE_HIGH) 2 proj_poison (0,48,32)
}

{ reset_fire_delay

	setvard FIRE_DELAY 0
}

{ npcatk_targetvalidate

	////dbg Validating ( FIRE_DELAY $cansee(enemy) )

	if !FIRE_DELAY
	setvard FIRE_DELAY 1
	callevent SPIT_FREQ reset_fire_delay

	if $cansee(enemy)
	////dbg Fire!
	playanim once ANIM_ATTACK	
}

If results contradict data, all I can say is "WTF". The HP range is 80-150 so either could go down in 3 hits... But it may very well be that both of them were the same spider, and you were just getting more XP because there were some high level peeps on.

edit: I've also noticed that lots of these scripts have NPC_GIVE_EXP as a const when it should be a setvard, this may cause some screwy things to happen with XP as well (fixed, although I thought we dealt with that in the mass S&R of JAN2007.) [These are also very old scripts, or altered from said, so the conventions are funky]
 

ITS'aME'aMARIO!!!!

New Adventurer
Joined
Jul 28, 2004
Messages
725
Reaction score
0
Location
Daragoth
I play alone when i'm leveling. At least when I observed the exp difference I was.

But hey, if you say there is nothing wrong. I can't be one to complain! :twisted:

+1 Martial Arts Power
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
I'm not saying there's nothing wrong - I'm just saying that's what the script says, and if the results don't match, I've no clue what's wrong. Suffice to say, the XP system is screwy.
 

WeissberV

New Adventurer
Crusaders
Joined
Jan 21, 2007
Messages
1,053
Reaction score
0
Age
32
Location
England
when i played sfor with my 2nd character i noticed the "spitting" spiders (i liked the old consupto [how ever u spell it] name) didn't attack me, they only attacked once and then stopped attacking me all together they just stood still and looked at me (kinda freaky) this happened on thornlands when my main character was like lvl 15 or so except then they went "brain dead"
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
*sigh* You know it seems they break in some way in every other version - tis why you see all those dbg statements commented out there. I really should just re-write them from scratch. Again, I think it's largely just old conventions, not only in the top script there, but in the spider base below it - script was basically ported over from MS1.35 near as I can tell.
 
Top