mob
verb/Give_Gold(mob/M as mob in oview(7), msg as num)
set category = "Commands"
if(usr.Gold >= 0)
usr.Gold -= msg
M.Gold += msg
usr << "You give [M] [msg] gold"
M << "[usr] gives you [msg] gold"
if(usr.Gold >= msg)
usr << "You dont have that much gold!"
if(msg <= usr.Gold)
usr << "Umm Don't cheat OK?"
M << "Tried to use you to cheat!"
ID:266458
Mar 16 2002, 4:35 pm (Edited on Mar 16 2002, 4:40 pm)
|
|
Theres something wrong with it probably all the ifs but what can i replace them with or if thats not the problem what is it?
|
Try this:
mob/verb/Give_Gold(mob/M in oview(7)) -Kappa the Imp |
In response to Kappa the Imp
|
|
Instead of <= it should be < because then you wouldn't be able to give anything.
|
for some reason the else part doesnt work
---------------------------------------- mob any help please? |
In response to Thief Jack
|
|
mob/verb/Give_gold(mob/M as mob in world) That works fine. |
<dm> code goes here </dm>
This will make your code soooo much easier to read.
~X