ID:169555
 
every time i buy a items on my game i cant use drop it or pick it up y is that?

Code
obj/shopkeeper //the shopkeeper
icon = 'NPC.dmi'
icon_state = "BunnyBunnie"
density = 1 //so you can't walk on the shopkeeper
verb/Buy() //the verb
set src in oview(2) //pops up if shop keeper is 1 block away
var/Buying = input("[src]: Hello, what would you like?")in list("Healing_Herb (5GP)","Cancel") //alert pops up with the option of the orbs and cancel, one oyu pick is stored in the var Buying
if(Buying == "Healing_Herb (5GP)") //if you chose Green Orb (10GP)
if(usr.gold >= 5) //if usr's gold is greater than or equal to 10
usr.gold -= 5 //takes 10 away from usr's gold
new/obj/Healing_Herb(usr) //creates a new green orb, and places it in usr
verb/Sell(var/obj/O in usr)//the Sell verb, it lets you pick an object from your inv
set src in oview(2) //if src is atleast 1 block away
switch(alert("[src]: Are you sure you want to sell [O] for [O.price] gold?","Selling","Yes","No")) //pop up with the buttons Yes and No
if("Yes") //if you pressed Yes
usr.gold += O.price //usr's gold is plus by O's Priccce
del(O) //deletes the object
obj
var
price = 0 //items worth
icon = 'Items.dmi'
Healing_Herb //the green orb
icon_state = "Herb"
price = 3 //the green orb's worth

can help me out?
Maybe it would be helpful if you posted the Drop and etc code?
The code you posted has nothing to do with get and drop i think <.< are you sure you added get and drop verbs?
InuYasha187 wrote:
every time i buy a items on my game i cant use drop it or pick it up y is that?

Code
> obj/shopkeeper //the shopkeeper
> icon = 'NPC.dmi'
> icon_state = "BunnyBunnie"
> density = 1 //so you can't walk on the shopkeeper
> verb/Buy() //the verb
> set src in oview(2) //pops up if shop keeper is 1 block away
> var/Buying = input("[src]: Hello, what would you like?")in list("Healing_Herb (5GP)","Cancel") //alert pops up with the option of the orbs and cancel, one oyu pick is stored in the var Buying
> if(Buying == "Healing_Herb (5GP)") //if you chose Green Orb (10GP)
> if(usr.gold >= 5) //if usr's gold is greater than or equal to 10
> usr.gold -= 5 //takes 10 away from usr's gold
> new/obj/Healing_Herb(usr) //creates a new green orb, and places it in usr
> verb/Sell(var/obj/O in usr)//the Sell verb, it lets you pick an object from your inv
> set src in oview(2) //if src is atleast 1 block away
> switch(alert("[src]: Are you sure you want to sell [O] for [O.price] gold?","Selling","Yes","No")) //pop up with the buttons Yes and No
> if("Yes") //if you pressed Yes
> usr.gold += O.price //usr's gold is plus by O's Priccce
> del(O) //deletes the object
> obj
> var
> price = 0 //items worth
> icon = 'Items.dmi'
> Healing_Herb //the green orb
> icon_state = "Herb"
> price = 3 //the green orb's worth
>

can help me out?



^ copyed from demooooooooo XD
In response to Yami_Marik0
Exactly.
In response to ITG Master
nvm i got it working v.vand sorry for taking to long my grand mother just paased on
Create another string or a few for inventory items to drop and pick up.