The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rain over the World
Author Message
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #1
Rain over the World
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
(This post was last modified: 03-08-2013 04:43 PM by admin phoenix.)
03-08-2013 04:42 PM
Find all posts by this user Like Post Quote this message in a reply
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #2
RE: Rain over the World
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.
03-08-2013 06:32 PM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #3
RE: Rain over the World
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?
03-08-2013 07:14 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Rain over the World
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.

[Image: 2nis46r.jpg]
03-09-2013 01:39 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #5
RE: Rain over the World
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
03-15-2013 06:55 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: Rain over the World
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.

[Image: 2nis46r.jpg]
(This post was last modified: 03-15-2013 07:06 AM by Mordaunt.)
03-15-2013 07:06 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #7
RE: Rain over the World
arg, you are right *lol*
missed it *never change a runnig system*
thanks mordaunt
03-15-2013 04:59 PM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #8
RE: Rain over the World
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 ''
05-10-2014 08:47 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #9
RE: Rain over the World
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"
05-11-2014 03:35 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #10
RE: Rain over the World
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.

[Image: 2nis46r.jpg]
05-11-2014 08:55 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)