ID:266365
 
When the Heman kills the monster(Fox)How do they get the money when they only kill them?If you know please tell me thanks!
Where you check death add to their money var.
In response to Nadrew
But,I don't have a money var yet.I don't know when they get money for killing them(I don't know how to code that).
In response to SSJ4_Gohan_Majin
Then maybe you need to read ZBT again.
In response to Nadrew
It says a deathcheck() code i know that but how does the usr get money for killing them,how do you add the money?
In response to SSJ4_Gohan_Majin
usr.money += 10//amount of money here

Of course you need to make a money var.
In response to SSJ4_Gohan_Majin
SSJ4_Gohan_Majin wrote:
It says a deathcheck() code i know that but how does the usr get money for killing them,how do you add the money?

You make a money var for your mobs, and add something to it during the deathcheck() proc.

Lummox JR
In response to Nadrew
Theres errors on this code:mob/proc/Fox_Kill()

mob/Fox
icon = 'Fox.dmi'

mob
var
client
North()
step(mob,SOUTH)
South()
step(mob,NORTH)
East()
step(mob,WEST)
West()
step(mob,EAST)

mob/proc/deathcheck()
if(src.Health<=0)
if(src.client)//If it's a PC player
src.loc=locate(1,1,1)
src<<"You died, [usr] killed you"
usr<<"You killed [src]!"
world<<"<font color=red>[src] was killed by [usr]!"
else
usr<<"You killed [src]"
del(src)
usr.money += 100//amount of money here

i put in the Attack System stat("Zenni",Zenni) and i also
put Zenni=100.Whats the problem with this code?
In response to SSJ4_Gohan_Majin
You still have no money var, and you need to add the money before del().
In response to Nadrew
Ah,Your right.Thanks alot!