Code:
mob
proc
DeathCheck()
if(src.NPC|src.health <= 0) // if Hp is zero you die
src.NPC = 1
view() << "[src] dies!" // tells people in the view that the person has died
del(src)
Respawn()
src.health = maxhealth // restores their hp
src.Move(locate(180,282,1)) // moves them to the coordinates
My second issue is this my level up will only go to like level 4 then it will stop leveling the player level and start on the str level
LevelUp()
if(src.exp>=src.max_exp)
src.max_exp+=rand(5,20) //makes it harder to levelup next time
usr.maxhealth += rand(10,15) //increases their maxhp
src.level+=1
src.exp = 0 //resets their exp
usr << "Congrats on makeing level [level] you earned it!"
src.strexp+=rand(10,25) //increases their strength a random amount
strlevl() //gives them their str new level
im havin more issues but I wanna see if I can solve those on my own by consulting the dm guide (yes i printed it out)
if(src.NPC&&src.health <= 0)
instead of
if(src.NPC|src.health <= 0).
If that doesn't work, then the problem might be where you assign damage.
As for leveling up, I'm not sure. Double-check the strlevl() proc.