this is sendAsci.src:
Code:
use uo;
use os;
Const ITEMID := 3; // Position of the Object's Serial
Const TEXTTYPE := 9; // Position of the Text Type
Const COLOR := 11; // Position of the Color bytes
Const TEXT := 44; // Since packets are 0 indexed, this is 44, not 45.
Const PACKETLEN := 1; // Position of the Packet Length bytes
Const STAFFCOLOR := 0x2D; // 43
Const INVULCOLOR := 0x37; // 53
program sendAscii()
Print( "Send Ascii Text - On" );
return 1;
endprogram
exported function HandleAsciiText( who, byref packet )
who := who;
var textlen := packet.GetInt16(PACKETLEN) - 44;
var thetext := packet.GetString(TEXT, textlen);
if(thetext["[invulnerable]"] || thetext["[frozen]"])
return 1;
endif
var theserial := packet.GetInt32(ITEMID);
var theobject := SystemFindObjectBySerial(theserial);
if(theobject.isA(POLCLASS_MOBILE))
if(theobject.acct)
if(thetext[theobject.name] || thetext[theobject.title_guild] )
if(Distance(who,theobject) > 12)
return 1;
endif
endif
endif
endif
return 0;
endfunction
I didn't make any changes in config files at last few days.
yes i chack the
top every day:
Cpu(s): 9.3% us, 16.0% sy, 0.0% ni, 74.5% id, 0.0% wa, 0.0% hi, 0.2% si
Mem: 3375960k total, 3202444k used, 173516k free, 14872k buffers
Swap: 7839552k total, 1704k used, 7837848k free, 956800k cached
in
ps ufx it shows about 65%
and sysload from pol: sysload=50 (23) cputime=0
for first crash:
Code:
Client#874 connected from 149.156.124.16 (136 connections) on interface 217.8.180.198
Client#874 i/o thread starting
Client#874 i/o thread past initial lock
Account psiut logged in from 149.156.124.16
[06/04 21:29:08] Client#18: Switching to queued data mode (2)
[06/04 21:29:09] Account psiut selecting character Mantra - Oszustka
Client#874: Switching to queued data mode (2)
Client#874: Leaving queued mode (274 bytes xmitted)
[06/04 21:29:10] Client#18: Leaving queued mode (2735 bytes xmitted)
[06/04 21:29:14] Client#78 (83.28.143.118): disconnected (account zzzz)
[scripts/misc/logofftest.ecl]: Andirla/zzzz wylogowal sie. SL: 0 C [571,2199,0]
[06/04 21:29:15] Client#322 (62.233.204.250): disconnected (account zzzz)
[scripts/misc/logofftest.ecl]: Ezcarg De Varno/zzzz wylogowal sie. SL: 30 C [3450,128,5]
[06/04 21:29:18] Client#875 connected from 85.13.251.42 (135 connections) on interface 217.8.180.198
Client#875 i/o thread starting
Client#875 i/o thread past initial lock
Client#875 (85.13.251.42): disconnected (account unknown)
[06/04 21:29:20] sysload=71 (189) cputime=0
Client (Character Jules Mihelet) tried to drop an item out of range.
[06/04 21:29:21] Client#475 (83.26.29.174): disconnected (account zzzzz)
[scripts/misc/logofftest.ecl]: Droghey Gloow/zzzzz wylogowal sie. SL: 0 C [528,981,0]
Client#876 connected from 85.13.251.42 (134 connections) on interface 217.8.180.198
Client#876 i/o thread starting
Client#876 i/o thread past initial lock
Client#876 (85.13.251.42): disconnected (account unknown)
[06/04 21:29:27] Client#877 connected from 83.10.5.130 (134 connections) on interface 217.8.180.198
Client#877 i/o thread starting
Client#877 i/o thread past initial lock
Account gutek000 logged in from 83.10.5.130
[06/04 21:29:28] Client#877 (83.10.5.130): disconnected (account zzzzzz)
Client#878 connected from 83.10.5.130 (134 connections) on interface 217.8.180.198
Client#878 i/o thread starting
Client#878 i/o thread past initial lock
Account gutek000 logged in from 83.10.5.130
[06/04 21:29:29] Account zzzz selecting character Arhen an'Avanien
[06/04 21:29:36] [pkg/utils/spawnnet/do_spawn.ecl]: Nie znaleziono dobrego miejsca na spawn runo 1646 x: 117 y: 38 z: 0
[06/04 21:29:39] Client#38: Switching to queued data mode (2)
[06/04 21:29:40] Client#879 connected from 83.28.130.136 (135 connections) on interface 217.8.180.198
Client#879 i/o thread starting
Client#879 i/o thread past initial lock
Account assim logged in from 83.28.130.136
[06/04 21:29:41] Client#38: Leaving queued mode (851 bytes xmitted)
Client#879 (83.28.130.136): disconnected (account assim)
Client#880 connected from 83.28.130.136 (135 connections) on interface 217.8.180.198
Client#880 i/o thread starting
Client#880 i/o thread past initial lock
[06/04 21:29:42] Account zzzz logged in from 83.28.130.136
Account zzzzz selecting character Rhathiel Rhe'r Aalide
[06/04 21:29:43] Client#881 connected from 85.13.251.42 (136 connections) on interface 217.8.180.198
Client#881 i/o thread starting
Client#881 i/o thread past initial lock
Client#881 (85.13.251.42): disconnected (account unknown)
[scripts/misc/logoff.ecl]: Ezcarg De Varno/Trickster wylogowal sie. x: 3450 y: 128 z: 5
[06/04 21:29:45] zzzz/Voltaur La'Vertis used Attack packet with illegal Defender serial
[06/04 21:30:10] Caught SIGSEGV (Segfault). Please mail the following to pol-core-test:
=== CUT ===