PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
How to disable/enable seasons

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Scripting Help
Display posts from previous:   

Author Message
coltain



Joined: 20 Mar 2007
Posts: 97
Location: Poland

PostPosted: Sun Mar 23, 2008 7:05 pm    Post subject: How to disable/enable seasons Reply with quote

When winter comes tiles of grass become white etc...

How to disable or enable this???

Author Message
Harley



Joined: 18 Mar 2006
Posts: 92
Location: World Earth

PostPosted: Mon Mar 24, 2008 8:46 am    Post subject: Reply with quote

Add thoose script-command to textcmd/

Code:
use uo;

include "include/packets";

program textcmd_setseason( who, text )

  if(!text or text == "")
    SendSysMessage(who, "Useage: .setseason <season>");
    SendSysMessage(who, "<season>: spring | desolation | fall | winter | summer");
    return;
  endif
 
  var season := lower(text);
  case(season)
    "spring":     SetSeasonForAll(SEASON_SPRING); SendSysMessage(who, "Season spring set");
                  SetGlobalProperty("gseason", "SEASON_SPRING");
    "desolation": SetSeasonForAll( SEASON_DESOLATION ); SendSysMessage(who, "Season desolation set");
                  SetGlobalProperty("gseason", "SEASON_DESOLATION");
    "fall":       SetSeasonForAll( SEASON_FALL ); SendSysMessage(who, "Season fall set");
                  SetGlobalProperty("gseason", "SEASON_FALL");
    "winter":     SetSeasonForAll( SEASON_WINTER ); SendSysMessage(who, "Season winter set");
                  SetGlobalProperty("gseason", "SEASON_WINTER");
    "summer":     SetSeasonForAll( SEASON_SUMMER ); SendSysMessage(who, "Season summer set");
                  SetGlobalProperty("gseason", "SEASON_SUMMER");
  endcase
 
endprogram


With best regards!!!

Post new topic   Reply to topic    PenUltima Online Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty