Skip to content

Commit

Permalink
Cows may now (randomly) defend themselves from doubleclicks by fallin…
Browse files Browse the repository at this point in the history
…g over.

Corrected various errors with liquid-containers (pitchers, bottles, goblets, etc.)
  • Loading branch information
xuridabur committed Jul 2, 2006
1 parent 7d584f0 commit dc75e04
Show file tree
Hide file tree
Showing 6 changed files with 382 additions and 262 deletions.
1 change: 1 addition & 0 deletions dfns/npc/animals.dfn
Expand Up @@ -316,6 +316,7 @@ TAMEDHUNGER=600 30
FOOD=cow
CARVE=10
RACE=9
SCRIPT=3200
}

[crane]
Expand Down
3 changes: 3 additions & 0 deletions js/jse_fileassociations.scp
Expand Up @@ -149,6 +149,9 @@
// pets from pet static end
// ------------------------

// AI-Stuff
3200=npc/ai/cow_tipping.js

// General Skills
4000=skill/healing.js
4001=skill/repairbow.js
Expand Down
10 changes: 6 additions & 4 deletions js/jse_objectassociations.scp
Expand Up @@ -96,16 +96,18 @@
0x09b3=2100
0x09bf=2100
0x09c7=2100
0x0ff6=2100
0x0ff7=2100
0x0ff8=2100
0x0ff9=2100
0x09a7=2100
0x09ad=2100
0x09c8=2100
0x09ca=2100
0x09cb=2100
0x09ee=2100
0x09ef=2100
0x09f0=2100
0x0ff6=2100
0x0ff7=2100
0x0ff8=2100
0x0ff9=2100
0x0ffb=2100
0x0ffc=2100
0x0ffd=2100
Expand Down
11 changes: 11 additions & 0 deletions js/npc/ai/cow_tipping.js
@@ -0,0 +1,11 @@
// Cow-Tipping!

function onCharDoubleClick( pUser, targChar )
{
var rndValue = RandomNumber( 0, 100 );
if( rndValue < 5 )
{
targChar.DoAction( 8 );
targChar.SoundEffect( 0x78, true );
}
}

0 comments on commit dc75e04

Please sign in to comment.