SphereCommunity
Server wide command - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Server wide command (/Thread-Server-wide-command)



Server wide command - Leonidas - 11-14-2016 10:56 AM

I'm trying to use a server wide command to set every item's attr to 010. I was going to do this after we had everything decorated, but I tried testing this command and it sets every items attr to 0.

I typed .region.allitems attr 010 as a test for just 1 region, then it set everything to 0. Am I doing this wrong? Or is this kind of command not possible?


RE: Server wide command - Kanibal - 11-14-2016 02:09 PM

You can write function like this
Code:
[FUNCTION f_change_attr]
foritems 6144 // all map
    if (<region> == <src.region>)
        ...do something
    endif
endfor