mob
proc
GiveReward(mob/died)
exp += died.expgive
Credit += died.Creditgive
src.expgain()
src.goldgain()
if(died.specie == "Sand Cat")
if(prob(10))
new/Item/equippable/Body/clothes/shirt(src.loc)
new/Item/equippable/weapons/crudesword(src.loc)
view() << output("<font color = Yellow>Drop:</font>[died.specie] dropped a Crude Sword","system")
expgain(expgive as num)
if(!partycheck(src,expgive))
exp += expgive
levelup()
goldgain(Creditgive as num)
if(!partycheck(src,null,Creditgive))
Credit += Creditgive
Problem description:
Im using a demo from byond resources, Party System by DivineTraveller, and i can see hes not answering any questions, so i thought i would try my luck here.
The problem with the code is that when a mob is killed it dont pass on the exp for the party members, but only the killer.
in my deathproc i have my GiveReward() so i thought i would only show that here with the relevant code. I have been staring on this code, and have been trying back and fourth whith all i could come up with, for i dont know how long.
The game dont give me any runtime errors, but nothing happends when its time to pass on the exp to the party members, anyone got an idea on how to fix this? PS. Everything else in the GiveReward() works like its supposed to, I.e the shirt and weapon dropping.
By the way. Yes i have tried searching on the forum, but i did not find a answer that would fit in this given situation.
Thanks in advance!
~Sleaze