ID:266365
![]() Jan 30 2002, 3:00 pm
|
|
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!
|
![]() Jan 30 2002, 3:02 pm
|
|
Where you check death add to their money var.
|
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).
|
It says a deathcheck() code i know that but how does the usr get money for killing them,how do you add the money?
|
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 |
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? |