SphereCommunity

Full Version: Rain over the World
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I got some question.
To change the rain effect via script for the whole world I can use region.rain or sector.rain=1 or ingame .rain???

another question, how long will it be rain? how can I set it that it will rain the whole day?
never used this one.

thanks for answer and help

gr

phoenix
i guess u should look at this: https://skydrive.live.com/?cid=706af5b00...452F%21175 aim to the environmental control.
That has been scripted from mordaunt and do pretty much like u said. I think can be improved a lot, but its still a good script and a very nice base.
nice script like mine Smile
he use the command like I tried to use (I am an work so I canĀ“t check it).
But the question is still
how long will it be rain?
all the time since someone use another command/script like sector.rain to turn it off?
I must warn you that script is old, flawed and did have bugs reported in it that I was unable to replicate.
I should also have handled some things in a different way.

If you are running the latest nightly a lot of the hardcoded weather is now fixed access has also been given to sector control
Code:
20-02-2013, Ben
-Added: sphere.ini option ALLOWNEWBTRANSFER. When set to 1, will allow newbi items to stay newbied after tranfer to an NPC.
-Fixed #2139: All dung being named Horse Dung. Now it's   "animal name" dung
-Added: Read/Write (SERV.MAP.map_num.SECTOR.sec_num function) to have access to individual sectors.

with this you can control sector.rain or sector.dry for any sector(s) on the map, a simple timer would allow you to set the time rain should fall.
I tried
SERV.MAP.0.SECTOR.1 rain

21:53:ERROR:(sphere_gm_commands.scp,6849)Bad usage of MAPx. Check your sphere.ini or scripts (SERV.MAP is a read only property)
21:53:ERROR:(sphere_gm_commands.scp,6849)Undefined keyword 'MAP.0.SECTOR.1'
21:53:ERROR:(sphere_gm_commands.scp,6849)Bad usage of MAPx. Check your sphere.ini or scripts (SERV.MAP is a read only property)
21:53:ERROR:(sphere_gm_commands.scp,6849)Undefined keyword 'MAP.0.SECTOR.1'

when I am jumping over the map and check the sector via .Show sector
I got everywhere 1
Also when I try .Show Region
same Resultate ...1
You have to update to a version of the server on which the functionality was added. (after 20-02-2013)
That is when it was changed to read/write.
arg, you are right *lol*
missed it *never change a runnig system*
thanks mordaunt
Getting this now from the latest version 2.1
and from your ramdom rares....
using the latest sphere version.{9/5/2014)

