Just more feactures...

Archive of the older Feature Request Forum Posts

Moderator: POL Developer

Locked
Terciob
Master Poster
Posts: 90
Joined: Fri Nov 07, 2008 3:47 am

Just more feactures...

Post by Terciob » Wed Feb 25, 2009 7:11 pm

guild.chat (string) -> send message to guild members.
Pol already make this for clients > 5.0 and can be done by script too, but sounds nice including this feacture.

-

new options for servspecopt: SeeGuildMembersHidden
player can see others hidden players of his guild (like SeeHidden priv).

-

creation/death script for npctemplate
Run script when npc are created if oncreate script exists, run script when npc dies if ondeath script exists.

-

mobile.isa (POLCLASS_PLAYER) ?

-

npc::Wait_For_Gump (target, layout, data, x := 0, y := 0, timeout := 10)
Send a gump for target and return 0 if reach timeout.

-

npc::changescript (npc, new_script, param := "", send_event := ""):
param is like start_script <script> <param> (can be read with program npc (param)) send_event will send that event for new ai.
this can be handle with npc.script. restartscript, setobjproperties, sendevent, etc. Just a simplified and usefull way.

-

Can we get a way to know if player is Walking or Runing ?
maybe:
isRunning (character, timeout := 100) -> put script to sleepms for timeout and if dont run, function return false.
isWalking (character, timeout := 200) -> put script to sleepms for timeout and if dont walk, function return false.

-

uo::RemoveObjectFromScene (character, serial)
send packet 0x1d with serial of object that will be removed from his screen.
usefull for concealed levels, seehidden priv, can be use too in some cases for SeeGuildMembersHidden and why not make
a detecthidden that show de hidden people arround ;) and use this new feacture to "erase" that people when effect finish.

-

uo::CheckLineOfSight (object1, object2) can have a new flag called CHECK_FRONT := 0.
If flag up will check if object2 is in front (not behind) object1 (with object1.facing).

-

uo::RegisterForEnterAreaEvents(itemref)
same as RegisterForSpeechEvents, but this enable enterarea event.

-

"Client #1 (account admin) speaking with out-of-range color xxxxx"
Can just use default uo client color 1001 instead block message?

-

CONST _ALL_FOLDERS := ":*:";
CONST _DEFAULT_EXTENSION := "log";

file::EnumerateFilesInDirectory (file_extension := _DEFAULT_EXTENSION, directory := "")
Return a array of strings with filenames of archives found in "directory" with requested file extension.

-

file::CreateDirectory (directory (where to create), folder_name);
Creates a new folder in designed directory.

-

- Can Pol have memory (cache) for FindPath function ?
- I belive fileacess.cfg is useless, just my opinion... maybe can remove it on next core...
- UO:KR client crash if a "non default osi" multi is sent to client,
would servspecopt have a option called "DontSendOsiMultiToUOKR 1".
Many servers use custom multis for new houses.

User avatar
CWO
POL Expert
Posts: 1151
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: Just more feactures...

Post by CWO » Wed Feb 25, 2009 10:23 pm

creation/death script for npctemplate
Run script when npc are created if oncreate script exists, run script when npc dies if ondeath script exists.
The creation script feature doesn't exist but AI scripts start immediately when NPCs are created. My shard makes the beginning act like a creation script by setting a CProp in npcdesc.cfg that will be assigned to it and deleting it when the script is done setting up its "OnCreate" stuff (so if the script or the shard is restarted, it won't run those instructions on it again).

The death script does exist though. Its scripts/misc/death.src (death of players is chrdeath.src).
mobile.isa (POLCLASS_PLAYER) ?
if (mobile.acctname)
Can we get a way to know if player is Walking or Runing ?
maybe:
isRunning (character, timeout := 100) -> put script to sleepms for timeout and if dont run, function return false.
isWalking (character, timeout := 200) -> put script to sleepms for timeout and if dont walk, function return false.
A packethook can read this very easily.

Tomi
POL Developer
Posts: 477
Joined: Tue Feb 21, 2006 5:08 pm

Re: Just more feactures...

Post by Tomi » Thu Feb 26, 2009 4:20 pm

if ( mobile.ip ) works aswell for the player check.

the guild chat that you are talking about is a client speechtype, and a client feature pol doesnt support it anyway.
messages starting with "\" are guild chat messages
messages starting with "|" are alliance chat messages which are related to the guild system aswell.

Locked