ID:149837
 
this is my script is makes a mine verb come up whenever you go next to a rock
obj/rock
icon = ('rocks.dmi')
density = 1
verb/Check_Rocks()
set src in oview(1)
if(usr.Mining<=20)
usr<<"You cant mine this yet!"
else if(usr.Mining>=20)
usr<<"You can mine, because you are a high enough level"
usr.verbs += /mob/hidden/verb/Mine





mob/hidden
verb
Mine()



HOW THE POO would i put in this
area/MiningVerbDel
Exited()
usr.verbs -= (mob/hidden/verb/mine)

it comes up with errors
PLEASE HELP!
usr.verbs -= (mob/hidden/verb/mine)
I think, it should be like this:
usr.verbs -= /mob/hidden/verb/mine
In response to Kestutis
Yep thats its.. and then just add those in there! ;)

LJR
In response to Kestutis
it always comes up with this

Objects.dm:221:error:usr.verbs:duplicate definition
Objects.dm:221:error:/mob/hidden/verb/mine:duplicate definition
Objects.dm:221:error:-= :instruction not allowed here


This is my whole Mining script!
obj/rock
icon = ('rocks.dmi')
density = 1
verb/Check_Rocks()
set src in oview(1)
if(usr.Mining<=20)
usr<<"You cant mine this yet!"
else if(usr.Mining>=20)
usr<<"You can mine, because you are a high enough level"
usr.verbs += /mob/hidden/verb/Mine

mob/hidden
verb
Mine()//this is not done because i am still trying to get the mining verb delete thing to work


area/Delminingverb
...
Exited()
usr.verbs -= /mob/hidden/verb/mine
In response to LordJR
look at my two posts one is new
In response to Mrhat99au
Mrhat99au wrote:
it always comes up with this

Objects.dm:221:error:usr.verbs:duplicate definition
Objects.dm:221:error:/mob/hidden/verb/mine:duplicate definition
Objects.dm:221:error:-= :instruction not allowed here


This is my whole Mining script!
obj/rock
icon = ('rocks.dmi')
density = 1
verb/Check_Rocks()
set src in oview(1)
if(usr.Mining<=20)
usr<<"You cant mine this yet!"
else if(usr.Mining>=20)
usr<<"You can mine, because you are a high enough level"
usr.verbs += /mob/hidden/verb/Mine

mob/hidden
verb
Mine()//this is not done because i am still trying to get the mining verb delete thing to work


area/Delminingverb
...
Exited()
usr.verbs -= /mob/hidden/verb/mine<FONT COLOR=FF000><--make sure this here is indented. Also, is it Mine? or mine?</FONT>