Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-25-2006, 08:49 AM
Loakey_P2P Loakey_P2P is offline
SL Oldbie
Loakey_P2P's Avatar
Join Date: Apr 2006
Location: U.S.A
Posts: 137
Loakey_P2P is an unknown quantity at this point
Send a message via AIM to Loakey_P2P Send a message via Yahoo to Loakey_P2P
Time Problem

ok the first npc involved is a time database which is self sustaining . the npc im making is a self sustaining weather database . the problem seem's to be that it's not checking the time corectly . as all the different aspect's of weather are stored as flag's on the npc and check every so many hour's and altered . i have it pretty much set up but it's not setting the flag's to the right value .

Flag List -
---------------------------------------------------------------------
possable conditions for the weather for all season's .

conditions="rain","snow","sleet","fog","cloudy","c learskies"
humidity="10%","other weather functions like temp or moisture"
moisture="10%","0%-100%","groundmoisture" ,"plantgrowing","plantwatering"
temperature="70","-60 - 90+","groundmoisture","plantgrowth","plantwatering "
waterlevel="hightide","naturaltide","lowtide","raf tmovement","waterbaddys"
windconditions="5,100,direction","raftmovement"
---------------------------------------------------------------------
what all the different string's are .

information.pos.strings=possable settings for the season
information.rights=Still Working It , this is just set up for example to show the strings that will be used , their tolerance levels and what they will effect .
information.time.strings=time checked and resetted
information.weather.strings=actual information strings
---------------------------------------------------------------------
the hour the condition was last checked .

rights.lastcheckedconditions=hour
rights.lastcheckedmoisture=hour
rights.lastcheckedtempature=hour
rights.lastcheckedwaterlevel=hour
rights.lastcheckedwindconditions=hour
---------------------------------------------------------------------
possable setting's for the current season .

rights.posconditions=rain,fog,cloudy,clearskies
rights.posmoisture=0,100
rights.postemperature=+50,100
rights.poswaterlevel=lowtide,naturaltide,hightide
rights.poswindconditions=10,50
---------------------------------------------------------------------
the time each condition is checked . hourly rate .

rights.timeconditions=3
rights.timemoisture=2
rights.timetempature=1
rights.timewaterlevel=6
rights.timewindconditions=4
---------------------------------------------------------------------
the real information flag's , or current setting's .

rights.weather.conditions="clearskies"
rights.weather.moisture="10"
rights.weather.temperature="60"
rights.weather.waterlevel="naturaltide"
rights.weather.windconditions="5,north-east"
---------------------------------------------------------------------
my first problem is as i said before a flag isnt setting the right value . instead
of the flag being set to a number its being set to the word . ive tryed several varation's but nothing has worked so far . and i searched throu the wikipidia site but i didnt see any kind of time example in the new gs2 or even a discription .

this.rights.lastcheckedwaterlevel = "hour";

but if this isnt working i wonder if the time checker part will work either but i wont know untill i get least one of them fixed . can anyone help with this , but there is another problem . the old with(getnpc(npcname)){ command . i found a new one in one of our script's but im not sure about how
it send's the informaton and what not . i know nothing about this new command other then the findNPC("NPCnameHere") , "the .guilds.remove" i believe is the word trigger's sent but im not for sure . any help would be greatly appreciated .

findNPC("Control-LocalGuilds").guilds.remove(uppercase(clientr.guil d[0]));
__________________
Shaded Legend Playerworld
-Past accounts - LoakeyTheElf - Loakey_P2P
-Past Servers - Rune - Sparitoria - Shaded Legends
-Past Sl Jobs * ET/LAT/NAT/LAT Admin/Developer/Admin/Head Admin/Asst. Manager/Manager
-Current Job - Retired

*Sorry you must have mistaken me for someone that cares .
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.