Page 1 of 1

Area Managment

Posted: Fri Jun 06, 2008 3:34 pm
by *Edwards
Alright, so here is the tool if you want to handle special situations as NoLoot, NoAttack, NoLittering, NoRecalls, and other awesome features your shard could get with this small utility/system.

I created it using distro097 and it's my really first gump tool... (I didn't learn the easy way I know lol )

To-Do: dataFile reference so it could be possible to edit, delete and add new areas all via in-game. The constants have to be read from config file so a foreach loop could be used to display the options you have.

I shall work on the todo-list really shortly... The previous version of Shilohen is extremely old and this is a really brand new version but gave him the credits for the idea mainly used by ZuluHotel 10 years ago.

Note: would it be faster if the controlScript is used with EnumerateOnlineCharacters() instead of logon.src for all mobiles?

Note2: Would make me extremely happy if used with distro! lol

Re: Area Managment

Posted: Tue Sep 09, 2008 2:27 pm
by stella
where i must paste it ?)

Re: Area Managment

Posted: Tue Sep 09, 2008 9:28 pm
by CWO
since this is its own contained package, it should be pasted somewhere in the /pol/pkg directory.

Re: Area Managment

Posted: Wed Sep 10, 2008 7:07 am
by *Edwards
Obvisouly you'll need to recall the function in your script that will use the package. So for exemple you don't want people to cast in an area you will have to define in your casting script that:

option := watever you call the option that we could define as NOCAST for now.. ( has to be a const )

if( A_IsIn( mobile, NOCAST))
//Mobile is in the area defined in the configuration
return 0; //This is the effect used here. We don't want mobiles casting in this area.
endif

Re: Area Managment

Posted: Mon Feb 02, 2009 11:37 am
by *Edwards
Updated

To do - Handle Properties via config files... Too lazy to do it would surely take 2-3minutes if you take your time!