Тема: Script help
Показать сообщение отдельно
Старый 06.01.2009, 08:18   #1
Новичок
 
Регистрация: 06.01.2009
Сообщений: 3
Сказал Спасибо: 1
Имеет 0 спасибок в 0 сообщенях
sobapi пока неопределено
По умолчанию Script help

Hello, i've been starting to work on a simple block CharInfo script, and it works. The problems is that i need to enable it, when i'm in the city and disable it, when i go outside of town. That's the part i can't figure out.

This is the script:

Код:
begin
if (FromServer) then begin
                            if pck[1]=#$03 then
                            pck:='';
                            end;
end.
What i'm shooting for is something like this:

When FromClient -> 38 2D 00 69 00 6E 00 73 00 69 00 64 00 65 00 00 00 00 00 00 00 (Say '-inside' in the ALL chat room) -> enable script

When FromClient -> 38 2D 00 6F 00 75 00 74 00 73 00 69 00 64 00 65 00 00 00 00 00 00 00 (Say '-outside' in the ALL chat room) -> disable script


I can't figure out how to easily do it.
sobapi вне форума   Ответить с цитированием