ID:148218
 
I dont believe this something so easy i forgot how to do.
anyway its a peice of coding:

mob/Mod/verb/GiveMoney(mob/M in world)
set category = "Mod"
desc = "Give Somone N Amount Of Money"
var/N = null
M<<"[src] has given you [N] gold."
src<<"you gave [M] [N] amount of gold."

i forgot how to make the src be able to use that null to give money.
JohnReaper wrote:
I dont believe this something so easy i forgot how to do.
anyway its a peice of coding:

mob/Mod/verb/GiveMoney(mob/M in world)
set category = "Mod"
desc = "Give Somone N Amount Of Money"
var/N = null
M<<"[src] has given you [N] gold."
src<<"you gave [M] [N] amount of gold."

i forgot how to make the src be able to use that null to give money.


mob/Mod/verb/GiveMoney(mob/M in world,N as num)
set category = "Mod"
desc = "Give Somone N Amount Of Money"
M<<"[src] has given you [N] gold."
src<<"you gave [M] [N] amount of gold."

or:
mob/Mod/verb/GiveMoney(mob/M in world)
set category = "Mod"
desc = "Give Somone N Amount Of Money"
var/N = input("How much would you like to give to [M]?") as num
M<<"[src] has given you [N] gold."
src<<"you gave [M] [N] amount of gold."


Also, I think this belongs in Newbie Central

In response to Cra Zee Coder
Cra Zee Coder wrote:
mob/Mod/verb/GiveMoney(mob/M in world,N as num)
set category = "Mod"
desc = "Give Somone N Amount Of Money"
M<<"[src] has given you [N] gold."
src<<"you gave [M] [N] amount of gold."

or:
mob/Mod/verb/GiveMoney(mob/M in world)
set category = "Mod"
desc = "Give Somone N Amount Of Money"
var/N = input("How much would you like to give to [M]?") as num
M<<"[src] has given you [N] gold."
src<<"you gave [M] [N] amount of gold."

You should also check they you aren't trying to give a negative amount and that you aren't giving more money then you have.
In response to OneFishDown
As an admin, I don't think he'd care :)
In response to Foomer
yea it was num not null :| anyway thanks all