Code:
10:41:ERROR:(spherechar_anim.scp,239)Undefined keyword 'SHELTER'
10:41:(random_rares1.2.scp,135)Rare Mustang Spawned @ 3162,467
10:41:(random_rares1.2.scp,135)Rare treefellow Spawned @ 3902,245
10:41:(random_rares1.2.scp,135)Rare were wolf Spawned @ 1112,1178
10:41:(random_rares1.2.scp,135)Rare mustang Spawned @ 1813,2547
10:41:ERROR:(random_rares1.2.scp,209)Undefined symbol 'goodie_meager_1'
10:41:ERROR:(random_rares1.2.scp,209)Undefined symbol 'goodie_meager_2'
10:41:ERROR:(random_rares1.2.scp,209)Undefined symbol 'goodie_meager_3'
10:41:ERROR:(random_rares1.2.scp,209)Undefined symbol 'goodie_meager_4'
10:41:ERROR:(random_rares1.2.scp,209)Weight of 0 in random set?
10:41:ERROR:(random_rares1.2.scp,211)Undefined symbol 'goodie_meager_1'
10:41:ERROR:(random_rares1.2.scp,211)Undefined symbol 'goodie_meager_2'
10:41:ERROR:(random_rares1.2.scp,211)Undefined symbol 'goodie_meager_3'
10:41:ERROR:(random_rares1.2.scp,211)Undefined symbol 'goodie_meager_4'
10:41:ERROR:(random_rares1.2.scp,211)Weight of 0 in random set?
10:41:ERROR:(random_rares1.2.scp,213)Undefined symbol 'goodie_poor_1'
10:41:ERROR:(random_rares1.2.scp,213)Undefined symbol 'goodie_poor_2'
10:41:ERROR:(random_rares1.2.scp,213)Undefined symbol 'goodie_poor_3'
10:41:ERROR:(random_rares1.2.scp,213)Undefined symbol 'goodie_poor_4'
10:41:(random_rares1.2.scp,149)Rare wooden chest Spawned @ Spawned @ 1580,698
10:41:ERROR:(random_rares1.2.scp,251)Undefined symbol 'goodie_rich_1'
10:41:ERROR:(random_rares1.2.scp,251)Undefined symbol 'goodie_rich_2'
10:41:ERROR:(random_rares1.2.scp,251)Undefined symbol 'goodie_rich_3'
10:41:ERROR:(random_rares1.2.scp,251)Undefined symbol 'goodie_rich_4'
10:41:ERROR:(random_rares1.2.scp,253)Undefined symbol 'goodie_rich_1'
10:41:ERROR:(random_rares1.2.scp,253)Undefined symbol 'goodie_rich_2'
10:41:ERROR:(random_rares1.2.scp,253)Undefined symbol 'goodie_rich_3'
10:41:ERROR:(random_rares1.2.scp,253)Undefined symbol 'goodie_rich_4'
10:41:ERROR:(random_rares1.2.scp,255)Undefined symbol 'goodie_average_1'
10:41:ERROR:(random_rares1.2.scp,255)Undefined symbol 'goodie_average_2'
10:41:ERROR:(random_rares1.2.scp,255)Undefined symbol 'goodie_average_3'
10:41:ERROR:(random_rares1.2.scp,255)Undefined symbol 'goodie_average_4'
10:41:(random_rares1.2.scp,149)Rare metal chest Spawned @ Spawned @ 518,1635
10:41:ERROR:(random_rares1.2.scp,272)Undefined symbol 'goodie_loaded_1'
10:41:ERROR:(random_rares1.2.scp,272)Undefined symbol 'goodie_loaded_2'
10:41:ERROR:(random_rares1.2.scp,272)Undefined symbol 'goodie_loaded_3'
10:41:ERROR:(random_rares1.2.scp,272)Undefined symbol 'goodie_loaded_4'
10:41:ERROR:(random_rares1.2.scp,274)Undefined symbol 'goodie_loaded_1'
10:41:ERROR:(random_rares1.2.scp,274)Undefined symbol 'goodie_loaded_2'
10:41:ERROR:(random_rares1.2.scp,274)Undefined symbol 'goodie_loaded_3'
10:41:ERROR:(random_rares1.2.scp,274)Undefined symbol 'goodie_loaded_4'
10:41:ERROR:(random_rares1.2.scp,276)Undefined symbol 'goodie_rich_1'
10:41:ERROR:(random_rares1.2.scp,276)Undefined symbol 'goodie_rich_2'
10:41:ERROR:(random_rares1.2.scp,276)Undefined symbol 'goodie_rich_3'
10:41:ERROR:(random_rares1.2.scp,276)Undefined symbol 'goodie_rich_4'
10:41:(random_rares1.2.scp,149)Rare metal chest Spawned @ Spawned @ 1124,775
10:41:ERROR:(random_rares1.2.scp,209)Undefined symbol 'goodie_meager_1'
10:41:ERROR:(random_rares1.2.scp,209)Undefined symbol 'goodie_meager_2'
10:41:ERROR:(random_rares1.2.scp,209)Undefined symbol 'goodie_meager_3'
10:41:ERROR:(random_rares1.2.scp,209)Undefined symbol 'goodie_meager_4'
10:41:ERROR:(random_rares1.2.scp,209)Weight of 0 in random set?
10:41:ERROR:(random_rares1.2.scp,211)Undefined symbol 'goodie_meager_1'
10:41:ERROR:(random_rares1.2.scp,211)Undefined symbol 'goodie_meager_2'
10:41:ERROR:(random_rares1.2.scp,211)Undefined symbol 'goodie_meager_3'
10:41:ERROR:(random_rares1.2.scp,211)Undefined symbol 'goodie_meager_4'
10:41:ERROR:(random_rares1.2.scp,211)Weight of 0 in random set?
10:41:ERROR:(random_rares1.2.scp,213)Undefined symbol 'goodie_poor_1'
10:41:ERROR:(random_rares1.2.scp,213)Undefined symbol 'goodie_poor_2'
10:41:ERROR:(random_rares1.2.scp,213)Undefined symbol 'goodie_poor_3'
10:41:ERROR:(random_rares1.2.scp,213)Undefined symbol 'goodie_poor_4'
10:41:(random_rares1.2.scp,149)Rare wooden chest Spawned @ Spawned @ 831,1951
10:41:ERROR:(random_rares1.2.scp,230)Undefined symbol 'goodie_average_1'
10:41:ERROR:(random_rares1.2.scp,230)Undefined symbol 'goodie_average_2'
10:41:ERROR:(random_rares1.2.scp,230)Undefined symbol 'goodie_average_3'
10:41:ERROR:(random_rares1.2.scp,230)Undefined symbol 'goodie_average_4'
10:41:ERROR:(random_rares1.2.scp,232)Undefined symbol 'goodie_average_1'
10:41:ERROR:(random_rares1.2.scp,232)Undefined symbol 'goodie_average_2'
10:41:ERROR:(random_rares1.2.scp,232)Undefined symbol 'goodie_average_3'
10:41:ERROR:(random_rares1.2.scp,232)Undefined symbol 'goodie_average_4'
10:41:ERROR:(random_rares1.2.scp,234)Undefined symbol 'goodie_meager_1'
10:41:ERROR:(random_rares1.2.scp,234)Undefined symbol 'goodie_meager_2'
10:41:ERROR:(random_rares1.2.scp,234)Undefined symbol 'goodie_meager_3'
10:41:ERROR:(random_rares1.2.scp,234)Undefined symbol 'goodie_meager_4'
10:41:ERROR:(random_rares1.2.scp,234)Weight of 0 in random set?
10:41:(random_rares1.2.scp,149)Rare metal chest Spawned @ Spawned @ 1897,3490
10:41:ERROR:(enviro_control2.1(Roman12mnth).scp,781)Undefined symbol ''
10:41:ERROR:(enviro_control2.1(Roman12mnth).scp,781)Undefined symbol ''
10:41:ERROR:(enviro_control2.1(Roman12mnth).scp,781)Undefined symbol ''
10:41:ERROR:(enviro_control2.1(Roman12mnth).scp,781)Undefined symbol ''
10:42:ERROR:(enviro_control2.1(Roman12mnth).scp,781)Undefined symbol ''
10:42:ERROR:(enviro_control2.1(Roman12mnth).scp,781)Undefined symbol ''
10:42:ERROR:(enviro_control2.1(Roman12mnth).scp,781)Undefined symbol ''
10:42:ERROR:(enviro_control2.1(Roman12mnth).scp,781)Undefined symbol ''
10:43:ERROR:(enviro_control2.1(Roman12mnth).scp,828)Undefined symbol ''
10:44:ERROR:(enviro_control2.1(Roman12mnth).scp,781)Undefined symbol ''
if you want to control the rain yourself (start + stop timer) you must set the rain chance to 100% and stop it manually

just add "RAINCHANCE=100" on the region. I cant remember if it can be used on scripts too ("REGION.RAINCHANCE 100", etc). To add snow you must use RAINCHANCE and COLDCHANCE too

Code:
[AREADEF a_facet_felucca]
NAME=Felucca
GROUP=ALLMAP
P=1323,1624,55,0
RECT=0,0,7168,4096,0
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
RAINCHANCE=100

I dont know if you will get a real permanent weather because the client will stop the weather effect itself after 6min (or 10min on newest clients) and sphere will "renew" the weather effect after some time. If this internal time match exactly your client timer you will get a permanent effect, if not, you will get a effect like "rain - dry - rain - dry"
If I recall correctly you can't really get permanent rain short of having an event that keeps firing the command, eventually it will always dry out

As for that error from random rares... just go change the loot settings, they are only really there are an example anyway, you may find the newer script pack has renamed templates, I haven't checked it lately.
Pages: 1 2
Reference URL's