ID:141323
 
mob/Item_Seller
icon = 'npc.dmi'
icon_state = "Pokeball Seller"
HP = "9999999999999999999999999999"
HP = "9999999999999999999999999999"
verb
Buy()
set src in oview(3)
if(client.IsByondMember())
switch(input("What do you want to buy???")in list("Pokeball - 150","Nothing"))
if("Pokeball - 150")
var/give = input("How many Pokeballs do you wish to buy?")as num
if(usr.Money >= give*150&&give>0)
usr<<"Item bought"
usr.Money -= give*150
if(usr.pokeballs>=1)
var/obj/Pokeball/P = locate(/obj/Pokeball) in usr.contents3
usr.pokeballs += give
P.name = "Pokeballs x[usr.pokeballs]"
else
var/obj/Pokeball/P = new(usr)
usr.contents3.Add(P)
usr.pokeballs += give
P.name = "Pokeballs x[usr.pokeballs]"
else
usr<<"Not enough Money"
else
switch(input("What do you want to buy???")in list("Pokeball - 200","Nothing"))
if("Pokeball - 200")
var/give = input("How many Pokeballs do you wish to buy?")as num
if(usr.Money >= give*200&&give>0)
usr<<"Item bought"
usr.Money -= give*200
if(usr.pokeballs>=1)
var/obj/Pokeball/P = locate(/obj/Pokeball) in usr.contents3
usr.pokeballs += give
P.name = "Pokeballs x[usr.pokeballs]"
else
var/obj/Pokeball/P = new(usr)
usr.contents3.Add(P)
usr.pokeballs += give
P.name = "Pokeballs x[usr.pokeballs]"
else
usr<<"Not enough Money"

When I do the buy verb, it says "cannot access null.IsByondMember...

Whats wrong?
Because you used "set src" so that src is the selling mob instead of the player buying from them, src.client is trying to read the client var from your NPC. That should be usr.client, since usr is the player in this verb and src is the merchant.

Lummox JR
In response to Lummox JR
Thanks!