ID:159705
 
mob
proc
Death(mob/M)
if(istype(src,/mob/statue))
return
if(istype(src,/mob/enemy/Champion))
if(src.hp <= 0)
del(src)
return
if(istype(src,/mob/enemy/Lugia))
if(src.hp <= 0)
del(src)
return
if(istype(src,/mob/enemy/Ho_oh))
if(src.hp <= 0)
del(src)
return
if(istype(src,/mob/enemy/Eevee))
if(src.hp <= 0)
del(src)
return
if(istype(src,/mob/player))
src.Move(locate(1,1,1))
src.hp = src.maxhp
return


How do I add when for example I kill a Eevee that I gain 100 Xp and get 100 Pokemoney?
Don't tell me you're going to make that detahCheck proc check if the src being killed is of one of the hundreds of different types of pokemon, are you? >_>
In response to Mizukouken Ketsu
well i was gonna do it like that xD
Um... yeah. Don't duplicate code.
Such a thing should be simply managed in a dynamic manner, by giving Pokemon-"s" a var that contains the number of exp/money/whatever a player gets after killing that Pokemon. Then you simply use this var on the death proc.
mob/pokemon
var/give_exp = 1
Eevee
give_exp = 100
Bulbasaur
give_exp = 55
proc/Die(mob/killer)
killer.exp += src.give_exp
if(src.client) //player
src.loc = locate(1,1,1)
else //NPC
del src

That'd go something like that, keeping it basic.