Yoko

All sides of Injection
It is currently 2024-03-29 01:26:06

All times are UTC+02:00




Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2
Author Message
PostPosted: 2012-11-06 16:06:14 
Offline
User avatar

Joined: 2012-03-20 00:32:06
Posts: 243
Location: РФ, г. Москва
Я забыл как это делается, но помню вроде того, что непрописывается просмотр через журнал, а только системных и таких как атака или каст заклинания, а диалог игнорит.
Кто напомнит получит пирожок

_________________
Не быть жадным - уже богатство, не быть расточительным – доход.
TylllKaH
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"


Top
   
PostPosted: 2012-11-06 17:27:42 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
Code:
Sub IsSysMsgL(Line)
   var str=uo.journal(Line-1)
   var i,l=len(str)-1
   for i=0 to l
      if str[i]==':' then
         return false
      endif
   next
   return true
end sub

Возвращает 0 - если в мессаге содержится : (в мессаджах от добычи оно не используется, следовательно - мессагу крикнули в чат люди) и 1 - если мессадж системная.

Атаку и касты хз, если только по uo.journalcolor(obj) смотреть, или как её там. А вообще их легко сэмулировать через fontcolor, так что, отследить их из скрипта сложно вроди. Если канешн в инже нет подобной "секретной" функции :D


Top
   
PostPosted: 2012-11-06 19:48:58 
Offline
User avatar

Joined: 2012-03-20 00:32:06
Posts: 243
Location: РФ, г. Москва
Я ЭТО СДЕЛАЛ!!!! НАПИСАЛ СКРИПТ ПОД СЕБЯ!!! СПАСИБО ВСЕМ!!! ТЕМУ МОЖНО ЗАКРЫТЬ)

_________________
Не быть жадным - уже богатство, не быть расточительным – доход.
TylllKaH
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited