SphereCommunity
HELP needed - Printable Version

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



HELP needed - WaW Admin Vixen - 06-20-2012 05:07 AM

I need to do a wipe of my shard for houses, chars and items. Would rather do them one at time. Is there anyone who can tell me where I can find the information on how to do this. I have been on the computer all night looking for it and may be permanently cross-eyed.


RE: HELP needed - dagger4k - 06-20-2012 02:08 PM

base sphere directory

accounts:
sphereaccu.scp
the other files i believe are backups

save:
spherechars.scp
sphereworld.scp

You should just start from fresh TBH.


RE: HELP needed - Soulless - 06-23-2012 07:28 PM

just to point you in the right direction

What you can do is make a function that sends an item to 1 1 10 <map here>
foritems 7648 (i think thats the map size)
if (<basid>==i_multi_'house type'>) || (<basid>==i_multi_'house type'>)
remove
endif
endfor

anytime im doing massive item removal i do a function similar. above is just a basic idea of what you want to accomplish. hope that helps


RE: HELP needed - Skul - 06-26-2012 09:24 AM

Vixen,

Easy code to do, I'll post up a quick fix for you off the top of my head, you might have to debug it:

Code:
[function wipe_multis_playerchars_nonstaticitems]
local.maxlooptimes=<serv.maxlooptimes>
serv.maxlooptimes=0
forinstances t_multi
foritems 32
  if (<serv.uid.<region.uid>.type>==t_multi)
   remove
  endif
endfor
endfor
forinstances t_multi_custom
foritems 32
  if (<serv.uid.<region.uid>.type>==t_multi_custom)
   remove
  endif
endfor
endfor
foritems 9999
if !( <attr> & attr_move_never ) && !( <attr> & attr_static )
  remove
endif
endfor
forchars 9999
if !(<npc>)
  remove 1
endif
endfor
serv.maxlooptimes=<local.maxlooptimes>
be sure to visit every mapplane and run this command since it only effects the map you choose to use it on.