ID:141355
 
<b>Code:
mob
var
SP = "0"//this incoperates ShopPoints into the game and you start on 0
proc
DeathCheck6(mob/M)
if(src.NPC)
usr.SP += "5"
M.SP += src.SP/2
src.SP = src.SP/2
del(M)
if(M.client)
usr.SP += "10"//Every PVPkill you get 10 points
src<<"<font size=1><b>you have gained 10 Shop points"
del(M)
if (M.health <= 0)
world << "<font size=1><b>[M] has drowned!"
M.dead=1
M.deathforest=0
if(M.earthscroll==1)
src.earthscroll=0
if(M.heavenscroll==1)
src.heavenscroll=0
M.deaths+=1
M.loc=locate(49,1,4)
M.health = M.maxhealth
M.chakra = M.Mchakra
M.Frozen = 0

M.Moveing = 0
M.Move_Delay=0
M.Kshibari=0
M.kubi=0
M.firing = 1
M.makeHunter()
M.Skills()
M.makeJounin()

if(M.max_exp<=0)
M.max_exp=0
if(M.exp<=0)
M.exp = 0
M.doing = 1
for(var/mob/npcs/Bunshin/B)
B.Die()
del(B)
for(var/mob/npcs/KBunshin/K)
K.Die()
del(K)
src.loc=locate(0,0,0)
src.resting = 0
src.doing = 0
src.screwed=0
src.jourou=0


if(src.Weights)
src.Weights=0
src.Move_Delay = 1
src<<"You will be brought back to your spawn point in 5 seconds!"
sleep(80)
src.loc=locate(6,58,20)
if(src.onwater)
src.onwater=0
if(inwar1 == 1)
war1 -= 1
if(inwar2 == 1)
war2 -= 1
if(src.puppet)
usr.verbs -= new /mob/puppet/verb/PuppetNorth()
usr.verbs -= new /mob/puppet/verb/PuppetSouth()
usr.verbs -= new /mob/puppet/verb/PuppetEast()
usr.verbs -= new /mob/puppet/verb/PuppetWest()
client
command_text = "OOC "</b>




mob
Stat()
statpanel("Stats")

stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
stat(" Info")
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
stat("Name: [usr]")
stat("Bloodline: [Clan]")
stat("Rank: [rank]")
stat("Home Village: [Village]")
stat("Yen: [Yen]$")
stat("Kills: [kills] Missing Kills [missingkills]")
stat("Deaths: [deaths]")
stat("Location: [usr.x],[usr.y],[usr.z]")
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
stat(" Status")
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
stat("Shop Points","[usr.SP]")
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
stat("Level: [level]")
stat("HP: [health]/[maxhealth]")
stat("Chakra: [chakra]/[Mchakra]")
var/ttexp=round(src.taiexp*100/src.mtaiexp)
var/nnexp=round(src.ninexp*100/src.mninexp)
var/ggexp=round(src.genexp*100/src.mgenexp)
stat("Taijutsu: [tai] ([ttexp]%)")
stat("Ninjutsu: [nin] ([nnexp]%)")
stat("Genjutsu: [gen] ([ggexp]%)")
stat("Seals: [seals]% Accuracy")
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
stat("Shuriken Skill: [shurikenskill]")
stat("Kunai Skill: [kunaiskill]")
stat("Trap Skill: [trapskill]")
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
stat("Missions:")
stat("D: [dmission]")
stat("C: [cmission]")
stat("B: [bmission]")
stat("A: [amission]")
stat("S: [smission]")
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
if(src.Aburame)
stat("Konchuu: [Konchuu]")
if(src.Akimichi)
stat("Calories: [calories]")
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
stat("Base Uses:")
stat("Bunshin No Jutsu uses - [BunshinN]")
stat("Henge No Jutsu uses - [hengeN]")
stat("Kawarimi no jutsu uses - [KawaN]")
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
statpanel("Inventory")
stat("",contents)
..()





Problem description:

Ok problem is shop points or SP in code well i have tried to add it in so when u kill player u get 10 SP and when u kill an NPC you get 5 SP well the problem is i added SP into statpanel with my stats but when i kill i.e a NPC i get no SP can anyone at all tell me what i have done wrong.?

thankyou if you help ^_^

You're adding SP to the src and usr of the proc. BAD. Not only because you're using usr, but because in this case usr and src are the same.
//where src is the person killed and M is the killer
mob/proc/Death(mob/M)
if(NPC) M.SP += 5
else M.SP += 10
In response to Spunky_Girl
im so glad thnk u so much ^^ ur such a great help ^^