Savages

Want to contribute to the Ultima Offline eXperiment? Submit your JS/DFN/Code fixes and/or other UOX3 improvements here!
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Savages

Post by dragon slayer »

This is a pretty cool npcs as they have there own ondeath function

make a savage.dfn and add this npcs to it

Code: Select all

[m_savage]
{
GET=basehuman
NAMELIST=18
ID=0x00B7
DIRECTION=W
GOLD=150 200
EQUIPITEM=0x0f62
EQUIPITEM=0x144e
EQUIPITEM=0x1452
EQUIPITEM=0x154B
STR=96 115
DEX=81 105
INT=51 65
KARMA=-1000
FAME=1000
MAGICRESISTANCE=250 475
TACTICS=650 875
SWORDSMANSHIP=650 875
MACEFIGHTING=650 875
FENCING=660 975
DAMAGE=23 27
DEF=4
NPCWANDER=4
FX1=-1
FY1=-1
FZ1=-1
FX2=20
NPCAI=2
TOPEACE=762 5
FLAG=NEUTRAL
TOTAME=1100
RACE=22
}

[f_savage]
{
GET=basehuman
NAMELIST=18
ID=0x00B8
DIRECTION=W
GOLD=150 200
EQUIPITEM=0x0f62
EQUIPITEM=0x144e
EQUIPITEM=0x1452
EQUIPITEM=0x154B
STR=86 100
DEX=81 95
INT=61 75
KARMA=-1000
FAME=1000
MAGICRESISTANCE=250 475
TACTICS=650 875
SWORDSMANSHIP=650 875
MACEFIGHTING=650 875
FENCING=660 975
WRESTLING=150 375
DAMAGE=10 23
DEF=4
NPCWANDER=4
FX1=-1
FY1=-1
FZ1=-1
FX2=20
NPCAI=2
TOPEACE=762 5
FLAG=NEUTRAL
TOTAME=1100
RACE=22
}

[m_savagerider]
{
GET=basehuman
NAMELIST=18
ID=0x00B9
DIRECTION=W
GOLD=150 200
EQUIPITEM=0x0f62
EQUIPITEM=0x144e
EQUIPITEM=0x1452
EQUIPITEM=0x1545
EQUIPITEM=ridgeback
STR=96 115
DEX=81 105
INT=51 65
KARMA=-1000
FAME=1000
MAGICRESISTANCE=250 475
TACTICS=650 875
SWORDSMANSHIP=650 875
MACEFIGHTING=650 875
FENCING=660 975
DAMAGE=29 34
DEF=4
NPCWANDER=4
FX1=-1
FY1=-1
FZ1=-1
FX2=20
NPCAI=2
TOPEACE=762 5
FLAG=NEUTRAL
TOTAME=1100
RACE=22
}

[f_savagerider]
{
GET=basehuman
NAMELIST=18
ID=0x00Ba
DIRECTION=W
EQUIPITEM=0x0f62
EQUIPITEM=0x144e
EQUIPITEM=0x1452
EQUIPITEM=0x1545
EQUIPITEM=ridgeback
GOLD=150 200
STR=86 100
DEX=81 95
INT=61 75
KARMA=-1000
FAME=1000
MAGICRESISTANCE=250 475
TACTICS=650 875
SWORDSMANSHIP=650 875
MACEFIGHTING=650 875
FENCING=660 975
WRESTLING=150 375
DAMAGE=29 34
DEF=4
NPCWANDER=4
FX1=-1
FY1=-1
FZ1=-1
FX2=20
NPCAI=2
TOPEACE=762 5
FLAG=NEUTRAL
TOTAME=1100
RACE=22
SCRIPT=3004
}
Now make a savagedeath.js and add this code to it

Code: Select all

function onDeath( pDead ) 
{ 
     var nSpawned = SpawnNPC( "savageridgeback", pDead.x, pDead.y, pDead.z, pDead.worldnumber );
} 
Now when the savage rider dies your players have a chance at his mount
This script can be used for many mounts to spawn even rare ones to spawn say on a bad guy
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Post by dragon slayer »

Almost forgot the race you add into your race.dfn

[RACE 22]
{
NAME=Savage
PLAYERRACE=1
RACIALENEMY=1
}

add this at the bottom of your race.dfn so savages doesn't like orcs
if you want orcs to hate savages add this line to race=1
RACIALENEMY=22
John
UOX3 Neophyte
Posts: 32
Joined: Thu Sep 15, 2011 7:41 am
Location: Inside Tom's Brain
Has thanked: 0
Been thanked: 0

Post by John »

Should m_savagerider also have script=3004 or did only f_savagerider have the script number? I vaguely remember savages. I was more in dungeons on live than other places.

I also remember some savages use to chant (savage shamans?) and I think there was tribal paint for players to use that made them look like savages until you used an oil cloth to wash the tribal paint off.. and they went back to their original skin color.

For some reason I do believe there were savage shamans that chanted. anyone else remember this or did all savages chant?
Last edited by John on Thu Jan 09, 2014 6:21 am, edited 1 time in total.
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Post by dragon slayer »

only savage riders would have the script because that spawns there mounts when the die so you have a chance at it.

yeah i still got to do savage shamans and trible paint i havent took a cack at yet. I'm still trying to figoure out how to make a dye hair and dye tubs though js
John
UOX3 Neophyte
Posts: 32
Joined: Thu Sep 15, 2011 7:41 am
Location: Inside Tom's Brain
Has thanked: 0
Been thanked: 0

Post by John »

In your first post. m_savagerider doesn't have the script=3004 like the f_savagerider does. My question was should I add that script number to the m_savagerider as well. I get that m_savage and f_savage would not have the script number. I only ask because it would seem that the mount would only spawn when female riders get killed unless we add script to the male riders too.. but I wasnt sure how they worked on live servers.. like if only you were able to get mounts from females or both male and females.
Last edited by John on Thu Jan 09, 2014 6:21 am, edited 1 time in total.
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Post by dragon slayer »

yeah go ahead add that my bad . i should update this post :) thanks for spotting that
John
UOX3 Neophyte
Posts: 32
Joined: Thu Sep 15, 2011 7:41 am
Location: Inside Tom's Brain
Has thanked: 0
Been thanked: 0

Post by John »

My eyes are like a syntax checker.. well, not really lol. I've added these savages to my server and they look great. thanks :)
Last edited by John on Thu Jan 09, 2014 6:21 am, edited 1 time in total.
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Post by dragon slayer »

np :) I'm almost done with many more npcs uox3 was missing just trying to get this final touchs on them before i post.
Post Reply