Relog freezes screen

heyhey,

i’m using Phbot on a private server for a while now, in this server we use the oldschool trade system wich we have to relog to get our reward. u used a script for 2 days and all worked fine. but sinse yesterday when i relog with the command “Disconnect” i get a frozen screen and phbot says there is lagg. my other chars have no problem. and i can only solve this with a manual relog (go clientless and go client)
my script is below, i hope somone can help me…

oldtrade,spawn

mount,transport
walk,-5154,2838,180

walk,-5147,2856,180

walk,-5139,2871,180

walk,-5122,2876,180

walk,-5107,2876,180

oldtrade,buy,4
walk,-5105,2880,180
walk,-5111,2890,180
walk,-5115,2899,180
DoStable
walk,-5117,2899,180

walk,-5124,2897,180

walk,-5137,2900,180

walk,-5148,2913,180

walk,-5159,2929,180

walk,-5167,2944,180

walk,-5173,2959,180

walk,-5174,2967,180

walk,-5173,2969,180

DoGuildStorage

walk,-5173,2968,180

walk,-5171,2949,180

walk,-5158,2926,180

walk,-5148,2909,180

walk,-5138,2895,180

walk,-5127,2883,180

walk,-5125,2888,180

walk,-5123,2899,180
walk,-5134,2900,180
walk,-5149,2901,180
walk,-5167,2901,192
walk,-5186,2901,192
walk,-5202,2898,192
walk,-5227,2896,180
walk,-5248,2895,180
walk,-5280,2894,180
walk,-5310,2893,180
walk,-5343,2892,180
walk,-5375,2892,180
walk,-5400,2891,180
walk,-5422,2885,165
walk,-5443,2874,170
walk,-5475,2855,150
walk,-5501,2832,132
walk,-5534,2808,151
walk,-5563,2786,195
walk,-5583,2766,246
walk,-5608,2739,255
walk,-5623,2699,255
walk,-5627,2663,228
walk,-5639,2626,185
walk,-5649,2596,163
walk,-5651,2569,180
walk,-5663,2548,206
walk,-5685,2530,214
walk,-5716,2510,199
walk,-5742,2495,185
walk,-5770,2488,168
walk,-5802,2487,175
walk,-5840,2491,154
walk,-5867,2493,164
walk,-5881,2495,179
walk,-5911,2496,175
walk,-5949,2492,167
walk,-5984,2488,175
walk,-6017,2481,178
walk,-6063,2471,158
walk,-6095,2464,165
walk,-6134,2456,156
walk,-6164,2450,164
walk,-6193,2445,179
walk,-6229,2440,186
walk,-6269,2435,180
walk,-6302,2431,183
walk,-6331,2428,196
walk,-6357,2425,216
walk,-6378,2423,245
walk,-6402,2420,270
walk,-6447,2414,254
walk,-6499,2406,223
walk,-6532,2402,230
walk,-6582,2395,202
walk,-6623,2389,193
walk,-6656,2385,200
walk,-6687,2380,210
walk,-6714,2377,224
walk,-6742,2373,238
walk,-6774,2370,252
walk,-6813,2366,253
walk,-6856,2365,239
walk,-6898,2364,226
walk,-6945,2361,199
walk,-6995,2343,181
walk,-7042,2318,180
walk,-7077,2295,179
walk,-7111,2273,167
walk,-7132,2258,180
walk,-7144,2237,180
walk,-7156,2216,180
walk,-7181,2204,180
walk,-7198,2198,181
walk,-7215,2194,184
walk,-7228,2192,194
walk,-7243,2191,203
walk,-7259,2191,207
walk,-7274,2193,209
walk,-7286,2196,216
walk,-7304,2205,229
walk,-7321,2212,243
walk,-7336,2218,270
walk,-7356,2224,303
walk,-7375,2227,327
walk,-7398,2231,344
walk,-7414,2235,361
walk,-7425,2242,372
walk,-7435,2250,375
walk,-7446,2259,374
walk,-7460,2270,359
walk,-7471,2284,353
walk,-7479,2297,350
walk,-7485,2310,338
walk,-7490,2322,327
walk,-7495,2334,328
walk,-7500,2345,332
walk,-7508,2353,332
walk,-7519,2364,310
walk,-7533,2374,297
walk,-7546,2381,308
walk,-7557,2386,312
walk,-7570,2391,289
walk,-7588,2398,270
walk,-7608,2405,256
walk,-7636,2415,220
walk,-7659,2420,207
walk,-7675,2421,215
walk,-7705,2424,182
walk,-7741,2427,225
walk,-7782,2429,180
walk,-7830,2425,188
walk,-7901,2401,180
walk,-8041,2347,275
walk,-8079,2335,283
walk,-8134,2317,176
walk,-8172,2310,120
walk,-8216,2306,97
walk,-8281,2297,57
walk,-8413,2276,19
walk,-8449,2272,8
walk,-8481,2272,10
walk,-8517,2272,15
walk,-8561,2272,0
walk,-8598,2272,0
walk,-8626,2275,0
walk,-8646,2274,14
walk,-8666,2269,20
walk,-8694,2256,0
walk,-8694,2254,0
walk,-8691,2249,0
walk,-8691,2233,-9
walk,-8693,2212,-9
walk,-8694,2210,20
wait,5000
teleport,Pirate Morgun,Harbor Manager Marwa
wait,5000
walk,-16566,359,584
walk,-16586,353,592
walk,-16597,354,612
walk,-16607,351,626
walk,-16607,343,634
walk,-16609,343,634
walk,-16608,330,664
walk,-16608,319,715
walk,-16609,309,735
walk,-16609,293,741
walk,-16609,274,740
walk,-16609,256,740
walk,-16608,238,740
walk,-16608,219,741
walk,-16609,201,761
walk,-16609,187,788
walk,-16609,173,816
walk,-16610,155,835
walk,-16610,130,838
walk,-16610,117,874
walk,-16610,105,906
walk,-16610,91,933
walk,-16609,37,925
walk,-16608,12,925
walk,-16608,2,925
walk,-16605,1,925
walk,-16601,1,931
oldtrade,sell
walk,-16602,0,927
oldtrade,buy,4
walk,-16606,0,925
walk,-16610,0,925
walk,-16610,10,925
walk,-16610,26,925
walk,-16610,46,925
walk,-16610,84,926
walk,-16609,112,887
walk,-16609,156,835
walk,-16608,186,790
walk,-16608,217,741
walk,-16608,235,740
walk,-16608,253,740
walk,-16609,272,740
walk,-16608,290,741
walk,-16608,310,735
walk,-16609,321,707
walk,-16609,342,634
walk,-16609,360,585
walk,-16608,361,585
walk,-16609,361,585
walk,-16611,362,585
walk,-16603,361,585
walk,-16576,362,584
walk,-16560,365,584
walk,-16544,369,584
wait,5000
teleport,Harbor Manager Marwa,Pirate Morgun
wait,5000
walk,-8699,2238,-2
walk,-8683,2250,2
walk,-8670,2260,14
walk,-8647,2265,19
walk,-8631,2269,7
walk,-8610,2271,0
walk,-8588,2274,0
walk,-8566,2274,0
walk,-8546,2275,8
walk,-8528,2279,19
walk,-8499,2285,17
walk,-8465,2294,8
walk,-8438,2301,14
walk,-8417,2302,38
walk,-8384,2303,63
walk,-8353,2305,75
walk,-8307,2309,62
walk,-8264,2309,64
walk,-8233,2310,86
walk,-8195,2309,103
walk,-8160,2307,122
walk,-8130,2305,150
walk,-8091,2304,168
walk,-8043,2302,175
walk,-7981,2302,168
walk,-7918,2304,163
walk,-7897,2304,177
walk,-7876,2309,205
walk,-7861,2328,216
walk,-7849,2358,201
walk,-7835,2386,195
walk,-7830,2412,191
walk,-7808,2417,184
walk,-7785,2416,180
walk,-7768,2417,182
walk,-7751,2416,180
walk,-7729,2417,180
walk,-7713,2418,180
walk,-7694,2419,190
walk,-7683,2420,209
walk,-7669,2420,215
walk,-7656,2420,206
walk,-7645,2417,215
walk,-7628,2411,224
walk,-7616,2406,244
walk,-7603,2402,259
walk,-7586,2395,269
walk,-7572,2390,287
walk,-7561,2384,308
walk,-7542,2375,290
walk,-7529,2367,301
walk,-7519,2362,313
walk,-7511,2355,327
walk,-7508,2350,339
walk,-7497,2331,325
walk,-7488,2315,330
walk,-7483,2302,346
walk,-7475,2286,354
walk,-7463,2272,357
walk,-7450,2259,371
walk,-7436,2249,375
walk,-7419,2239,367
walk,-7403,2233,347
walk,-7384,2229,337
walk,-7361,2223,311
walk,-7338,2216,274
walk,-7313,2208,235
walk,-7284,2197,216
walk,-7251,2190,206
walk,-7227,2189,194
walk,-7204,2187,182
walk,-7175,2185,180
walk,-7148,2184,180
walk,-7117,2187,171
walk,-7081,2211,180
walk,-7061,2239,182
walk,-7032,2275,180
walk,-7006,2305,186
walk,-6980,2337,190
walk,-6949,2367,194
walk,-6905,2387,208
walk,-6860,2403,208
walk,-6811,2412,220
walk,-6759,2412,206
walk,-6700,2424,184
walk,-6656,2432,183
walk,-6619,2439,180
walk,-6567,2449,184
walk,-6523,2456,183
walk,-6472,2461,185
walk,-6428,2465,207
walk,-6395,2468,213
walk,-6354,2472,202
walk,-6309,2475,213
walk,-6270,2471,213
walk,-6229,2465,189
walk,-6184,2462,175
walk,-6160,2463,174
walk,-6129,2465,162
walk,-6093,2467,163
walk,-6054,2468,156
walk,-6015,2477,175
walk,-5976,2485,164
walk,-5945,2492,169
walk,-5915,2496,175
walk,-5883,2496,175
walk,-5841,2490,154
walk,-5803,2486,175
walk,-5769,2488,169
walk,-5734,2501,193
walk,-5702,2521,206
walk,-5680,2550,198
walk,-5649,2568,181
walk,-5619,2618,184
walk,-5607,2645,209
walk,-5576,2682,231
walk,-5543,2705,189
walk,-5522,2731,185
walk,-5499,2761,188
walk,-5477,2792,162
walk,-5455,2818,164
walk,-5439,2847,176
walk,-5420,2870,178
walk,-5403,2886,179
walk,-5389,2894,180
walk,-5390,2892,180
walk,-5379,2892,180
walk,-5347,2892,180
walk,-5308,2892,180
walk,-5268,2891,180
walk,-5232,2887,180
walk,-5216,2884,180
walk,-5203,2882,192
walk,-5177,2879,192
walk,-5145,2876,180
walk,-5120,2875,180
walk,-5109,2874,180
oldtrade,sell
walk,-5117,2894,180
walk,-5151,2878,180
walk,-5157,2852,180
walk,-5156,2828,180
disconnect