//////////////////////CODE\\\\\\\\\\\\\\\\\\\\\\\
Win(mob/NPC/Monster/Rat/M)
usr.Experience += M.exp
alert("Congratulations: You gain [usr.Experience] Experience and 5 Silver Coins!"
///////////////////RUNTIME ERROR\\\\\\\\\\\\\\\\\
runtime error: Cannot read null.exp
proc name: Win (/turf/Battleverbs/Attack/proc/Win)
source file: Attack.dm,57
usr: GM Little Sally (/mob/PC)
src: Click To Attack Monster (16,146,1) (/turf/Battleverbs/Attack)
call stack:
Click To Attack Monster (16,146,1) (/turf/Battleverbs/Attack): Win(null)
Click To Attack Monster (16,146,1) (/turf/Battleverbs/Attack): PCAttack()
Click To Attack Monster (16,146,1) (/turf/Battleverbs/Attack): Click(Click To Attack Monster (16,146,1) (/turf/Battleverbs/Attack))
If you need anymore code please let me know :)
Thanks,
Little Sally