My code is:
Delete(obj/O in oview(6))
set category = "GM"
del(O)
And for some reason i cannot delete anything...it doesnt even give me the option if i right click something...Thanks in advance cya! :)
ID:148535
Jan 5 2003, 9:00 am
|
|
In response to Unknown Person
|
|
does this delete mobs also or just turfs?
|
maybe something like this:
</DM> mob/GM/verb/Delete(X as turf|obj|mob in oview(6)) set category = "GM" if(alert(usr,"Are you sure you want to delete [X]?","Delette [X]","No","Yes")=="No") return del(X) </DM> This can delete anything in types of mob, obj and turf. Hope i didnt make any mistakes. lol |
In response to Weedman
|
|
thanks :)
|
In response to Weedman
|
|
Weedman wrote:
maybe something like this: Just one small mistake, and for the sake of optimization ill tell you. Instead of X as turf|obj|mob just use X as atom, becuase atom represents and mappable object. |
verb
Delete_Obj(obj/turf in view())
set category = "Admin"
del(turf)
The delete verb above seems kind of awkward. It deletes objects even though I have "turf" there. But it still works. Its in "my" game.