![]() |
Wipe a world - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Wipe a world (/Thread-Wipe-a-world) Pages: 1 2 |
Wipe a world - kevin465 - 03-15-2014 01:23 AM ok i explain you what i want to do.... i wanna clean all my world... houses... character...account but i just want to keep my spawn of npc and monster....someone know how to do that... please RE: Wipe a world - Alaric - 03-15-2014 01:32 AM Take a day off your work and re-do your spawns using db or one script file so you can have control under all spawns. Or... Code: FORITEMS 10000 Don't forget to run in it in all maps. RE: Wipe a world - kevin465 - 03-15-2014 01:35 AM ah ok and you sure there is no way to wipe a world but keep npc and monster... and what is db ? RE: Wipe a world - Alaric - 03-15-2014 01:38 AM db=database - mysql Just use the foritems/forchars loops, make sure if statements are correct there and run it. It will remove those you don't want, then save the world. Accounts and the rest can be removed manually. Watch save/account files and do whatever you want. RE: Wipe a world - kevin465 - 03-15-2014 01:39 AM ok but sorry im french .. your foritems method it is a function ? i make this command where... RE: Wipe a world - XuN - 03-15-2014 01:41 AM He told you the way, with this function you will remove every item that is not a char spawn, to remove the accounts use this one: Code: [function removeaccounts] RE: Wipe a world - kevin465 - 03-15-2014 02:03 AM i have tried your foritems method but sphere tell me i cant delete player like this... RE: Wipe a world - Alaric - 03-15-2014 02:39 AM What exactely does it do and what did you do. Wipe a world - kevin465 - 03-15-2014 02:56 AM Ok but explain me more in detail... If i wanna clear deceit one time ... Or just make a command like you post me but for clean all the world ... You function work but i dont know how to do i have clean a house but i need to type the command like 30 times for clean a house... RE: Wipe a world - Alaric - 03-15-2014 03:25 AM But you haven't said what you do. In one post you say that with foritems you aren't able to delete players (how could you even get this error when foritems loop through items in specific distance, NOT players). Now you say that it works but you have to use the command like 30 times to remove all items in your house. Huh. FORITEMS is a for-cycle. The "10000" is distance from you. I think the needed distance is 8000+ to cover all tiles in felucca when you stay on coors 1,1. You wanted to wipe all items, so.. with this forcycle you loop through all items within distance 10000tiles => all items placed a current map. If you have 5986 items in the map, it will run the forcycle for all of them while every item becomes uid. Code: foritems 10 Your specific case Code: foritems 10000 |